Mercurial > public > mercurial-scm > hg-stable
diff mercurial/win32.py @ 49292: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 | 53e9422a9b45 |
line wrap: on
line diff
--- a/mercurial/win32.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/win32.py Sun May 29 15:17:27 2022 +0200 @@ -732,7 +732,7 @@ # callers to recreate f immediately while having other readers do their # implicit zombie filename blocking on a temporary name. - for tries in pycompat.xrange(10): + for tries in range(10): temp = b'%s-%08x' % (f, random.randint(0, 0xFFFFFFFF)) try: os.rename(f, temp) # raises OSError EEXIST if temp exists