projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5d7ce
)
quick fix for 'not None' tests
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 14 Apr 2010 19:44:15 +0000
(21:44 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 14 Apr 2010 19:44:15 +0000
(21:44 +0200)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 29b1562fa28093a4d17fd98197d915369eeceff2..5e0694ae3ab0c8834bc0bb17b3fadddcf1a58176 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-1889,6
+1889,7
@@
class DefNode(FuncDefNode):
# default depends on compiler directive
arg.accept_none = allow_none_for_extension_args
else:
+ arg.accept_none = True
if arg.not_none:
error(self.pos, "Only extension type arguments can have 'not None'")
if arg.or_none: