Sun, 29 Sep 2013 18:41:53 +0200
Some little optimization in the doc style checker.
Plugins/CheckerPlugins/Pep8/Pep257Checker.py | file | annotate | diff | comparison | revisions | |
UtilitiesPython2/Pep257CheckerPy2.py | file | annotate | diff | comparison | revisions |
diff -r f85f686981ad -r f9acd647f881 Plugins/CheckerPlugins/Pep8/Pep257Checker.py --- a/Plugins/CheckerPlugins/Pep8/Pep257Checker.py Sun Sep 29 18:23:27 2013 +0200 +++ b/Plugins/CheckerPlugins/Pep8/Pep257Checker.py Sun Sep 29 18:41:53 2013 +0200 @@ -433,6 +433,10 @@ # don't do anything, if essential data is missing return + if not self.__checkers: + # don't do anything, if no codes were selected + return + for keyword in self.__keywords: if keyword in self.__checkers: for check in self.__checkers[keyword]:
diff -r f85f686981ad -r f9acd647f881 UtilitiesPython2/Pep257CheckerPy2.py --- a/UtilitiesPython2/Pep257CheckerPy2.py Sun Sep 29 18:23:27 2013 +0200 +++ b/UtilitiesPython2/Pep257CheckerPy2.py Sun Sep 29 18:41:53 2013 +0200 @@ -301,6 +301,10 @@ # don't do anything, if essential data is missing return + if not self.__checkers: + # don't do anything, if no codes were selected + return + for keyword in self.__keywords: if keyword in self.__checkers: for check in self.__checkers[keyword]: