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:
@@ -12,7 +12,7 @@
|
||||
import simplejson as json
|
||||
from functools import wraps
|
||||
|
||||
import pgadmin.browser.server_groups.servers as servers
|
||||
from pgadmin.browser.server_groups import servers
|
||||
from flask import render_template, make_response, request, jsonify
|
||||
from flask_babel import gettext
|
||||
from pgadmin.browser.collection import CollectionNodeModule
|
||||
@@ -65,7 +65,7 @@ class ResourceGroupModule(CollectionNodeModule):
|
||||
*args:
|
||||
**kwargs:
|
||||
"""
|
||||
super(ResourceGroupModule, self).__init__(*args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
self.min_ver = 90400
|
||||
self.max_ver = None
|
||||
@@ -204,7 +204,7 @@ class ResourceGroupView(NodeView):
|
||||
self.conn = None
|
||||
self.template_path = None
|
||||
|
||||
super(ResourceGroupView, self).__init__(**kwargs)
|
||||
super().__init__(**kwargs)
|
||||
|
||||
def check_precondition(f):
|
||||
"""
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import json
|
||||
import uuid
|
||||
|
||||
from pgadmin.utils import server_utils as server_utils
|
||||
from pgadmin.utils import server_utils
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression import parent_node_dict
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
import uuid
|
||||
|
||||
from pgadmin.utils import server_utils as server_utils
|
||||
from pgadmin.utils import server_utils
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression import parent_node_dict
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import uuid
|
||||
import json
|
||||
|
||||
from pgadmin.utils import server_utils as server_utils
|
||||
from pgadmin.utils import server_utils
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression import parent_node_dict
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import json
|
||||
import uuid
|
||||
|
||||
from pgadmin.utils import server_utils as server_utils
|
||||
from pgadmin.utils import server_utils
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression import parent_node_dict
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
import uuid
|
||||
|
||||
from pgadmin.utils import server_utils as server_utils
|
||||
from pgadmin.utils import server_utils
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression import parent_node_dict
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
Reference in New Issue
Block a user