Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cherrypy/lib/__pycache__/locking.cpython-39.pyc
Ðазад
a v�h� � @ sL d dl Z G dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZdS ) � Nc @ s e Zd Zdd� ZdS )�NeverExpiresc C s dS )NF� ��selfr r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cherrypy/lib/locking.py�expired s zNeverExpires.expiredN)�__name__� __module__�__qualname__r r r r r r s r c @ s, e Zd ZdZdd� Zedd� �Zdd� ZdS ) �TimerzO A simple timer that will indicate when an expiration time has passed. c C s || _ dS )z:Create a timer that expires at `expiration` (UTC datetime)N)� expiration)r r r r r �__init__ s zTimer.__init__c C s | t j �� | �S )zI Return a timer that will expire after `elapsed` passes. )�datetime�utcnow)�cls�elapsedr r r �after s zTimer.afterc C s t j �� | jkS �N)r r r r r r r r s z Timer.expiredN)r r r �__doc__r �classmethodr r r r r r r s r c @ s e Zd ZdZdS )�LockTimeoutzFAn exception when a lock could not be acquired before a timeout periodN)r r r r r r r r r s r c @ s e Zd ZdZdd� Zdd� ZdS )�LockCheckerzD Keep track of the time and detect if a timeout has expired c C s$ || _ |rt�|�| _nt� | _d S r )� session_idr r �timerr )r r �timeoutr r r r $ s zLockChecker.__init__c C s | j �� rtdt| � ��dS )Nz)Timeout acquiring lock for %(session_id)sF)r r r �varsr r r r r + s �zLockChecker.expiredN)r r r r r r r r r r r s r )r �objectr r � Exceptionr r r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка