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:
@@ -85,7 +85,7 @@ def test_create_base_class():
|
||||
'RegistryWithBaseClass', __package__, decorate_as_module=False
|
||||
)
|
||||
|
||||
class TestBase(object, metaclass=RegistryWithBaseClass):
|
||||
class TestBase(metaclass=RegistryWithBaseClass):
|
||||
pass
|
||||
|
||||
registry = RegistryWithBaseClass._registry
|
||||
|
||||
@@ -19,11 +19,11 @@ TestNamedRegistry = create_registry_metaclass(
|
||||
)
|
||||
|
||||
|
||||
class TestModuleBase(object, metaclass=TestModuleRegistry):
|
||||
class TestModuleBase(metaclass=TestModuleRegistry):
|
||||
pass
|
||||
|
||||
|
||||
class TestNameBase(object, metaclass=TestNamedRegistry):
|
||||
class TestNameBase(metaclass=TestNamedRegistry):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user