summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2013-06-19 15:16:50 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2013-06-19 15:16:50 +0200
commita573441c7ce6ce05c44b6daaa1e7e11828b62530 (patch)
tree6343cf0fe778f524dc46699bc69c015607f73c48 /utils.py
parent2d59b043df1ed204a33ed567cfb9bffb563a4f71 (diff)
downloadpylint-git-a573441c7ce6ce05c44b6daaa1e7e11828b62530.tar.gz
move EmptyReport exception to pylint.utils and refactor imports so pylint.utils stop importing checkers/reporters
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 3507b7093..4b109dbb0 100644
--- a/utils.py
+++ b/utils.py
@@ -32,13 +32,15 @@ from logilab.common.ureports import Section
from astroid import nodes, Module
-from pylint.checkers import EmptyReport
from pylint.interfaces import IRawChecker, ITokenChecker
class UnknownMessage(Exception):
"""raised when a unregistered message id is encountered"""
+class EmptyReport(Exception):
+ """raised when a report is empty and so should not be displayed"""
+
MSG_TYPES = {
'I' : 'info',