mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
python 3 updates
- Fix super() calls for python 3 - No need to inherit objects. - No need for u at the start of strings - Tidied up some brackets and f-strings too
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
from flask_babel import gettext
|
||||
|
||||
|
||||
class SchemaDiffModel(object):
|
||||
class SchemaDiffModel():
|
||||
"""
|
||||
SchemaDiffModel
|
||||
"""
|
||||
|
@@ -8,7 +8,7 @@
|
||||
##########################################################################
|
||||
|
||||
|
||||
class SchemaDiffRegistry(object):
|
||||
class SchemaDiffRegistry():
|
||||
"""
|
||||
SchemaDiffRegistry
|
||||
|
||||
|
@@ -30,7 +30,7 @@ class SchemaDiffTestCase(BaseSocketTestGenerator):
|
||||
SOCKET_NAMESPACE = '/schema_diff'
|
||||
|
||||
def setUp(self):
|
||||
super(SchemaDiffTestCase, self).setUp()
|
||||
super().setUp()
|
||||
self.src_database = "db_schema_diff_src_%s" % str(uuid.uuid4())[1:8]
|
||||
self.tar_database = "db_schema_diff_tar_%s" % str(uuid.uuid4())[1:8]
|
||||
|
||||
@@ -205,7 +205,7 @@ class SchemaDiffTestCase(BaseSocketTestGenerator):
|
||||
|
||||
def tearDown(self):
|
||||
"""This function drop the added database"""
|
||||
super(SchemaDiffTestCase, self).tearDown()
|
||||
super().tearDown()
|
||||
connection = utils.get_db_connection(self.server['db'],
|
||||
self.server['username'],
|
||||
self.server['db_password'],
|
||||
|
Reference in New Issue
Block a user