summaryrefslogtreecommitdiffstats
path: root/Tools/pybench/Constructs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/pybench/Constructs.py')
-rw-r--r--Tools/pybench/Constructs.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/pybench/Constructs.py b/Tools/pybench/Constructs.py
index 5105461..7273b87 100644
--- a/Tools/pybench/Constructs.py
+++ b/Tools/pybench/Constructs.py
@@ -9,7 +9,7 @@ class IfThenElse(Test):
def test(self):
a,b,c = 1,2,3
- for i in xrange(self.rounds):
+ for i in range(self.rounds):
if a == 1:
if b == 2:
@@ -464,7 +464,7 @@ class IfThenElse(Test):
def calibrate(self):
a,b,c = 1,2,3
- for i in xrange(self.rounds):
+ for i in range(self.rounds):
pass
class NestedForLoops(Test):
@@ -478,7 +478,7 @@ class NestedForLoops(Test):
l1 = range(1000)
l2 = range(10)
l3 = range(5)
- for i in xrange(self.rounds):
+ for i in range(self.rounds):
for i in l1:
for j in l2:
for k in l3:
@@ -489,7 +489,7 @@ class NestedForLoops(Test):
l1 = range(1000)
l2 = range(10)
l3 = range(5)
- for i in xrange(self.rounds):
+ for i in range(self.rounds):
pass
class ForLoops(Test):
@@ -501,7 +501,7 @@ class ForLoops(Test):
def test(self):
l1 = range(100)
- for i in xrange(self.rounds):
+ for i in range(self.rounds):
for i in l1:
pass
for i in l1:
@@ -560,5 +560,5 @@ class ForLoops(Test):
def calibrate(self):
l1 = range(1000)
- for i in xrange(self.rounds):
+ for i in range(self.rounds):
pass