Server IP : 68.65.122.142  /  Your IP : 216.73.216.41
Web Server : LiteSpeed
System : Linux server167.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : glenirhm ( 1318)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/../lib64/python3.8/pydoc_data/../html/../../ruby/../python2.7/Tools/../Tools/scripts/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/../lib64/python3.8/pydoc_data/../html/../../ruby/../python2.7/Tools/../Tools/scripts/diff.pyc
�
�fc@sedZddlZddlZddlZddlZddlZd�Zedkrae�ndS(sS Command line interface to difflib.py providing diffs in four formats:

* ndiff:    lists every line and highlights interline changes.
* context:  highlights clusters of changes in a before/after format.
* unified:  highlights clusters of changes in an inline format.
* html:     generates side by side comparison with change highlights.

i����Nc
Csed}tj|�}|jddddtdd�|jddddtdd	�|jd
dddtdd�|jddddtdd
�|jdddddddd�|j�\}}t|�dkr�|j�tjd�nt|�dkr|j	d�n|j
}|\}}tjt
j|�j�}tjt
j|�j�}t|d��}	|	j�}
WdQXt|d��}	|	j�}WdQX|jr�tj|
|||||d|�}n{|jr�tj|
|�}n]|jr-tj�j|
|||d|jd|�}n$tj|
|||||d|�}tjj|�dS(Ns&usage: %prog [options] fromfile tofiles-ctactiont
store_truetdefaultthelps'Produce a context format diff (default)s-usProduce a unified format diffs-msAProduce HTML side by side diff (can use -c and -l in conjunction)s-nsProduce a ndiff format diffs-ls--linesttypetintis'Set number of context lines (default 3)iiis*need to specify both a fromfile and tofiletUtntcontexttnumlines(toptparsetOptionParsert
add_optiontFalset
parse_argstlent
print_helptsystexitterrortlinesttimetctimetoststattst_mtimetopent	readlinestutdifflibtunified_diffRtndifftmtHtmlDifft	make_filetctcontext_difftstdoutt
writelines(
tusagetparsertoptionstargsRtfromfilettofiletfromdatettodatetft	fromlinesttolinestdiff((s*/usr/lib64/python2.7/Tools/scripts/diff.pytmain
s:"
		'		0$t__main__(t__doc__RRRRR
R3t__name__(((s*/usr/lib64/python2.7/Tools/scripts/diff.pyt<module>	s<	&