Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/usr/lib64/python2.7/Tools/scripts/ndiff.pyo

�
�fc@s�dZdZddlZddlZd�Zd�Zd�Zd	�Zd
�Ze	dkr�ej
dZdekr�ddlZddl
Z
ejd�d
Zejde�e
je�Zej�jd�j�q�ee�ndS(s�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'
iiii����NcCs(tjj}||d�|t�dS(Ns

i(tsyststderrtwritet__doc__(tmsgtout((s+/usr/lib64/python2.7/Tools/scripts/ndiff.pytfail5s
cCsDyt|d�SWn,tk
r?}td|dt|��SXdS(NtUscouldn't open s: (topentIOErrorRtstr(tfnametdetail((s+/usr/lib64/python2.7/Tools/scripts/ndiff.pytfopen=scCs{t|�}t|�}|s&|r*dS|j�}|j�|j�}|j�xtj||�D]
}|GqiWdS(Nii(R
t	readlinestclosetdifflibtndiff(tf1nametf2nametf1tf2tatbtline((s+/usr/lib64/python2.7/Tools/scripts/ndiff.pytfcompareDs

cCsKddl}y|j|d�\}}Wn#|jk
rM}tt|��SXd}d}}xJ|D]B\}}|dkr�d}d}qe|dkred}|}	qeqeW|r�|r�td�S|r�|r�td�S|	dkr�t|	�dStd�St|�dkrtd
�S|\}
}|r>dG|
GHdG|GHnt|
|�S(Ni����sqr:iis-qs-rscan't specify both -q and -rsno args allowed with -r optiont1t2s-r value must be 1 or 2isneed 2 filename argss-:s+:(RR(tgetoptterrorRR
trestoretlenR(targsRtoptsRtnoisytqseentrseentopttvalt	whichfileRR((s+/usr/lib64/python2.7/Tools/scripts/ndiff.pytmainTs<
	





	cCs/tjtjj�|�}tjj|�dS(N(RRRtstdinRtstdoutt
writelines(twhichtrestored((s+/usr/lib64/python2.7/Tools/scripts/ndiff.pyRwst__main__s-profiles	ndiff.pros
main(args)ttime(iii(Rt__version__RRRR
RR(Rt__name__targvR tprofiletpstatstremovetstatftruntStatststatst
strip_dirst
sort_statstprint_stats(((s+/usr/lib64/python2.7/Tools/scripts/ndiff.pyt<module>/s"				#	



Hacked By AnonymousFox1.0, Coded By AnonymousFox