fix infer_types directive check
authorStefan Behnel <scoder@users.berlios.de>
Sat, 6 Mar 2010 17:14:05 +0000 (18:14 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 6 Mar 2010 17:14:05 +0000 (18:14 +0100)
Cython/Compiler/Nodes.py

index dab0d0829eeed7ca40c018bedbf72d55ac8d8498..89acf9179bcef87f3c877cfa1e98e74c2cb19af5 100644 (file)
@@ -2025,7 +2025,7 @@ class DefNode(FuncDefNode):
 
     def declare_python_arg(self, env, arg):
         if arg:
-            if env.directives['infer_types'] != 'none':
+            if env.directives['infer_types'] != False:
                 type = PyrexTypes.unspecified_type
             else:
                 type = py_object_type