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:
cc4f7da
)
minor code cleanup
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 2 Mar 2013 13:59:34 +0000
(14:59 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 2 Mar 2013 13:59:34 +0000
(14:59 +0100)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index
5a778de
..
9da56a5
100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-2077,7
+2077,7
@@
class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
env = self.current_env()
for test_type_node in types:
builtin_type = None
- if
isinstance(test_type_node, ExprNodes.NameNode)
:
+ if
test_type_node.is_name
:
if test_type_node.entry:
entry = env.lookup(test_type_node.entry.name)
if entry and entry.type and entry.type.is_builtin_type: