summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
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