D2330: py3: use range instead of xrange in tests/test-mq-qimport.t

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Feb 18 13:30:56 UTC 2018


pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  xrange is not present on Python 3.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-mq-qimport.t

CHANGE DETAILS

diff --git a/tests/test-mq-qimport.t b/tests/test-mq-qimport.t
--- a/tests/test-mq-qimport.t
+++ b/tests/test-mq-qimport.t
@@ -7,7 +7,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')



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


More information about the Mercurial-devel mailing list