Viewing File: /opt/alt/python38/lib/python3.8/site-packages/daemon/__pycache__/pidfile.cpython-38.opt-1.pyc
U
{ó1`î ã @ s6 d Z ddlmZmZ ddlmZ G dd„ deeƒZdS )z8 Lockfile behaviour implemented via Unix PID files.
é )Úabsolute_importÚunicode_literals)ÚPIDLockFilec s0 e Zd ZdZd‡ 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.
Nc s || _ 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.pyr s zTimeoutPIDLockFile.__init__c s&