Patchwork D2074: py3: use range instead of xrange

login
register
mail settings
Submitter phabricator
Date Feb. 7, 2018, 11:23 a.m.
Message ID <099b39ccaad4a28d217725798c71d7dc@localhost.localdomain>
Download mbox | patch
Permalink /patch/27415/
State Not Applicable
Headers show

Comments

phabricator - Feb. 7, 2018, 11:23 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGcf887d601014: py3: use range instead of xrange (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2074?vs=5280&id=5287

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

AFFECTED FILES
  tests/test-annotate.py

CHANGE DETAILS




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

Patch

diff --git a/tests/test-annotate.py b/tests/test-annotate.py
--- a/tests/test-annotate.py
+++ b/tests/test-annotate.py
@@ -27,7 +27,7 @@ 
 
         def decorate(text, rev):
             return ([annotateline(fctx=rev, lineno=i)
-                     for i in xrange(1, text.count(b'\n') + 1)],
+                     for i in range(1, text.count(b'\n') + 1)],
                     text)
 
         # Basic usage