D6443: py3: use range() instead of xrange()
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri May 24 12:42:08 UTC 2019
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The latter does not exist on Python 3. This makes test-contrib-perf.t pass on
Python 3 again.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6443
AFFECTED FILES
contrib/perf.py
CHANGE DETAILS
diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -408,7 +408,7 @@
count = 0
if profiler is None:
profiler = NOOPCTX
- for i in xrange(prerun):
+ for i in range(prerun):
if setup is not None:
setup()
func()
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list