Patchwork D4031: pycompat: add xrange alias for Python 2

login
register
mail settings
Submitter phabricator
Date Aug. 1, 2018, 8:19 p.m.
Message ID <b85998668d876b12d31379049fe8df04@localhost.localdomain>
Download mbox | patch
Permalink /patch/33049/
State Not Applicable
Headers show

Comments

phabricator - Aug. 1, 2018, 8:19 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7eba8f83129b: pycompat: add xrange alias for Python 2 (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4031?vs=9733&id=9737

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

AFFECTED FILES
  mercurial/pycompat.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py
--- a/mercurial/pycompat.py
+++ b/mercurial/pycompat.py
@@ -331,6 +331,7 @@ 
 else:
     import cStringIO
 
+    xrange = xrange
     unicode = unicode
     bytechr = chr
     byterepr = repr