diff options
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 874feff..c9bc1cd 100644 --- a/checkers/variables.py +++ b/checkers/variables.py @@ -216,7 +216,7 @@ builtins. Remember that you should avoid to define new builtins when possible.' """ globs = node.root().globals for name, stmt in node.items(): - if globs.has_key(name) and not isinstance(stmt, astng.Global): + if name in globs and not isinstance(stmt, astng.Global): line = globs[name][0].lineno self.add_message('W0621', args=(name, line), node=stmt) elif is_builtin(name): |