projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91db44a
)
safety fix
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 9 Feb 2013 06:44:18 +0000
(07:44 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 9 Feb 2013 06:44:18 +0000
(07:44 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
96ff69e
..
73bbd84
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-1398,7
+1398,7
@@
class NameNode(AtomicExprNode):
def infer_type(self, env):
if self.entry is None:
self.entry = env.lookup(self.name)
- if self.entry is None:
+ if self.entry is None
or self.entry.type is unspecified_type
:
return py_object_type
elif (self.entry.type.is_extension_type or self.entry.type.is_builtin_type) and \
self.name == self.entry.type.name: