Patchwork D2325: py3: use range instead of xrange in tests/test-mq-missingfiles.t

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 1:30 p.m.
Message ID <differential-rev-PHID-DREV-ayvvdahq5e3gcyrjtby6-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28078/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 1:30 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  xrange is not present in python 3.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-mq-missingfiles.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-mq-missingfiles.t b/tests/test-mq-missingfiles.t
--- a/tests/test-mq-missingfiles.t
+++ b/tests/test-mq-missingfiles.t
@@ -10,7 +10,7 @@ 
   > assert (len(args) % 2) == 0
   > 
   > f = open(path, 'wb')
-  > for i in xrange(len(args)/2):
+  > for i in range(len(args)/2):
   >    count, s = args[2*i:2*i+2]
   >    count = int(count)
   >    s = s.decode('string_escape')