py3: use range instead of xrange in tests/test-mq-missingfiles.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 17:43:12 +0530
changeset 36287 065445b44724
parent 36286 daa5f47558cf
child 36288 217b08b1de28
py3: use range instead of xrange in tests/test-mq-missingfiles.t xrange is not present in python 3. Differential Revision: https://phab.mercurial-scm.org/D2325
tests/test-mq-missingfiles.t
--- a/tests/test-mq-missingfiles.t	Sun Feb 18 17:42:33 2018 +0530
+++ b/tests/test-mq-missingfiles.t	Sun Feb 18 17:43:12 2018 +0530
@@ -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')