From 721da31ab4d241fc74962e446fb92e60099df962 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Nov 2018 01:59:45 -0400 Subject: [PATCH] cone/schur.py: use xrange in one place. --- mjo/cone/schur.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjo/cone/schur.py b/mjo/cone/schur.py index d1bad98..dca7292 100644 --- a/mjo/cone/schur.py +++ b/mjo/cone/schur.py @@ -59,7 +59,7 @@ def schur_cone(n): sage: set_random_seed() sage: def majorized_by(x,y): ....: return (all(sum(x[0:i]) <= sum(y[0:i]) - ....: for i in range(x.degree()-1)) + ....: for i in xrange(x.degree()-1)) ....: and sum(x) == sum(y)) sage: n = ZZ.random_element(10) sage: V = VectorSpace(QQ, n) -- 2.44.2