summaryrefslogtreecommitdiff
path: root/pylint/checkers/raw_metrics.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/checkers/raw_metrics.py
parent0495355af9b2958e2ecd23311a697a8a7a7cc887 (diff)
downloadpylint-git-f63f165dbcc87fd792916c47f4d5c5e7796f00d0.tar.gz
Rename UnknownMessage, EmptyReport to UnknownMessageError, EmptyReportError
Diffstat (limited to 'pylint/checkers/raw_metrics.py')
-rw-r--r--pylint/checkers/raw_metrics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/raw_metrics.py b/pylint/checkers/raw_metrics.py
index a3aed5171..79fcc4d3e 100644
--- a/pylint/checkers/raw_metrics.py
+++ b/pylint/checkers/raw_metrics.py
@@ -12,7 +12,7 @@ Raw metrics checker
import tokenize
from pylint.interfaces import ITokenChecker
-from pylint.exceptions import EmptyReport
+from pylint.exceptions import EmptyReportError
from pylint.checkers import BaseTokenChecker
from pylint.reporters import diff_string
from pylint.reporters.ureports.nodes import Table
@@ -23,7 +23,7 @@ def report_raw_stats(sect, stats, old_stats):
"""
total_lines = stats['total_lines']
if not total_lines:
- raise EmptyReport()
+ raise EmptyReportError()
sect.description = '%s lines have been analyzed' % total_lines
lines = ('type', 'number', '%', 'previous', 'difference')
for node_type in ('code', 'docstring', 'comment', 'empty'):