From: Lisandro Dalcin Date: Tue, 15 Feb 2011 17:35:33 +0000 (-0300) Subject: arg none check does not require arg type test utility code X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=14f6201191d8308b2ad81649792d38d31ccaad89;p=cython.git arg none check does not require arg type test utility code --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 16802078..375a4621 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1538,7 +1538,6 @@ class FuncDefNode(StatNode, BlockNode): def generate_arg_none_check(self, arg, code): # Generate None check for one argument. - code.globalstate.use_utility_code(arg_type_test_utility_code) code.putln('if (unlikely(((PyObject *)%s) == Py_None)) {' % arg.entry.cname) code.putln('''PyErr_Format(PyExc_TypeError, "Argument '%s' must not be None"); %s''' % ( arg.name,