From: Robert Bradshaw Date: Thu, 15 Oct 2009 08:41:23 +0000 (-0700) Subject: Minor cleanup. X-Git-Tag: 0.13.beta0~2^2~121^2~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2fed4aea977b32aa142e37f0d29a6a4a73fb61a;p=cython.git Minor cleanup. --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index e7d86b80..0daf2bd3 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -2486,15 +2486,15 @@ class OverrideCheckNode(StatNode): code.putln("%s = PyObject_GetAttr(%s, %s); %s" % ( self.func_node.result(), self_arg, interned_attr_cname, err)) code.put_gotref(self.func_node.py_result()) - is_builtin_function_or_method = 'PyCFunction_Check(%s)' % self.func_node.result() - is_overridden = '(PyCFunction_GET_FUNCTION(%s) != (void *)&%s)' % ( + is_builtin_function_or_method = "PyCFunction_Check(%s)" % self.func_node.result() + is_overridden = "(PyCFunction_GET_FUNCTION(%s) != (void *)&%s)" % ( self.func_node.result(), self.py_func.entry.func_cname) - code.putln('if (!%s || %s) {' % (is_builtin_function_or_method, is_overridden)) + code.putln("if (!%s || %s) {" % (is_builtin_function_or_method, is_overridden)) self.body.generate_execution_code(code) - code.putln('}') - code.put_decref_clear(self.func_node.result(), PyrexTypes.py_object_type) code.putln("}") + code.put_decref_clear(self.func_node.result(), PyrexTypes.py_object_type) self.func_node.release(code) + code.putln("}") class ClassDefNode(StatNode, BlockNode): pass