403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/counted_lock.cpython-313.pyc
�

p��g��(�SrSSKJr "SS5rg)zCounted lock class.�)�errorsc�L�\rSrSrSrSrSrSrSrSr	Sr
S
S
jrSrSr
g	)�CountedLock�z�Decorator around a lock that makes it reentrant.

This can be used with any object that provides a basic Lock interface,
including LockDirs and OS file locks.

:ivar _token: While a write lock is held, this is the token
    for it.
c�,�XlSUlSUlg�N�)�
_real_lock�
_lock_mode�_lock_count)�self�	real_locks  �5/usr/lib/python3/dist-packages/breezy/counted_lock.py�__init__�CountedLock.__init__ s��#��������c�b�SRURRUR5$)Nz{}({!r}))�format�	__class__�__name__r
�r
s r�__repr__�CountedLock.__repr__%s#��� � ����!8�!8�$�/�/�J�Jrc�T�URR5 SUlSUlgr)r
�
break_lockrrrs rr�CountedLock.break_lock(s!�����"�"�$������rc�\�URR5SL$![a gf=f)z�Return physical lock status.

Returns true if a lock is held on the transport. If no lock is held, or
the underlying locking mechanism does not support querying lock
status, false is returned.
NF)r
�peek�NotImplementedErrorrs r�get_physical_lock_status�$CountedLock.get_physical_lock_status-s1��	��?�?�'�'�)��5�5��"�	��	�s��
+�+c��URSL$�N)rrs r�	is_locked�CountedLock.is_locked9s�����d�*�*rc��UR(aU=RS-
slgURR5 SUlSUlg)z�Acquire the lock in read mode.

If the lock is already held in either read or write mode this
increments the count and succeeds.  If the lock is not already held,
it is taken in read mode.
r�rN)rrr
�	lock_readrs rr(�CountedLock.lock_read<s;���?�?�����!���O�O�%�%�'� �D��!�D�OrNc�r�URS:XaFURRUS9UlSUlU=RS-
slUR$URS:wa[
R"U5eURRU5 U=RS-
slUR$)aAcquire the lock in write mode.

If the lock was originally acquired in read mode this will fail.

:param token: If given and the lock is already held,
    then validate that we already hold the real
    lock with this token.

:returns: The token from the underlying lock.
r	)�token�wr)rr
�
lock_write�_tokenrr�
ReadOnlyError�validate_token)r
r+s  rr-�CountedLock.lock_writeJs������q� ��/�/�4�4�5�4�A�D�K�!�D�O�����!���;�;��
�_�_��
#��&�&�t�,�,��O�O�*�*�5�1�����!���;�;�rc��URS:Xa[R"U5eURS:Xa7SUlU=RS-slURR5 gU=RS-slg)Nr	r)rr�LockNotHeldrr
�unlockrs rr4�CountedLock.unlockasj�����q� ��$�$�T�*�*�
�
�
��
"�#�D�O�����!���O�O�"�"�$�����!�r)rrr
r.r#)r�
__module__�__qualname__�__firstlineno__�__doc__rrrr r$r(r-r4�__static_attributes__�rrrrs0����
K��

�+�"��."rrN)r9�rrr;rr�<module>r=s��"��V"�V"r

Youez - 2016 - github.com/yon3zu
LinuXploit