# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2019-05-24 12:38:50 # Node ID c2d10506725cd41cfa3f23d7df3a65d2d8e07ca5 # Parent 343b3ed35cb812aad7c91f1c800c7b6f95987ba8 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 diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -408,7 +408,7 @@ def _timer(fm, func, setup=None, title=N 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()