From 09d280f476020d5d4bf6a0648cad1ec1fed5691c Mon Sep 17 00:00:00 2001 From: kloon15 Date: Fri, 23 Aug 2024 15:12:31 +0200 Subject: [PATCH] [lfs] Workaround bug in FileLock >=3.15.3 (#656) --- legendary/lfs/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legendary/lfs/utils.py b/legendary/lfs/utils.py index ed69466..1b9662c 100644 --- a/legendary/lfs/utils.py +++ b/legendary/lfs/utils.py @@ -159,10 +159,10 @@ def get_dir_size(path): class LockedJSONData(FileLock): - def __init__(self, file_path: str): - super().__init__(file_path + '.lock') + def __init__(self, lock_file: str): + super().__init__(lock_file + '.lock') - self._file_path = file_path + self._file_path = lock_file self._data = None self._initial_data = None