changeset 49284 | d44e3c45f0e4 |
parent 48875 | 6000f5b25c9b |
child 49305 | 53e9422a9b45 |
--- 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