diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-06-15 08:33:19 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-06-15 08:33:19 +0200 |
commit | fb494961c8f851b81a3ef83de9672aec40627480 (patch) | |
tree | cbff31e5299fac88690e4e53ee05f185c4fa4eba | |
parent | 77c6f2a312f64e5322eb1dca1c40f55c891abbd2 (diff) | |
download | pep8-fb494961c8f851b81a3ef83de9672aec40627480.tar.gz |
Replace the property 'result' with a method 'get_result()', easier to overload.
-rwxr-xr-x | pep8.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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=''): |