summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-10-04 06:59:34 +0200
committerStefan Behnel <stefan_ml@behnel.de>2015-10-04 06:59:34 +0200
commit5e97dbcbd35e827bd26bc2970466f0cddd04d7b7 (patch)
tree4adb247e9d3fa1aaa8fa163a53d2bd38d2b1776f
parent0a2e03f9f41fb405055afd7aa0bb57286293a3f6 (diff)
downloadcython-5e97dbcbd35e827bd26bc2970466f0cddd04d7b7.tar.gz
fix 1-arg min/max case
-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 760b15a23..9e8bd1a4b 100644
--- a/Cython/Compiler/Optimize.py
+++ b/Cython/Compiler/Optimize.py
@@ -1723,7 +1723,7 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
if len(args) <= 1:
if len(args) == 1 and args[0].is_sequence_constructor:
args = args[0].args
- if len(args) < 1:
+ if len(args) <= 1:
# leave this to Python
return node