# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1558701530 -10800 # 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 -r 343b3ed35cb8 -r c2d10506725c 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()