From e2fed4aea977b32aa142e37f0d29a6a4a73fb61a Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 15 Oct 2009 01:41:23 -0700 Subject: [PATCH] Minor cleanup. --- Cython/Compiler/Nodes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.26.2