From bc05cd7bf62b2a7dba09ddf8ecbd770c094a76a8 Mon Sep 17 00:00:00 2001 From: bsimon Date: Thu, 12 Mar 2015 15:18:06 +0000 Subject: Replaced xrange with range for Python 3 compatibility git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@38256 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: caac9e74b9cb16ae09e5ed110492012ee1aa40dc --- stsci/sphere/test/test_intersection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stsci') diff --git a/stsci/sphere/test/test_intersection.py b/stsci/sphere/test/test_intersection.py index 92a3413..e837512 100644 --- a/stsci/sphere/test/test_intersection.py +++ b/stsci/sphere/test/test_intersection.py @@ -228,7 +228,7 @@ def test_ordering(): [3.532883212044564125e-01, 6.354215160430938258e-01, -6.866053153377369433e-01]) areas = [] - for i in xrange(nrepeat): + for i in range(nrepeat): C = A.intersection(B) areas.append(C.area()) areas = np.array(areas) @@ -243,7 +243,7 @@ def test_ordering(): Aareas = [] Bareas = [] Careas = [] - for i in xrange(nrepeat): + for i in range(nrepeat): AS = roll_polygon(A, i) BS = roll_polygon(B, i) @@ -253,7 +253,7 @@ def test_ordering(): Bareas.append(B.area()) Careas.append(C.area()) - for j in xrange(nrepeat): + for j in range(nrepeat): CS = roll_polygon(C, j) Careas.append(CS.area()) -- cgit