changeset 36287:065445b44724

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Feb 2018 17:43:12 +0530
parents daa5f47558cf
children 217b08b1de28
files tests/test-mq-missingfiles.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')