summaryrefslogtreecommitdiff
path: root/pylint/lint.py
diff options
context:
space:
mode:
authorGlenn Matthews <glenn@e-dad.net>2016-07-18 16:02:48 -0400
committerGlenn Matthews <glenn@e-dad.net>2016-07-19 13:56:06 -0400
commitf63f165dbcc87fd792916c47f4d5c5e7796f00d0 (patch)
treed0d4522095d6204c2de967df4afb258fec34f23f /pylint/lint.py
parent0495355af9b2958e2ecd23311a697a8a7a7cc887 (diff)
downloadpylint-git-f63f165dbcc87fd792916c47f4d5c5e7796f00d0.tar.gz
Rename UnknownMessage, EmptyReport to UnknownMessageError, EmptyReportError
Diffstat (limited to 'pylint/lint.py')
-rw-r--r--pylint/lint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pylint/lint.py b/pylint/lint.py
index a5d2b744b..8f55556e3 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -645,7 +645,7 @@ class PyLinter(config.OptionsManagerMixIn,
self._ignore_file = True
return
meth(msgid, 'module', start[0])
- except exceptions.UnknownMessage:
+ except exceptions.UnknownMessageError:
self.add_message('bad-option-value', args=msgid, line=start[0])
else:
self.add_message('unrecognized-inline-option', args=opt, line=start[0])
@@ -996,7 +996,7 @@ def report_messages_stats(sect, stats, _):
"""make messages type report"""
if not stats['by_msg']:
# don't print this report when we didn't detected any errors
- raise exceptions.EmptyReport()
+ raise exceptions.EmptyReportError()
in_order = sorted([(value, msg_id)
for msg_id, value in six.iteritems(stats['by_msg'])
if not msg_id.startswith('I')])
@@ -1010,7 +1010,7 @@ def report_messages_by_module_stats(sect, stats, _):
"""make errors / warnings by modules report"""
if len(stats['by_module']) == 1:
# don't print this report when we are analysing a single module
- raise exceptions.EmptyReport()
+ raise exceptions.EmptyReportError()
by_mod = collections.defaultdict(dict)
for m_type in ('fatal', 'error', 'warning', 'refactor', 'convention'):
total = stats[m_type]
@@ -1039,7 +1039,7 @@ def report_messages_by_module_stats(sect, stats, _):
for val in line[:-1]:
lines.append('%.2f' % val)
if len(lines) == 5:
- raise exceptions.EmptyReport()
+ raise exceptions.EmptyReportError()
sect.append(report_nodes.Table(children=lines, cols=5, rheaders=1))