changeset 36292:b543b3ce608b

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Feb 2018 18:20:21 +0530
parents 57c671cf7a69
children 8591d6afc629
files tests/test-mq-qimport.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')