diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 14:52:57 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 14:52:57 +0100 |
commit | ee9367d5716ab89888b89c45383ebc26b44ee86a (patch) | |
tree | 7adfd4a7b83db568742a9d26bf261d74a39ff5f1 /checkers/variables.py | |
parent | 3c8ccc78ec536fca1c64a9fed36c3445b1e7d1eb (diff) | |
download | pylint-ee9367d5716ab89888b89c45383ebc26b44ee86a.tar.gz |
223 : run python2.x compatible fixers
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): |