diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2007-08-21 09:36:16 +0200 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2007-08-21 09:36:16 +0200 |
commit | 330420da18f59cfc92ebcce8280b3b190055e7e2 (patch) | |
tree | ff5d3dfb304c0bef0c4f1847ae923e7e3b00f73b /checkers/variables.py | |
parent | 2f601c65ba6f917726e1619414b5e1688528a4b9 (diff) | |
download | pylint-330420da18f59cfc92ebcce8280b3b190055e7e2.tar.gz |
NameError
Diffstat (limited to 'checkers/variables.py')
-rw-r--r-- | checkers/variables.py | 2 |
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:]) |