changeset 38783 | e7aa113b14f7 |
parent 38533 | 3a0f322af192 |
child 39611 | f3900f4c63d4 |
--- a/mercurial/win32.py Wed Aug 01 12:57:15 2018 -0700 +++ b/mercurial/win32.py Wed Aug 01 13:00:45 2018 -0700 @@ -615,7 +615,7 @@ # callers to recreate f immediately while having other readers do their # implicit zombie filename blocking on a temporary name. - for tries in xrange(10): + for tries in pycompat.xrange(10): temp = '%s-%08x' % (f, random.randint(0, 0xffffffff)) try: os.rename(f, temp) # raises OSError EEXIST if temp exists