#4578: fix has_key() usage in compiler package.

This commit is contained in:
Georg Brandl 2008-12-15 08:58:59 +00:00
parent cbc1ed5e28
commit 2d2fe572a4
5 changed files with 16 additions and 18 deletions

View file

@ -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