summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-08-21 09:36:16 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2007-08-21 09:36:16 +0200
commit330420da18f59cfc92ebcce8280b3b190055e7e2 (patch)
treeff5d3dfb304c0bef0c4f1847ae923e7e3b00f73b /checkers/variables.py
parent2f601c65ba6f917726e1619414b5e1688528a4b9 (diff)
downloadpylint-330420da18f59cfc92ebcce8280b3b190055e7e2.tar.gz
NameError
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index 68acf94..71fb0eb 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -356,7 +356,7 @@ builtins. Remember that you should avoid to define new builtins when possible.'
for name, _ in node.names:
parts = name.split('.')
try:
- module = node.infer_name_module(name_parts[0]).next()
+ module = node.infer_name_module(parts[0]).next()
except astng.ResolveError:
continue
self._check_module_attrs(node, module, parts[1:])