| Server IP : 104.21.21.239 / Your IP : 216.73.216.55 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7 System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/lxml/html/__pycache__/ |
Upload File : |
a
�P�aI � @ 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--output�FILE�output�-zFile to write the difference to)�metavar�dest�default�helpz-az--annotation�
store_true�
annotationzDo an annotation)�actionr r
c C s | d u rt jdd � } t�| �\}} |jr4t|| �S t| �dkrZtd� t�� t � d� | \}}t
|�}t
|�}t|�d }t|�\}}} t||�}
||
| }
|j
dkr�|
�d�s�|
d7 }
t j�|
� n6t|j
d��}|�|
� W d � n1 s�0 Y 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( �</usr/lib64/python3.9/site-packages/lxml/html/_diffcommand.py�main s,
r* c C sd | dkrt j�� }nLtj�| �s.td| ��n2t| d��}|�� }W d � n1 sV0 Y |S )Nr zInput file %s does not exist�rb)r �stdin�read�os�path�exists�OSErrorr! )�filename�cr'