HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/lib/__pycache__/locking.cpython-310.pyc
o

�N�g��@sLddlZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZdS)
�Nc@seZdZdd�ZdS)�NeverExpirescCsdS)NF���selfrr�H/opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/lib/locking.py�expiredszNeverExpires.expiredN)�__name__�
__module__�__qualname__rrrrrrsrc@s,eZdZdZdd�Zedd��Zdd�ZdS)	�TimerzO
    A simple timer that will indicate when an expiration time has passed.
    cCs
||_dS)z:Create a timer that expires at `expiration` (UTC datetime)N)�
expiration)rrrrr�__init__
s
zTimer.__init__cCs|tj��|�S)zI
        Return a timer that will expire after `elapsed` passes.
        )�datetime�utcnow)�cls�elapsedrrr�afterszTimer.aftercCstj��|jkS�N)rrrrrrrrsz
Timer.expiredN)rr	r
�__doc__r
�classmethodrrrrrrr	s
rc@seZdZdZdS)�LockTimeoutzFAn exception when a lock could not be acquired before a timeout periodN)rr	r
rrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�LockCheckerzD
    Keep track of the time and detect if a timeout has expired
    cCs&||_|r
t�|�|_dSt�|_dSr)�
session_idrr�timerr)rr�timeoutrrrr
$szLockChecker.__init__cCs|j��r
tdt|���dS)Nz)Timeout acquiring lock for %(session_id)sF)rrr�varsrrrrr+s


�zLockChecker.expiredN)rr	r
rr
rrrrrr sr)r�objectrr�	Exceptionrrrrrr�<module>s