comparison mercurial/dagparser.py @ 49284:d44e3c45f0e4

py3: replace `pycompat.xrange` by `range`
author Manuel Jacob <me@manueljacob.de>
date Sun, 29 May 2022 15:17:27 +0200
parents 6000f5b25c9b
children f4733654f144
comparison
equal deleted inserted replaced
49283:44b26349127b 49284:d44e3c45f0e4
226 elif c == b'+': 226 elif c == b'+':
227 # pytype: disable=wrong-arg-types 227 # pytype: disable=wrong-arg-types
228 c, digs = nextrun(nextch(), pycompat.bytestr(string.digits)) 228 c, digs = nextrun(nextch(), pycompat.bytestr(string.digits))
229 # pytype: enable=wrong-arg-types 229 # pytype: enable=wrong-arg-types
230 n = int(digs) 230 n = int(digs)
231 for i in pycompat.xrange(0, n): 231 for i in range(0, n):
232 yield b'n', (r, [p1]) 232 yield b'n', (r, [p1])
233 p1 = r 233 p1 = r
234 r += 1 234 r += 1
235 elif c in b'*/': 235 elif c in b'*/':
236 if c == b'*': 236 if c == b'*':