commit | 2d2fe572a4605d3c25055717c1033589e2889e65 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Dec 15 08:58:59 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Mon Dec 15 08:58:59 2008 +0000 |
tree | c5d67af0ba51c48f36bf7117539f26ea04b496fe | |
parent | cbc1ed5e2811d2ef7dbf243a1adbcf1c9bf6cba1 [diff] [blame] |
#4578: fix has_key() usage in compiler package.
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 @@ 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