another Py3 fix for the compiled modules
authorStefan Behnel <scoder@users.berlios.de>
Fri, 26 Nov 2010 15:20:18 +0000 (16:20 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 26 Nov 2010 15:20:18 +0000 (16:20 +0100)
Cython/Compiler/ExprNodes.py

index 83883bd792b43dcac80eb37b7beb984b408bbe9e..4fc73e89150a86c9eca789a02159b94292d3930f 100755 (executable)
@@ -3623,7 +3623,7 @@ class AttributeNode(ExprNode):
         interned_attr_cname = code.intern_identifier(self.attribute)
         self.obj.generate_evaluation_code(code)
         if self.is_py_attr or (isinstance(self.entry.scope, Symtab.PropertyScope)
-                               and self.entry.scope.entries.has_key(u'__del__')):
+                               and u'__del__' in self.entry.scope.entries):
             code.put_error_if_neg(self.pos,
                 'PyObject_DelAttr(%s, %s)' % (
                     self.obj.py_result(),