From 2d2fe572a4605d3c25055717c1033589e2889e65 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 15 Dec 2008 08:58:59 +0000 Subject: #4578: fix has_key() usage in compiler package. --- Lib/compiler/visitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/compiler/visitor.py') 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 -- cgit v1.2.1