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

@@ -44,7 +44,7 @@ class PgAdminModule(Blueprint):
self.submodules = []
self.parentmodules = []
super(PgAdminModule, self).__init__(name, import_name, **kwargs)
super().__init__(name, import_name, **kwargs)
def create_module_preference():
# Create preference for each module by default
@@ -69,7 +69,7 @@ class PgAdminModule(Blueprint):
sub-modules at once.
"""
super(PgAdminModule, self).register(app, options)
super().register(app, options)
for module in self.submodules:
module.parentmodules.append(self)