https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hgext/remotefilelog/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgext/remotefilelog/__pycache__/connectionpool.cpython-310.pyc
o

�]Lb�	�@sNddlmZddlmZmZmZmZejZGdd�de	�Z
Gdd�de	�ZdS)�)�absolute_import)�hg�pycompat�sshpeer�utilc@s$eZdZdd�Zdd�Zdd�ZdS)�connectionpoolcCs||_t�|_dS�N)�_repo�dict�_pool)�self�repo�r�D/usr/lib/python3/dist-packages/hgext/remotefilelog/connectionpool.py�__init__szconnectionpool.__init__cs�|j�|�}|durt�}||j|<d}t|�dkr;z|��}|j}t|t�r0|j�	�dur0d}Wn	t
y:Ynw|durat�|jj
i|�}t�|d�r\G�fdd�d|j���|_t||�}|S)Nr�_cleanupcs eZdZd��fdd�	Z�ZS)z"connectionpool.get.<locals>.mypeerNcs$t�|d�r|j��t�|���S)N�pipee)r�safehasattrr�close�superr)r�warn)�	__class__�mypeerrrr1s
z+connectionpool.get.<locals>.mypeer._cleanupr)�__name__�
__module__�__qualname__r�
__classcell__r�r)rrr0sr)r�get�list�len�pop�peer�
isinstance�
_sshv1peer�_subprocess�poll�
IndexErrorrr	�uirrr�
connection)r�path�pathpool�connr"rrrrs.

��	
zconnectionpool.getcCs2t�|j�D]}|D]}|��q
|dd�=qdSr)r�
itervaluesrr)rr+r,rrrr?s

�zconnectionpool.closeN)rrrrrrrrrrrs&rc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
r)cCs||_||_dSr)rr")r�poolr"rrrrGs
zconnection.__init__cCs|Srr�rrrr�	__enter__Kszconnection.__enter__cCs$|dur|j�|�dS|��dSr)r�appendr)r�type�value�	tracebackrrr�__exit__Nszconnection.__exit__cCs t�|jd�r|j��dSdS)N�cleanup)rrr"r6r/rrrrWs�zconnection.closeN)rrrrr0r5rrrrrr)Fs
	r)N)�
__future__r�	mercurialrrrr�	sshv1peerr$�objectrr)rrrr�<module>s
2

https://t.me/RX1948 - 2025