bgddlmZddlZddlZddlmZddlmZmZddl m Z ddl m Z ddl mZmZGd d e Zd gZdS) ) annotationsN)suppress)EACCESEEXIST)Path) BaseFileLock)ensure_directory_existsraise_on_not_writable_filec"eZdZdZddZddZdS) SoftFileLockz.Simply watches the existence of the lock file.returnNonect|jt|jtjtjztjztjz} tj|j||j j }||j _ dS#t$rB}|j tks!|j tkrt jdksYd}~dSYd}~dSd}~wwxYw)Nwin32)r lock_filer osO_WRONLYO_CREATO_EXCLO_TRUNCopen_contextmode lock_file_fdOSErrorerrnorrsysplatform)selfflags file_handler exceptions _/builddir/build/BUILD/cloudlinux-venv-1.0.7/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%B C1CCc|jjJtj|jjd|j_t t 5t |jddddS#1swxYwYdS)N) rrrcloserrrrunlink)r s r$_releasezSoftFileLock._release%s})555 +,,,%) " g   * *  ' ' ) ) ) * * * * * * * * * * * * * * * * * *s 'BBBN)rr)__name__ __module__ __qualname____doc__r%r)r$r r sB886666*******r/r ) __future__rrr contextlibrrrrpathlibr_apir _utilr r r __all__r.r/r$r6s""""""  FFFFFFFF*****<***B r/