arg none check does not require arg type test utility code
authorLisandro Dalcin <dalcinl@gmail.com>
Tue, 15 Feb 2011 17:35:33 +0000 (14:35 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Tue, 15 Feb 2011 17:35:33 +0000 (14:35 -0300)
Cython/Compiler/Nodes.py

index 16802078c4b00638d96a66d05b65b7badd134ae3..375a4621f7a712fa3aee6282b819c8010e15b52a 100644 (file)
@@ -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,