summaryrefslogtreecommitdiff
path: root/cheetah/Tests/Performance.py
diff options
context:
space:
mode:
Diffstat (limited to 'cheetah/Tests/Performance.py')
-rw-r--r--cheetah/Tests/Performance.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cheetah/Tests/Performance.py b/cheetah/Tests/Performance.py
index fc74367..d76cc00 100644
--- a/cheetah/Tests/Performance.py
+++ b/cheetah/Tests/Performance.py
@@ -78,7 +78,7 @@ class DynamicTemplatePerformanceTest(unittest.TestCase):
#pass
#end def
'''
- for i in xrange(self.loops):
+ for i in range(self.loops):
klass = Cheetah.Template.Template.compile(template)
assert klass
test_BasicDynamic = perftest(1200)(test_BasicDynamic)
@@ -91,7 +91,7 @@ class PerformanceTest(unittest.TestCase):
def runTest(self):
self.prof = hotshot.Profile('%s.prof' % self.__class__.__name__)
self.prof.start()
- for i in xrange(self.iterations):
+ for i in range(self.iterations):
if hasattr(self, 'performanceSample'):
self.display = True
self.performanceSample()
@@ -130,7 +130,7 @@ class BunchOfWriteCalls(PerformanceTest):
template = '''
#import sys
#import os
- #for i in xrange(1000)
+ #for i in range(1000)
$i
#end for
'''
@@ -210,7 +210,7 @@ class LongCompileTest(PerformanceTest):
<body>
$header()
- #for $i in $xrange(10)
+ #for $i in $range(10)
This is just some stupid page!
<br/>
#end for