A little optimization to the naming checker.

Tue, 01 Oct 2013 18:21:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 01 Oct 2013 18:21:30 +0200
changeset 2975
fb336783a649
parent 2974
4312c5a2bcd3
child 2976
393f5faaa017

A little optimization to the naming checker.

Plugins/CheckerPlugins/Pep8/Pep8NamingChecker.py file | annotate | diff | comparison | revisions
diff -r 4312c5a2bcd3 -r fb336783a649 Plugins/CheckerPlugins/Pep8/Pep8NamingChecker.py
--- a/Plugins/CheckerPlugins/Pep8/Pep8NamingChecker.py	Tue Oct 01 18:20:46 2013 +0200
+++ b/Plugins/CheckerPlugins/Pep8/Pep8NamingChecker.py	Tue Oct 01 18:21:30 2013 +0200
@@ -111,7 +111,7 @@
         @return tuple giving line number, offset within line, code and
             checker function
         """
-        if self.__tree:
+        if self.__tree and self.__checkers:
             return self.__visitTree(self.__tree)
         else:
             return ()

eric ide

mercurial