summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2009-03-17 20:07:11 +0100
committerSylvain <syt@logilab.fr>2009-03-17 20:07:11 +0100
commit5014e5c6185f5925915eafd32bfda83c734ec0a5 (patch)
treec9e0cb016ba231f6eaf8c88dff24cde81a6ebb8a /checkers/variables.py
parent33d24c010fe453af24057aaa96b374382ffee484 (diff)
downloadpylint-5014e5c6185f5925915eafd32bfda83c734ec0a5.tar.gz
fix checking of module attributes accessible in module scope
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 76af53f..c5e7146 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -366,7 +366,7 @@ builtins. Remember that you should avoid to define new builtins when possible.'
elif defframe.parent is None:
# we are at the module level, check the name is not
# defined in builtins
- if builtin_lookup(name)[1]:
+ if name in defframe.scope_attrs or builtin_lookup(name)[1]:
maybee0601 = False
else:
# we are in a local scope, check the name is not