зеркало из https://github.com/microsoft/nni.git
Fix compatibility with filelock 3.12.0 (#5541)
This commit is contained in:
Родитель
47fde3da21
Коммит
28b8c2e23b
|
@ -95,6 +95,11 @@ class SimplePreemptiveLock(filelock.SoftFileLock):
|
|||
'''this is a lock support check lock expiration, if you do not need check expiration, you can use SoftFileLock'''
|
||||
def __init__(self, lock_file, stale=-1):
|
||||
super(__class__, self).__init__(lock_file, timeout=-1)
|
||||
|
||||
# FIXME: hack
|
||||
if not hasattr(self, '_lock_file'):
|
||||
self._lock_file = self.lock_file
|
||||
|
||||
self._lock_file_name = '{}.{}'.format(self._lock_file, os.getpid())
|
||||
self._stale = stale
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
"html-webpack-plugin": ">=5.5.0",
|
||||
"jest": ">=29.5.0",
|
||||
"mini-css-extract-plugin": ">=2.7.3",
|
||||
"minimatch": ">=7.4.2",
|
||||
"monaco-editor-webpack-plugin": ">=7.0.1",
|
||||
"npm": ">=9.6.1",
|
||||
"pnp-webpack-plugin": ">=1.7.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче