From 14f6201191d8308b2ad81649792d38d31ccaad89 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Tue, 15 Feb 2011 14:35:33 -0300 Subject: [PATCH] arg none check does not require arg type test utility code --- Cython/Compiler/Nodes.py | 1 - 1 file changed, 1 deletion(-) 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, -- 2.26.2