Skip to content

Commit 9b91239

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 9d5c1f5 commit 9b91239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def run_benchmark(sess):
3434
proc.start()
3535

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

0 commit comments

Comments
 (0)