# HG changeset patch # User Pierre-Yves David # Date 2023-12-19 20:34:47 # Node ID 7d3b92e8df13ceb5458800658c9f9407ccfa36f4 # Parent 03fc41fe8aa1b01faca4785cc15bc55100c62295 pytype: ignore attribute error for time.clock This seems to be a Windows only attribute. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -2126,7 +2126,7 @@ timer = getattr(time, "perf_counter", No 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