diff options
Diffstat (limited to 'Tools/pybench/Exceptions.py')
-rw-r--r-- | Tools/pybench/Exceptions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/pybench/Exceptions.py b/Tools/pybench/Exceptions.py index ab0fa0a..c321b2e 100644 --- a/Tools/pybench/Exceptions.py +++ b/Tools/pybench/Exceptions.py @@ -10,7 +10,7 @@ class TryRaiseExcept(Test): error = ValueError - for i in xrange(self.rounds): + for i in range(self.rounds): try: raise error except: @@ -48,7 +48,7 @@ class TryRaiseExcept(Test): error = ValueError - for i in xrange(self.rounds): + for i in range(self.rounds): pass @@ -60,7 +60,7 @@ class TryExcept(Test): def test(self): - for i in xrange(self.rounds): + for i in range(self.rounds): try: pass except: @@ -687,7 +687,7 @@ class TryExcept(Test): def calibrate(self): - for i in xrange(self.rounds): + for i in range(self.rounds): pass ### Test to make Fredrik happy... |