403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/mercurial/pure/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/mercurial/pure/__pycache__/mpatch.cpython-39.opt-1.pyc
a

�+�bE
�@sbddlmZddlZddlmZejZGdd�de�Zdd�Z	d	d
�Z
dd�Zd
d�Zdd�Z
dS)�)�absolute_importN�)�pycompatc@seZdZdZdS)�mpatchErrorz+error raised when a delta cannot be decodedN)�__name__�
__module__�__qualname__�__doc__�r
r
�;/usr/lib64/python3.9/site-packages/mercurial/pure/mpatch.pyrsrcCsh|rd|��}|d|krL|�|d||d|f�|�||df�dS|�|�||d8}qdS)Nr�)�pop�append)�dst�src�l�fr
r
r�_pull s
rcCs,|�|�|�|�}|�|�|�|�dS)zXmove count bytes from src to dest

    The file pointer is left at the end of dest.
    N)�seek�read�write)�m�destr�count�bufr
r
r�_move+s


rcCs8|}t|�D]\}}t||||�||7}q|||fS)N)�reversedr)rr�list�startr�pr
r
r�_collect6s

r c	Cs�|s|Sdd�|D�}t|�}t|�|}|||}d|}}|sH|St�}|�|�t|�|fg}	||}
|�|
�|D]}|�|�q||D]�}t|	�dkr�||}}t|||	�g}	g}
|
|}d}|
|k�r\|�|
�zt�d|�d��\}}}Wntj	�yt
d��Yn0t|
|	||�tg|	||�|
�||
df�|
|d7}
|}q�|	�
t|
��q�t|||	�}|�|d�|�|d�S)	NcSsg|]}t|��qSr
)�len)�.0�xr
r
r�
<listcomp>B�zpatches.<locals>.<listcomp>r��>lll��patch cannot be decodedr)�sumr!�stringiorrr �struct�unpackr�errorrrr�extendr)�aZbinsZplens�plZbl�tl�b1�b2rZfrags�posr�plen�new�end�lastZp1Zp2r�tr
r
r�patches>sL





r;cCs�d\}}}t|�}d}||krt|||d�}t�d|�\}}	}
||	krJqt||
}|d}|||7}|	}||
7}q||kr�td��|||7}|S)N)rrrr(r'r))r!r,r-r)ZorigZdeltaZoutlenr9�binZbinend�data�decoderr8�lengthr
r
r�patchedsizess"

r@)Z
__future__rr,�rZbytesior+�	Exceptionrrrr r;r@r
r
r
r�<module>s5

Youez - 2016 - github.com/yon3zu
LinuXploit