Patchwork D6443: py3: use range() instead of xrange()

login
register
mail settings
Submitter phabricator
Date May 25, 2019, 3:21 a.m.
Message ID <db7e6b57e70feae051e761df58a0f6cd@localhost.localdomain>
Download mbox | patch
Permalink /patch/40232/
State Not Applicable
Headers show

Comments

phabricator - May 25, 2019, 3:21 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc2d10506725c: py3: use range() instead of xrange() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6443?vs=15250&id=15257

REVISION DETAIL
  https://phab.mercurial-scm.org/D6443

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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()