diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-02-27 01:03:34 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-02-27 01:03:34 +0200 |
commit | c08284e7509f314244d26607d77e0508915ab5b4 (patch) | |
tree | a5091646dd04ea0acd42b794d2077a2d835f306d | |
parent | 7db3e4f46e474cdf5ad83b2202fddf9cb790b453 (diff) | |
download | pylint-c08284e7509f314244d26607d77e0508915ab5b4.tar.gz |
Backed out changeset c1f2f0c187b0
This is actually used by the test, which aren't calling visit_module.
-rw-r--r-- | pylint/checkers/python3.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py index 2682c58..3ddf495 100644 --- a/pylint/checkers/python3.py +++ b/pylint/checkers/python3.py @@ -360,6 +360,11 @@ class Python3Checker(checkers.BaseChecker): '__cmp__', ]) + def __init__(self, *args, **kwargs): + self._future_division = False + self._future_absolute_import = False + super(Python3Checker, self).__init__(*args, **kwargs) + def visit_module(self, node): # pylint: disable=unused-argument """Clear checker state after previous module.""" self._future_division = False |