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

@@ -220,7 +220,7 @@ class BrowserModule(PgAdminModule):
"""
from .server_groups import blueprint as module
self.submodules.append(module)
super(BrowserModule, self).register(app, options)
super().register(app, options)
blueprint = BrowserModule(MODULE_NAME, __name__)
@@ -266,7 +266,7 @@ class BrowserPluginModule(PgAdminModule, metaclass=ABCMeta):
self.pref_show_system_objects = None
self.pref_show_node = None
super(BrowserPluginModule, self).__init__(
super().__init__(
"NODE-%s" % self.node_type,
import_name,
**kwargs