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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user