summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-04-12 08:52:46 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-04-12 08:52:46 +0300
commit1fb5f4424d4dba73ddf74d953e941ad803bee3d6 (patch)
tree08c66a454a1d3ad52159857df2b64d7044ea7be2 /checkers/variables.py
parent316881be29203d73c25dd44eda6b8a8e524f932f (diff)
downloadpylint-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.py2
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]