diff -r 44b26349127b -r d44e3c45f0e4 mercurial/win32.py --- 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