summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-08-16 16:17:43 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-08-16 16:17:43 +0200
commit2f601c65ba6f917726e1619414b5e1688528a4b9 (patch)
tree7b518171f3e71e8daf56e3b6ee4351808435a4c6 /checkers/variables.py
parentd9d882ca279c256fdeb806959a99ae81ccabee91 (diff)
parent9bb2376517a0182d4a32e41a3aa733921e7e7ade (diff)
downloadpylint-2f601c65ba6f917726e1619414b5e1688528a4b9.tar.gz
merge
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index 2629a31..68acf94 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -356,13 +356,7 @@ builtins. Remember that you should avoid to define new builtins when possible.'
for name, _ in node.names:
parts = name.split('.')
try:
- context = astng.InferenceContext(node)
- context.lookupname = parts[0]
- except AttributeError:
- # XXX bw compat
- context = parts[0]
- try:
- module = node.infer(context, asname=False).next()
+ module = node.infer_name_module(name_parts[0]).next()
except astng.ResolveError:
continue
self._check_module_attrs(node, module, parts[1:])