From 6ec19e3fa03800cba7223da78d12f1020509f21b Mon Sep 17 00:00:00 2001 From: Remy Blank Date: Sat, 11 Jan 2025 00:45:43 +0100 Subject: [PATCH] Don't use follow_symlinks, it isn't supported on Windows. --- run-tdoc@t-doc-common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run-tdoc@t-doc-common.py b/run-tdoc@t-doc-common.py index 38ae95c..d925b00 100755 --- a/run-tdoc@t-doc-common.py +++ b/run-tdoc@t-doc-common.py @@ -105,8 +105,7 @@ def __init__(self, path, builder): @lazy def last_used(self): try: - return (self.path / self.requirements_txt).stat( - follow_symlinks=False).st_mtime_ns + return (self.path / self.requirements_txt).stat().st_mtime_ns except OSError: return 0 @@ -152,7 +151,7 @@ def create(self, reqs): def touch(self): with contextlib.suppress(OSError): - os.utime(self.path / self.requirements_txt, follow_symlinks=False) + os.utime(self.path / self.requirements_txt) with contextlib.suppress(AttributeError): del self.last_used @contextlib.contextmanager