summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorsylvain thenault <sylvain.thenault@logilab.fr>2009-03-18 10:55:04 +0100
committersylvain thenault <sylvain.thenault@logilab.fr>2009-03-18 10:55:04 +0100
commit5ceea9c5166d6af0905aa7f3a9d3f4953700b09b (patch)
tree33e4ee212ae74fc39311da71b51f575d21471edc /checkers/variables.py
parent27a0d32d18d50111a36919f5b3453f67ecc5d03b (diff)
downloadpylint-5ceea9c5166d6af0905aa7f3a9d3f4953700b09b.tar.gz
fix module special attributes checking
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 19ccd56..40186c3 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -389,7 +389,7 @@ builtins. Remember that you should avoid to define new builtins when possible.'
else:
# we have not found the name, if it isn't a builtin, that's an
# undefined name !
- if not self._is_builtin(name):
+ if not (name in astng.Module.scope_attrs or self._is_builtin(name)):
self.add_message('E0602', args=name, node=node)
def visit_import(self, node):