Mercurial > hg
diff tests/test-manifest.py @ 49285:56f98406831b
py3: remove xrange() compatibility code
Some code used its own xrange() compatibility code instead of
pycompat.xrange().
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:32:43 +0200 |
parents | 642e31cb55f0 |
children | 7fe82a5101c9 |
line wrap: on
line diff
--- a/tests/test-manifest.py Sun May 29 15:17:27 2022 +0200 +++ b/tests/test-manifest.py Sun May 29 15:32:43 2022 +0200 @@ -59,14 +59,12 @@ HUGE_MANIFEST_ENTRIES = 200001 izip = getattr(itertools, 'izip', zip) -if 'xrange' not in globals(): - xrange = range A_HUGE_MANIFEST = b''.join( sorted( b'file%d\0%s%s\n' % (i, h, f) for i, h, f in izip( - xrange(200001), + range(200001), itertools.cycle((HASH_1, HASH_2)), itertools.cycle((b'', b'x', b'l')), )