From: Stefan Behnel Date: Sat, 6 Mar 2010 17:14:05 +0000 (+0100) Subject: fix infer_types directive check X-Git-Tag: 0.13.beta0~2^2~98^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3594f918658df148963e69b1386c6a756e5ad732;p=cython.git fix infer_types directive check --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index dab0d082..89acf917 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -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