diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2014-04-12 08:52:46 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-04-12 08:52:46 +0300 |
commit | 1fb5f4424d4dba73ddf74d953e941ad803bee3d6 (patch) | |
tree | 08c66a454a1d3ad52159857df2b64d7044ea7be2 /checkers/variables.py | |
parent | 316881be29203d73c25dd44eda6b8a8e524f932f (diff) | |
download | pylint-git-1fb5f4424d4dba73ddf74d953e941ad803bee3d6.tar.gz |
Use the infered name when accessing __all__ elements. Closes 188.
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 7c489e8b1..469eccaa1 100644 --- a/checkers/variables.py +++ b/checkers/variables.py @@ -213,7 +213,7 @@ builtins. Remember that you should avoid to define new builtins when possible.' if not isinstance(elt_name, astroid.Const) or not isinstance(elt_name.value, basestring): self.add_message('E0604', args=elt.as_string(), node=elt) continue - elt_name = elt.value + elt_name = elt_name.value # If elt is in not_consumed, remove it from not_consumed if elt_name in not_consumed: del not_consumed[elt_name] |