| Server IP : 104.21.4.30 / Your IP : 104.23.243.243 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/lxml/html/__pycache__/ |
Upload File : |
U
M�O]I � @ s� d dl mZ d dlZd dlZd dlZd dlZddlmZ dZej ded�Z
e
jdd d
ddd
d� e
jdddddd� ddd�Zdd� 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--outputZFILE�output�-zFile to write the difference to)�metavar�dest�default�helpz-az--annotation�
store_true�
annotationzDo an annotation)�actionr
r c C s� | d krt jdd � } t�| �\}} |jr4t|| �S t| �dkrZtd� t�� t � d� | \}}t
|�}t
|�}t|�d }t|�\}}} t||�}
||
| }
|j
dkr�|
�d�s�|
d7 }
t j�|
� n"t|j
d��}|�|
� W 5 Q R X d S )Nr � zError: you must give two filesr �
�wb)�sys�argv�parser�
parse_argsr �annotate�len�printZ
print_help�exit� read_file�
split_bodyr r �endswith�stdout�write�open)�args�optionsZfile1Zfile2Zinput1Zinput2Zbody1�preZbody2�post�result�f� r'