changeset 42370:c2d10506725c

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 24 May 2019 15:38:50 +0300
parents 343b3ed35cb8
children b47e9712000b
files contrib/perf.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()