summaryrefslogtreecommitdiff
path: root/pylint/utils.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-02-28 19:13:33 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-02-28 19:13:33 +0200
commite6ae438fd29d54ec6aca84f750c55b58da998151 (patch)
treea19c977c90d39146381465c994f7281cb5bbf241 /pylint/utils.py
parent97bebf6a35f0581491f261e922c8ff0c07cd3eee (diff)
downloadpylint-e6ae438fd29d54ec6aca84f750c55b58da998151.tar.gz
Make the --py3k flag commutative with the -E flag.
Also, this patch fixes the leaks of error messages from the Python 3 checker when the errors mode was activated. Closes issue #437.
Diffstat (limited to 'pylint/utils.py')
-rw-r--r--pylint/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pylint/utils.py b/pylint/utils.py
index 6685c4a..6c5b975 100644
--- a/pylint/utils.py
+++ b/pylint/utils.py
@@ -225,6 +225,11 @@ class MessagesHandlerMixIn(object):
self._msgs_state = {}
self.msg_status = 0
+ def _checker_messages(self, checker):
+ for checker in self._checkers[checker.lower()]:
+ for msgid in checker.msgs:
+ yield msgid
+
def disable(self, msgid, scope='package', line=None, ignore_unknown=False):
"""don't output message of the given id"""
assert scope in ('package', 'module')