eric6/Plugins/CheckerPlugins/CodeStyleChecker/NamingStyleChecker.py

changeset 7249
0bf517e60f54
parent 6942
2602857055c5
child 7256
4ef3b78ebb4e
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/NamingStyleChecker.py	Thu Sep 19 19:22:43 2019 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/NamingStyleChecker.py	Thu Sep 19 19:39:04 2019 +0200
@@ -131,8 +131,8 @@
         
         @param classNode AST tree node to tag
         """
-        # try to find all 'old style decorators' like
-        # m = staticmethod(m)
+        # try to find all 'old style decorators'
+        # like m = staticmethod(m)
         lateDecoration = {}
         for node in ast.iter_child_nodes(classNode):
             if not (isinstance(node, ast.Assign) and
@@ -188,7 +188,7 @@
         @param node AST node to extract arguments names from
         @return list of argument names (list of string)
         """
-        if sys.version_info[0] == 3:
+        if sys.version_info[0] >= 3:
             posArgs = [arg.arg for arg in node.args.args]
             kwOnly = [arg.arg for arg in node.args.kwonlyargs]
             return posArgs + kwOnly

eric ide

mercurial