Commit 14f62011 authored by Lisandro Dalcin's avatar Lisandro Dalcin

arg none check does not require arg type test utility code

parent 480ee80c
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment