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:
Mark Mayo
2022-11-19 17:43:41 +13:00
committed by GitHub
parent 02362d8aa4
commit 41508f7f67
354 changed files with 532 additions and 534 deletions

View File

@@ -10,7 +10,7 @@
from flask_babel import gettext
class SchemaDiffModel(object):
class SchemaDiffModel():
"""
SchemaDiffModel
"""

View File

@@ -8,7 +8,7 @@
##########################################################################
class SchemaDiffRegistry(object):
class SchemaDiffRegistry():
"""
SchemaDiffRegistry

View File

@@ -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'],