summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-05-17 22:17:24 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-05-17 22:17:24 +0200
commit3bf925e15e651787142163e8439d011a7dfbaf9b (patch)
tree9dd3d695c4242059ed150789d6c3a4b45ebd8ad4
parent0a25de5b1023fd551f5e600583de8d8c87b7796d (diff)
downloadcython-3bf925e15e651787142163e8439d011a7dfbaf9b.tar.gz
Minor code cleanup.
-rw-r--r--Cython/Compiler/Optimize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py
index 1379308d0..6f64fc7f1 100644
--- a/Cython/Compiler/Optimize.py
+++ b/Cython/Compiler/Optimize.py
@@ -1723,7 +1723,7 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
arg = pos_args[0]
if isinstance(arg, ExprNodes.ComprehensionNode) and arg.type is Builtin.list_type:
- list_node = pos_args[0]
+ list_node = arg
loop_node = list_node.loop
elif isinstance(arg, ExprNodes.GeneratorExpressionNode):