Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/lxml/html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/lxml/html/_diffcommand.pyo
�
�]Nc@sddlZddlZddlZddlZddlmZdZejddde�Zej	ddd	d
ddd
ddd�ej	dddddddd�dd�Zd�Zej
dejejB�Zej
dejejB�Zd�Zd�ZdS(i����N(thtmldiffttusagesR%prog [OPTIONS] FILE1 FILE2
%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...tdescriptions-os--outputtmetavartFILEtdesttoutputtdefaultt-thelpsFile to write the difference tos-as--annotationtactiont
store_truet
annotationsDo an annotationcCsI|dkrtjd}ntj|�\}}|jrGt||�St|�dkrxdGHtj�tj	d�n|\}}t
|�}t
|�}t|�d}t|�\}}}	t||�}
||
|	}
|j
dkr|
jd�s	|
d7}
ntjj|
�n)t|j
d�}|j|
�|j�dS(NiisError: you must give two filesR	s
twb(tNonetsystargvtparsert
parse_argsR
tannotatetlent
print_helptexitt	read_filet
split_bodyRRtendswithtstdouttwritetopentclose(targstoptionstfile1tfile2tinput1tinput2tbody1tpretbody2tposttresulttf((s</usr/lib64/python2.7/site-packages/lxml/html/_diffcommand.pytmains.	



cCsl|dkrtjj�}nJtjj|�sCtd|��n%t|d�}|j�}|j�|S(NR	sInput file %s does not existtrb(	RtstdintreadtostpathtexiststOSErrorRR(tfilenametcR*((s</usr/lib64/python2.7/site-packages/lxml/html/_diffcommand.pyR8s
s	<body.*?>s
</body.*?>cCs}tj|�}|r8||j� }||j�}ntj|�}|rp||j�}||j� }n|||fS(N(t
body_start_retsearchtendtbody_end_retstart(thtmltmatchR&R(((s</usr/lib64/python2.7/site-packages/lxml/html/_diffcommand.pyRIscCsdGHtjd�dS(NsNot yet implementedi(RR(R R((s</usr/lib64/python2.7/site-packages/lxml/html/_diffcommand.pyRTs(toptparseRtreR/tlxml.html.diffRRtOptionParserRt
add_optionRR+RtcompiletItSR5R8RR(((s</usr/lib64/python2.7/site-packages/lxml/html/_diffcommand.pyt<module>s6						

ZeroDay Forums Mini