forgotten commit: make sure we only infer types if type inference is enabled
authorStefan Behnel <scoder@users.berlios.de>
Fri, 4 Dec 2009 05:40:18 +0000 (06:40 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 4 Dec 2009 05:40:18 +0000 (06:40 +0100)
Cython/Compiler/ExprNodes.py

index 9cd91dde94be7ff7ef84768d44367fc809beb249..ec7507df3789271ba858aeb7b2a0968e4668c549 100644 (file)
@@ -1146,7 +1146,7 @@ class NameNode(AtomicExprNode):
         if not self.entry:
             self.entry = env.lookup_here(self.name)
         if not self.entry:
-            if env.directives['infer_types']:
+            if env.directives['infer_types'] != 'none':
                 type = unspecified_type
             else:
                 type = py_object_type