From: Stefan Behnel Date: Fri, 4 Dec 2009 05:40:18 +0000 (+0100) Subject: forgotten commit: make sure we only infer types if type inference is enabled X-Git-Tag: 0.12.1~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f9f7f1f98be9dee88953e39d8af8d751e800b1e;p=cython.git forgotten commit: make sure we only infer types if type inference is enabled --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 9cd91dde..ec7507df 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -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