# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1517989866 -19800 # Node ID cf887d6010141cc8dad1e97fc4a0676ccaa3dd15 # Parent 1dbd8a62b58167430df299ad9954e5d8cb9846fe py3: use range instead of xrange xrange is not available on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2074 diff -r 1dbd8a62b581 -r cf887d601014 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