Sat, 28 Sep 2013 17:40:42 +0200
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: