Skip to content

Commit

Permalink
Use range() rather than xrange().
Browse files Browse the repository at this point in the history
This would be a bit less efficient in Python 2.7, but it would work on Python 3.x.
  • Loading branch information
Flameeyes committed Apr 17, 2020
1 parent a1003d1 commit 7150e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run_benchmark(sess):
proc.start()

start = datetime.now()
for i in xrange(0, 1000):
for i in range(0, 1000):
sess.get(URL)
sys.stdout.write(".")
end = datetime.now()
Expand Down

0 comments on commit 7150e5b

Please sign in to comment.