summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-06-15 08:33:19 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-06-15 08:33:19 +0200
commitfb494961c8f851b81a3ef83de9672aec40627480 (patch)
treecbff31e5299fac88690e4e53ee05f185c4fa4eba
parent77c6f2a312f64e5322eb1dca1c40f55c891abbd2 (diff)
downloadpep8-fb494961c8f851b81a3ef83de9672aec40627480.tar.gz
Replace the property 'result' with a method 'get_result()', easier to overload.
-rwxr-xr-xpep8.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pep8.py b/pep8.py
index 58deffe..378e392 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1342,7 +1342,7 @@ class Checker(object):
if COMMENT_WITH_NL:
# The comment also ends a physical line
self.tokens = []
- return self.report.result
+ return self.report.get_result()
class BaseReport(object):
@@ -1401,8 +1401,7 @@ class BaseReport(object):
self.total_errors += 1
return code
- @property
- def result(self):
+ def get_result(self):
return self.file_errors
def get_count(self, prefix=''):