U {ó1`îã@s6dZddlmZmZddlmZGdd„deeƒZdS)z8 Lockfile behaviour implemented via Unix PID files. é)Úabsolute_importÚunicode_literals)Ú PIDLockFilecs0eZdZdZd‡fdd„ Zd‡fdd„ Z‡ZS) ÚTimeoutPIDLockFilea@ Lockfile with default timeout, implemented as a Unix PID file. This uses the ``PIDLockFile`` implementation, with the following changes: * The `acquire_timeout` parameter to the initialiser will be used as the default `timeout` parameter for the `acquire` method. Ncs||_tƒj|f|ž|ŽdS)zû Set up the parameters of a TimeoutPIDLockFile. :param path: Filesystem path to the PID file. :param acquire_timeout: Value to use by default for the `acquire` call. :return: ``None``. N)Úacquire_timeoutÚsuperÚ__init__)ÚselfÚpathrÚargsÚkwargs©Ú __class__©ú?/opt/alt/python38/lib/python3.8/site-packages/daemon/pidfile.pyrs zTimeoutPIDLockFile.__init__cs&|dkr|j}tƒj|f|ž|ŽdS)ax Acquire the lock. :param timeout: Specifies the timeout; see below for valid values. :return: ``None``. The `timeout` defaults to the value set during initialisation with the `acquire_timeout` parameter. It is passed to `PIDLockFile.acquire`; see that method for details. N)rrÚacquire)r Ztimeoutr r r rrr*s zTimeoutPIDLockFile.acquire)N)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrÚ __classcell__rrr rrs  rN)rZ __future__rrZlockfile.pidlockfilerÚobjectrrrrrÚ s