summaryrefslogtreecommitdiff
path: root/pylint/checkers/variables.py
diff options
context:
space:
mode:
authorRadu Ciorba <radu@devrandom.ro>2015-03-30 02:07:22 +0300
committerRadu Ciorba <radu@devrandom.ro>2015-03-30 02:07:22 +0300
commit2a4b773b5347e09293f76f61ffdb0a9c2dafd3c7 (patch)
treec760dc371c1941ee7f441c7bc49ac89c72e63a9e /pylint/checkers/variables.py
parent04b087b0ff20b1113943ef14814fbca06ae5b1ad (diff)
downloadpylint-2a4b773b5347e09293f76f61ffdb0a9c2dafd3c7.tar.gz
add another test case + fixed an import error
Diffstat (limited to 'pylint/checkers/variables.py')
-rw-r--r--pylint/checkers/variables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 9cc747d..e2d4ecc 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, []):