diff options
author | Sylvain <syt@logilab.fr> | 2009-03-17 20:07:11 +0100 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2009-03-17 20:07:11 +0100 |
commit | 5014e5c6185f5925915eafd32bfda83c734ec0a5 (patch) | |
tree | c9e0cb016ba231f6eaf8c88dff24cde81a6ebb8a /checkers/variables.py | |
parent | 33d24c010fe453af24057aaa96b374382ffee484 (diff) | |
download | pylint-5014e5c6185f5925915eafd32bfda83c734ec0a5.tar.gz |
fix checking of module attributes accessible in module scope
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 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 |