projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
480ee80
)
arg none check does not require arg type test utility code
author
Lisandro Dalcin
<dalcinl@gmail.com>
Tue, 15 Feb 2011 17:35:33 +0000
(14:35 -0300)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Tue, 15 Feb 2011 17:35:33 +0000
(14:35 -0300)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 16802078c4b00638d96a66d05b65b7badd134ae3..375a4621f7a712fa3aee6282b819c8010e15b52a 100644
(file)
--- 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,