changeset 51294:7d3b92e8df13

pytype: ignore attribute error for time.clock This seems to be a Windows only attribute.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Dec 2023 21:34:47 +0100
parents 03fc41fe8aa1
children 011eec5a66b2
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Tue Dec 19 21:27:49 2023 +0100
+++ b/mercurial/util.py	Tue Dec 19 21:34:47 2023 +0100
@@ -2126,7 +2126,7 @@
 if pycompat.iswindows:
     checkosfilename = checkwinfilename
     if not timer:
-        timer = time.clock
+        timer = time.clock  # pytype: disable=module-attr
 else:
     # mercurial.windows doesn't have platform.checkosfilename
     checkosfilename = platform.checkosfilename  # pytype: disable=module-attr