Fixed 'convention' related code smell reported by SonarQube.

This commit is contained in:
Aditya Toshniwal authored and Akshay Joshi committed 2020-07-06 11:48:23 +05:30
1 parent fcf720a5d8
commit 45a03dd663
22 files changed
+98 -103

No files matched your search

+3 -3
View File
@@ -95,7 +95,7 @@ class PGChildModule(object):
Method:
------
* BackendSupported(manager)
* backend_supported(manager)
- Return True when it supports certain version.
Uses the psycopg2 server connection manager as input for checking the
compatibility of the current module.
@@ -112,7 +112,7 @@ class PGChildModule(object):
super(PGChildModule, self).__init__()
def BackendSupported(self, manager, **kwargs):
def backend_supported(self, manager, **kwargs):
if hasattr(self, 'show_node'):
if not self.show_node:
return False
@@ -385,7 +385,7 @@ class PGChildNodeView(NodeView):
if isinstance(module, PGChildModule):
if (
manager is not None and
module.BackendSupported(manager, **kwargs)
module.backend_supported(manager, **kwargs)
):
nodes.extend(module.get_nodes(**kwargs))
else: