projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab433f3
)
forgotten commit: make sure we only infer types if type inference is enabled
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 4 Dec 2009 05:40:18 +0000
(06:40 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 4 Dec 2009 05:40:18 +0000
(06:40 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 9cd91dde94be7ff7ef84768d44367fc809beb249..ec7507df3789271ba858aeb7b2a0968e4668c549 100644
(file)
--- 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