From: Stefan Behnel Date: Wed, 14 Apr 2010 19:44:15 +0000 (+0200) Subject: quick fix for 'not None' tests X-Git-Tag: 0.13.beta0~209 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=29655b0428a9a2953a4c5cd5e1ac23565d32d06c;p=cython.git quick fix for 'not None' tests --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 29b1562f..5e0694ae 100644 --- 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: