changeset 35946:cf887d601014

py3: use range instead of xrange xrange is not available on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2074
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 07 Feb 2018 13:21:06 +0530
parents 1dbd8a62b581
children a36d3c8a0e41
files tests/test-annotate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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