summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2013-02-09 17:03:26 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2013-02-09 17:03:26 +0100
commit0e6a550fce223cbe0cbb8c02486f4b880a417643 (patch)
tree0ae703e135d7651655965e6e63dc5eb9f106e30c
parent1c7be5fdc8fce59c40f16670802648e10c76f76f (diff)
downloadpep8-0e6a550fce223cbe0cbb8c02486f4b880a417643.tar.gz
Drop the third argument for the AST checkers
-rwxr-xr-xpep8.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pep8.py b/pep8.py
index 7d31e9d..7c2225a 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1195,7 +1195,6 @@ class Checker(object):
self._physical_checks = options.physical_checks
self._logical_checks = options.logical_checks
self._ast_checks = options.ast_checks
- self._options = options
self.max_line_length = options.max_line_length
self.verbose = options.verbose
self.filename = filename
@@ -1336,7 +1335,7 @@ class Checker(object):
except SyntaxError:
return self.report_invalid_syntax()
for name, cls, _ in self._ast_checks:
- checker = cls(tree, self.filename, self._options)
+ checker = cls(tree, self.filename)
for lineno, offset, text, check in checker.run():
if not noqa(self.lines[lineno - 1]):
self.report_error(lineno, offset, text, check)