From ca05e37eee03da95768cd2c0342f27934cea52b9 Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Wed, 7 Feb 2024 12:40:03 -0500 Subject: [PATCH] Try non-oo syntax --- librarian_server/stores/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian_server/stores/local.py b/librarian_server/stores/local.py index 1eea532..ca7cb2e 100644 --- a/librarian_server/stores/local.py +++ b/librarian_server/stores/local.py @@ -126,9 +126,9 @@ def set_for_file(file: Path): if self.readonly_after_commit: if file.is_dir(): - file.chmod(0o555) + os.chmod(file, 0o555) else: - file.chmod(0o444) + os.chmod(file, 0o444) # Set for the top-level file. set_for_file(resolved_path)