From d692390065e0982d58050161966fa313495b61ba Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Nov 2018 01:53:11 -0400 Subject: [PATCH] cone/permutation_invariant.py: use xrange in two places. --- mjo/cone/permutation_invariant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mjo/cone/permutation_invariant.py b/mjo/cone/permutation_invariant.py index faa39f7..1c72565 100644 --- a/mjo/cone/permutation_invariant.py +++ b/mjo/cone/permutation_invariant.py @@ -59,8 +59,8 @@ def is_permutation_invariant(K): The rearrangement cone is permutation-invariant:: sage: all( is_permutation_invariant(rearrangement_cone(p,n)) - ....: for n in range(3, 6) - ....: for p in range(1, n) ) + ....: for n in xrange(3, 6) + ....: for p in xrange(1, n) ) True As is the nonnegative orthant:: -- 2.44.2