idfddlmZddlZddlZddlmZddlmZmZddl m Z ddl m Z ddl mZGd d e Zd gZdS) ) annotationsN)suppress)EACCESEEXIST)Path) BaseFileLock)raise_on_not_writable_filec"eZdZdZddZddZdS) SoftFileLockz.Simply watches the existence of the lock file.returnNonect|jtjtjztjztjz} tj|j||jj }||j_ dS#t$rB}|j tks!|j tkrtjdksYd}~dSYd}~dSd}~wwxYw)Nwin32)r lock_fileosO_WRONLYO_CREATO_EXCLO_TRUNCopen_contextmode lock_file_fdOSErrorerrnorrsysplatform)selfflags file_handler exceptions C/opt/cloudlinux/venv/lib/python3.11/site-packages/filelock/_soft.py_acquirezSoftFileLock._acquires"4>222 Kj i j   674>5$-:LMML*6DM & & &   6))Ov--#,'2I2I*)))))2I2I2I2I2I2I s %A<< C1CCc|jjJtj|jjd|j_t t 5t |jddddS#1swxYwYdS)N) rrrcloserrrrunlink)rs r#_releasezSoftFileLock._release$s})555 +,,,%) " g   * *  ' ' ) ) ) * * * * * * * * * * * * * * * * * *s 'BBBN)r r)__name__ __module__ __qualname____doc__r$r(r#r r sB886666(******r.r ) __future__rrr contextlibrrrrpathlibr_apir _utilr r __all__r-r.r#r5s""""""  ------*****<***@ r.