Fixed an issue parsing the eric style doc strings.

Sat, 28 Sep 2013 17:40:42 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 28 Sep 2013 17:40:42 +0200
changeset 2952
94fc661a54a2
parent 2951
2cef28b12399
child 2953
703452a2876f
child 3056
9986ec0e559a

Fixed an issue parsing the eric style doc strings.

Plugins/CheckerPlugins/Pep8/Pep257Checker.py file | annotate | diff | comparison | revisions
UtilitiesPython2/Pep257CheckerPy2.py file | annotate | diff | comparison | revisions
--- a/Plugins/CheckerPlugins/Pep8/Pep257Checker.py	Sat Sep 28 17:27:43 2013 +0200
+++ b/Plugins/CheckerPlugins/Pep8/Pep257Checker.py	Sat Sep 28 17:40:42 2013 +0200
@@ -1183,8 +1183,8 @@
                     if line.strip().startswith(("@param", "@keyparam")):
                         at, name = line.strip().split(None, 2)[:2]
                         if at == "@keyparam":
-                            kwargs.append(name)
-                        args.append(name)
+                            kwargs.append(name.lstrip("*"))
+                        args.append(name.lstrip("*"))
                 
                 # do the checks
                 for name in kwNames:
--- a/UtilitiesPython2/Pep257CheckerPy2.py	Sat Sep 28 17:27:43 2013 +0200
+++ b/UtilitiesPython2/Pep257CheckerPy2.py	Sat Sep 28 17:40:42 2013 +0200
@@ -1051,8 +1051,8 @@
                     if line.strip().startswith(("@param", "@keyparam")):
                         at, name = line.strip().split(None, 2)[:2]
                         if at == "@keyparam":
-                            kwargs.append(name)
-                        args.append(name)
+                            kwargs.append(name.lstrip("*"))
+                        args.append(name.lstrip("*"))
                 
                 # do the checks
                 for name in kwNames:

eric ide

mercurial