quick fix for 'not None' tests
authorStefan Behnel <scoder@users.berlios.de>
Wed, 14 Apr 2010 19:44:15 +0000 (21:44 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 14 Apr 2010 19:44:15 +0000 (21:44 +0200)
Cython/Compiler/Nodes.py

index 29b1562fa28093a4d17fd98197d915369eeceff2..5e0694ae3ab0c8834bc0bb17b3fadddcf1a58176 100644 (file)
@@ -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: