Show More
@@ -2057,17 +2057,18 b' def checkwinfilename(path):' | |||
|
2057 | 2057 | ) |
|
2058 | 2058 | |
|
2059 | 2059 | |
|
2060 | timer = getattr(time, "perf_counter", None) | |
|
2061 | ||
|
2060 | 2062 | if pycompat.iswindows: |
|
2061 | 2063 | checkosfilename = checkwinfilename |
|
2064 | if not timer: | |
|
2062 | 2065 | timer = time.clock |
|
2063 | 2066 | else: |
|
2064 | 2067 | # mercurial.windows doesn't have platform.checkosfilename |
|
2065 | 2068 | checkosfilename = platform.checkosfilename # pytype: disable=module-attr |
|
2069 | if not timer: | |
|
2066 | 2070 | timer = time.time |
|
2067 | 2071 | |
|
2068 | if safehasattr(time, "perf_counter"): | |
|
2069 | timer = time.perf_counter | |
|
2070 | ||
|
2071 | 2072 | |
|
2072 | 2073 | def makelock(info, pathname): |
|
2073 | 2074 | """Create a lock file atomically if possible |
General Comments 0
You need to be logged in to leave comments.
Login now