eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py

changeset 8218
7c09585bd960
parent 8216
6a042a54e0f7
child 8219
013aee248a62
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py	Sat Apr 10 18:31:17 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py	Sat Apr 10 18:38:27 2021 +0200
@@ -63,7 +63,7 @@
         @param errorCallback callback function to register an error
         @type func
         """
-        super(SimplifyNodeVisitor, self).__init__()
+        super().__init__()
         
         self.__error = errorCallback
         
@@ -1156,13 +1156,13 @@
     
     def __check182(self, node):
         """
-        Private method to check for calls of type 'super(Foo, self)' that could
+        Private method to check for calls of type 'super()' that could
         be shortened to 'super()'.
         
         @param node reference to the AST node to be checked
         @type ast.Call
         """
-        # super(Foo, self)
+        # super()
         if (
             self.__classDefinitionStack and
             isinstance(node.func, ast.Name) and

eric ide

mercurial