summaryrefslogtreecommitdiff
path: root/Lib/compiler/visitor.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-15 08:58:59 +0000
committerGeorg Brandl <georg@python.org>2008-12-15 08:58:59 +0000
commit2d2fe572a4605d3c25055717c1033589e2889e65 (patch)
treec5d67af0ba51c48f36bf7117539f26ea04b496fe /Lib/compiler/visitor.py
parentcbc1ed5e2811d2ef7dbf243a1adbcf1c9bf6cba1 (diff)
downloadcpython-git-2d2fe572a4605d3c25055717c1033589e2889e65.tar.gz
#4578: fix has_key() usage in compiler package.
Diffstat (limited to 'Lib/compiler/visitor.py')
-rw-r--r--Lib/compiler/visitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/visitor.py b/Lib/compiler/visitor.py
index 9e39d36649..f10f56011a 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