Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
'YW @ s d dl mZ d dlZd dlZd dlZd dlZddlmZ dZej dedZ
e
jdd d
ddd
d e
jdddddd dddZdd Z
ejdejejB ZejdejejB Zdd Zdd ZdS ) )absolute_importN )htmldiff zR%prog [OPTIONS] FILE1 FILE2
%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...)Zusagedescriptionz-oz--outputFILEoutput-zFile to write the difference to)metavardestdefaulthelpz-az--annotation
store_true
annotationzDo an annotation)actionr r
c C s | d krt jdd } tj| \}} |jr4t|| S t| dkrZtd tj t j d | \}}t
|}t
|}t|d }t|\}}} t||}
||
| }
|j
dkr|
jds|
d7 }
t jj|
nt|j
d}|j|
|j d S )Nr zError: you must give two filesr
wb)sysargvparser
parse_argsr annotatelenprintZ
print_helpexit read_file
split_bodyr r endswithstdoutwriteopenclose)argsoptionsZfile1Zfile2Zinput1Zinput2Zbody1preZbody2postresultf r) $/usr/lib64/python3.6/_diffcommand.pymain s.
r+ c C sL | dkrt jj }n4tjj| s.td| nt| d}|j }|j |S )Nr zInput file %s does not existrb) r stdinreadospathexistsOSErrorr! r" )filenamecr( r) r) r* r : s
r z z
c C sn d }}t j| }|r6| d |j }| |j d } tj| }|rd| |j d }| d |j } || |fS )Nr )
body_start_researchendbody_end_restart)Zhtmlr% r&