py3: use range instead of xrange
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 07 Feb 2018 13:21:06 +0530
changeset 35946 cf887d601014
parent 35945 1dbd8a62b581
child 35947 a36d3c8a0e41
py3: use range instead of xrange xrange is not available on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2074
tests/test-annotate.py
--- a/tests/test-annotate.py	Wed Feb 07 13:19:19 2018 +0530
+++ b/tests/test-annotate.py	Wed Feb 07 13:21:06 2018 +0530
@@ -27,7 +27,7 @@
 
         def decorate(text, rev):
             return ([annotateline(fctx=rev, lineno=i)
-                     for i in xrange(1, text.count(b'\n') + 1)],
+                     for i in range(1, text.count(b'\n') + 1)],
                     text)
 
         # Basic usage