mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
#4578: fix has_key() usage in compiler package.
This commit is contained in:
parent
cbc1ed5e28
commit
2d2fe572a4
5 changed files with 16 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue