py3: use range() instead of xrange()
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 24 May 2019 15:38:50 +0300
changeset 42370 c2d10506725c
parent 42369 343b3ed35cb8
child 42371 b47e9712000b
py3: use range() instead of xrange() The latter does not exist on Python 3. This makes test-contrib-perf.t pass on Python 3 again. Differential Revision: https://phab.mercurial-scm.org/D6443
contrib/perf.py
--- a/contrib/perf.py	Fri May 24 15:59:59 2019 +0300
+++ b/contrib/perf.py	Fri May 24 15:38:50 2019 +0300
@@ -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()