From: Stefan Behnel Date: Fri, 26 Nov 2010 15:20:18 +0000 (+0100) Subject: another Py3 fix for the compiled modules X-Git-Tag: 0.14.alpha0~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=adea623fadbdb6ffcd4c9c15486652a8df2c126a;p=cython.git another Py3 fix for the compiled modules --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 83883bd7..4fc73e89 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -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(),