MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python37/lib64/python3.7/site-packages/lxml/html/__pycache__/_diffcommand.cpython-37.pyc
B

M�O]I�@s�ddlmZddlZddlZddlZddlZddlmZdZej	ded�Z
e
jdd	d
ddd
d�e
jdddddd�ddd�Zdd�Z
e�dejejB�Ze�dejejB�Zdd�Zdd�ZdS) �)�absolute_importN�)�htmldiff�zR%prog [OPTIONS] FILE1 FILE2
%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...)Zusage�descriptionz-oz--output�FILE�output�-zFile to write the difference to)�metavar�dest�default�helpz-az--annotation�
store_true�
annotationzDo an annotation)�actionrr
c	Cs�|dkrtjdd�}t�|�\}}|jr4t||�St|�dkrZtd�t��t�	d�|\}}t
|�}t
|�}t|�d}t|�\}}}	t||�}
||
|	}
|j
dkr�|
�d�s�|
d7}
tj�|
�n"t|j
d��}|�|
�WdQRXdS)Nr�zError: you must give two filesr	�
�wb)�sys�argv�parser�
parse_argsr�annotate�len�printZ
print_help�exit�	read_file�
split_bodyrr�endswith�stdout�write�open)�args�optionsZfile1Zfile2Zinput1Zinput2Zbody1�preZbody2�post�result�f�r(�I/opt/alt/python37/lib64/python3.7/site-packages/lxml/html/_diffcommand.py�main s,




r*c	CsP|dkrtj��}n8tj�|�s.td|��nt|d��}|��}WdQRX|S)Nr	zInput file %s does not exist�rb)r�stdin�read�os�path�exists�OSErrorr!)�filename�cr'r(r(r)r9srz	<body.*?>z
</body.*?>cCsnd}}t�|�}|r6|d|���}||��d�}t�|�}|rd||��d�}|d|���}|||fS)Nr)�
body_start_re�search�end�body_end_re�start)Zhtmlr$r%�matchr(r(r)rIs

rcCstd�t�d�dS)NzNot yet implementedr)rrr)r#r"r(r(r)rUsr)N)Z
__future__rZoptparser�rer.ZdiffrrZOptionParserrZ
add_optionr*r�compile�I�Sr4r7rrr(r(r(r)�<module>s8