Skip to content

Commit 7150e5b

Browse files
committed
Use range() rather than xrange().
This would be a bit less efficient in Python 2.7, but it would work on Python 3.x.
1 parent a1003d1 commit 7150e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/benchmark.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def run_benchmark(sess):
3535
proc.start()
3636

3737
start = datetime.now()
38-
for i in xrange(0, 1000):
38+
for i in range(0, 1000):
3939
sess.get(URL)
4040
sys.stdout.write(".")
4141
end = datetime.now()

0 commit comments

Comments
 (0)