diff options
| author | Georg Brandl <georg@python.org> | 2008-12-15 08:58:59 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-12-15 08:58:59 (GMT) |
| commit | 2d2fe572a4605d3c25055717c1033589e2889e65 (patch) | |
| tree | c5d67af0ba51c48f36bf7117539f26ea04b496fe /Lib/compiler/visitor.py | |
| parent | cbc1ed5e2811d2ef7dbf243a1adbcf1c9bf6cba1 (diff) | |
| download | cpython-2d2fe572a4605d3c25055717c1033589e2889e65.zip cpython-2d2fe572a4605d3c25055717c1033589e2889e65.tar.gz cpython-2d2fe572a4605d3c25055717c1033589e2889e65.tar.bz2 | |
#4578: fix has_key() usage in compiler package.
Diffstat (limited to 'Lib/compiler/visitor.py')
| -rw-r--r-- | Lib/compiler/visitor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/visitor.py b/Lib/compiler/visitor.py index 9e39d36..f10f560 100644 --- a/Lib/compiler/visitor.py +++ b/Lib/compiler/visitor.py @@ -84,7 +84,7 @@ class ExampleASTVisitor(ASTVisitor): meth(node, *args) elif self.VERBOSE > 0: klass = node.__class__ - if not self.examples.has_key(klass): + if klass not in self.examples: self.examples[klass] = klass print print self.visitor |
