diff options
author | Simu Toni <simutoni@gmail.com> | 2015-03-28 18:28:08 +0200 |
---|---|---|
committer | Simu Toni <simutoni@gmail.com> | 2015-03-28 18:28:08 +0200 |
commit | bc4d7d822238e2acf738cb9437ccae11034e5e91 (patch) | |
tree | e2372649b6fc11c6232ce08d3f679571a0997173 /pylint/checkers/variables.py | |
parent | 8828a5bb41eb9198a3d80983d655d445ac917b14 (diff) | |
download | pylint-bc4d7d822238e2acf738cb9437ccae11034e5e91.tar.gz |
issue-422 solved some pylint warnings when running pylint on pylint code base
Diffstat (limited to 'pylint/checkers/variables.py')
-rw-r--r-- | pylint/checkers/variables.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py index d626013..2582073 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -43,7 +43,7 @@ def _is_from_future_import(stmt, name): """Check if the name is a future import from another module.""" try: module = stmt.do_import_module(stmt.modname) - except InferenceError: + except astroid.InferenceError: return for local_node in module.locals.get(name, []): @@ -425,7 +425,7 @@ builtins. Remember that you should avoid to define new builtins when possible.' msg = "%s imported as %s" % (imported_name, as_name) self.add_message('unused-import', args=msg, node=stmt) elif (isinstance(stmt, astroid.From) - and stmt.modname != '__future__'): + and stmt.modname != '__future__'): if SPECIAL_OBJ.search(imported_name): # Filter special objects (__doc__, __all__) etc., |