HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
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