py3: use range instead of xrange in tests/test-mq-qimport.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 18:20:21 +0530
changeset 36292 b543b3ce608b
parent 36291 57c671cf7a69
child 36293 8591d6afc629
py3: use range instead of xrange in tests/test-mq-qimport.t xrange is not present on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2330
tests/test-mq-qimport.t
--- a/tests/test-mq-qimport.t	Sun Feb 18 18:19:10 2018 +0530
+++ b/tests/test-mq-qimport.t	Sun Feb 18 18:20:21 2018 +0530
@@ -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')