/opt/alt/python39/lib64/python3.9/__pycache__
NameSizeModeActions
abc.cpython-39.opt-1.pyc57880644editdlrm
abc.cpython-39.opt-2.pyc32290644editdlrm
abc.cpython-39.pyc57880644editdlrm
aifc.cpython-39.opt-1.pyc252790644editdlrm
aifc.cpython-39.opt-2.pyc200720644editdlrm
aifc.cpython-39.pyc252790644editdlrm
antigravity.cpython-39.opt-1.pyc8320644editdlrm
antigravity.cpython-39.opt-2.pyc6880644editdlrm
antigravity.cpython-39.pyc8320644editdlrm
argparse.cpython-39.opt-1.pyc635560644editdlrm
argparse.cpython-39.opt-2.pyc541920644editdlrm
argparse.cpython-39.pyc636670644editdlrm
ast.cpython-39.opt-1.pyc523450644editdlrm
ast.cpython-39.opt-2.pyc438000644editdlrm
ast.cpython-39.pyc523960644editdlrm
asynchat.cpython-39.opt-1.pyc68350644editdlrm
asynchat.cpython-39.opt-2.pyc54600644editdlrm
asynchat.cpython-39.pyc68350644editdlrm
asyncore.cpython-39.opt-1.pyc160490644editdlrm
asyncore.cpython-39.opt-2.pyc148450644editdlrm
asyncore.cpython-39.pyc160490644editdlrm
base64.cpython-39.opt-1.pyc163360644editdlrm
base64.cpython-39.opt-2.pyc108160644editdlrm
base64.cpython-39.pyc164680644editdlrm
bdb.cpython-39.opt-1.pyc245530644editdlrm
bdb.cpython-39.opt-2.pyc155160644editdlrm
bdb.cpython-39.pyc245530644editdlrm
binhex.cpython-39.opt-1.pyc129780644editdlrm
binhex.cpython-39.opt-2.pyc124440644editdlrm
binhex.cpython-39.pyc129780644editdlrm
bisect.cpython-39.opt-1.pyc23630644editdlrm
bisect.cpython-39.opt-2.pyc10510644editdlrm
bisect.cpython-39.pyc23630644editdlrm
bz2.cpython-39.opt-1.pyc115580644editdlrm
bz2.cpython-39.opt-2.pyc65420644editdlrm
bz2.cpython-39.pyc115580644editdlrm
calendar.cpython-39.opt-1.pyc270440644editdlrm
calendar.cpython-39.opt-2.pyc224520644editdlrm
calendar.cpython-39.pyc270440644editdlrm
cgi.cpython-39.opt-1.pyc264950644editdlrm
cgi.cpython-39.opt-2.pyc180690644editdlrm
cgi.cpython-39.pyc264950644editdlrm
cgitb.cpython-39.opt-1.pyc101990644editdlrm
cgitb.cpython-39.opt-2.pyc86000644editdlrm
cgitb.cpython-39.pyc101990644editdlrm
chunk.cpython-39.opt-1.pyc48540644editdlrm
chunk.cpython-39.opt-2.pyc27100644editdlrm
chunk.cpython-39.pyc48540644editdlrm
cmd.cpython-39.opt-1.pyc126890644editdlrm
cmd.cpython-39.opt-2.pyc72640644editdlrm
cmd.cpython-39.pyc126890644editdlrm
code.cpython-39.opt-1.pyc99290644editdlrm
code.cpython-39.opt-2.pyc46580644editdlrm
code.cpython-39.pyc99290644editdlrm
codecs.cpython-39.opt-1.pyc339010644editdlrm
codecs.cpython-39.opt-2.pyc183290644editdlrm
codecs.cpython-39.pyc339010644editdlrm
codeop.cpython-39.opt-1.pyc64710644editdlrm
codeop.cpython-39.opt-2.pyc24110644editdlrm
codeop.cpython-39.pyc64710644editdlrm
colorsys.cpython-39.opt-1.pyc32730644editdlrm
colorsys.cpython-39.opt-2.pyc26670644editdlrm
colorsys.cpython-39.pyc32730644editdlrm
compileall.cpython-39.opt-1.pyc126020644editdlrm
compileall.cpython-39.opt-2.pyc93430644editdlrm
compileall.cpython-39.pyc126020644editdlrm
configparser.cpython-39.opt-1.pyc458820644editdlrm
configparser.cpython-39.opt-2.pyc307420644editdlrm
configparser.cpython-39.pyc458820644editdlrm
contextlib.cpython-39.opt-1.pyc195410644editdlrm
contextlib.cpython-39.opt-2.pyc139560644editdlrm
contextlib.cpython-39.pyc195510644editdlrm
contextvars.cpython-39.opt-1.pyc2580644editdlrm
contextvars.cpython-39.opt-2.pyc2580644editdlrm
contextvars.cpython-39.pyc2580644editdlrm
copy.cpython-39.opt-1.pyc69760644editdlrm
copy.cpython-39.opt-2.pyc46730644editdlrm
copy.cpython-39.pyc69760644editdlrm
copyreg.cpython-39.opt-1.pyc44240644editdlrm
copyreg.cpython-39.opt-2.pyc36220644editdlrm
copyreg.cpython-39.pyc44430644editdlrm
cProfile.cpython-39.opt-1.pyc51290644editdlrm
cProfile.cpython-39.opt-2.pyc46680644editdlrm
cProfile.cpython-39.pyc51290644editdlrm
crypt.cpython-39.opt-1.pyc35260644editdlrm
crypt.cpython-39.opt-2.pyc28640644editdlrm
crypt.cpython-39.pyc35260644editdlrm
csv.cpython-39.opt-1.pyc118620644editdlrm
csv.cpython-39.opt-2.pyc98210644editdlrm
csv.cpython-39.pyc118620644editdlrm
dataclasses.cpython-39.opt-1.pyc232300644editdlrm
dataclasses.cpython-39.opt-2.pyc197910644editdlrm
dataclasses.cpython-39.pyc232300644editdlrm
datetime.cpython-39.opt-1.pyc569870644editdlrm
datetime.cpython-39.opt-2.pyc485430644editdlrm
datetime.cpython-39.pyc581280644editdlrm
decimal.cpython-39.opt-1.pyc3720644editdlrm
decimal.cpython-39.opt-2.pyc3720644editdlrm
decimal.cpython-39.pyc3720644editdlrm
difflib.cpython-39.opt-1.pyc585710644editdlrm
difflib.cpython-39.opt-2.pyc250370644editdlrm
difflib.cpython-39.pyc585930644editdlrm
dis.cpython-39.opt-1.pyc158330644editdlrm
dis.cpython-39.opt-2.pyc120260644editdlrm
dis.cpython-39.pyc158330644editdlrm
doctest.cpython-39.opt-1.pyc758450644editdlrm
doctest.cpython-39.opt-2.pyc405390644editdlrm
doctest.cpython-39.pyc760520644editdlrm
enum.cpython-39.opt-1.pyc260330644editdlrm
enum.cpython-39.opt-2.pyc211110644editdlrm
enum.cpython-39.pyc260330644editdlrm
filecmp.cpython-39.opt-1.pyc86350644editdlrm
filecmp.cpython-39.opt-2.pyc60970644editdlrm
filecmp.cpython-39.pyc86350644editdlrm
fileinput.cpython-39.opt-1.pyc138030644editdlrm
fileinput.cpython-39.opt-2.pyc81950644editdlrm
fileinput.cpython-39.pyc138030644editdlrm
fnmatch.cpython-39.opt-1.pyc38830644editdlrm
fnmatch.cpython-39.opt-2.pyc26750644editdlrm
fnmatch.cpython-39.pyc39550644editdlrm
formatter.cpython-39.opt-1.pyc175520644editdlrm
formatter.cpython-39.opt-2.pyc151120644editdlrm
formatter.cpython-39.pyc175520644editdlrm
fractions.cpython-39.opt-1.pyc180620644editdlrm
fractions.cpython-39.opt-2.pyc108620644editdlrm
fractions.cpython-39.pyc180620644editdlrm
ftplib.cpython-39.opt-1.pyc287070644editdlrm
ftplib.cpython-39.opt-2.pyc185630644editdlrm
ftplib.cpython-39.pyc287070644editdlrm
functools.cpython-39.opt-1.pyc287360644editdlrm
functools.cpython-39.opt-2.pyc220150644editdlrm
functools.cpython-39.pyc287360644editdlrm
genericpath.cpython-39.opt-1.pyc45540644editdlrm
genericpath.cpython-39.opt-2.pyc33710644editdlrm
genericpath.cpython-39.pyc45540644editdlrm
getopt.cpython-39.opt-1.pyc62550644editdlrm
getopt.cpython-39.opt-2.pyc37010644editdlrm
getopt.cpython-39.pyc62730644editdlrm
getpass.cpython-39.opt-1.pyc42130644editdlrm
getpass.cpython-39.opt-2.pyc30270644editdlrm
getpass.cpython-39.pyc42130644editdlrm
gettext.cpython-39.opt-1.pyc180860644editdlrm
gettext.cpython-39.opt-2.pyc173950644editdlrm
gettext.cpython-39.pyc180860644editdlrm
glob.cpython-39.opt-1.pyc45180644editdlrm
glob.cpython-39.opt-2.pyc36580644editdlrm
glob.cpython-39.pyc45570644editdlrm
graphlib.cpython-39.opt-1.pyc75350644editdlrm
graphlib.cpython-39.opt-2.pyc40990644editdlrm
graphlib.cpython-39.pyc75810644editdlrm
gzip.cpython-39.opt-1.pyc185070644editdlrm
gzip.cpython-39.opt-2.pyc146400644editdlrm
gzip.cpython-39.pyc185070644editdlrm
hashlib.cpython-39.opt-1.pyc67040644editdlrm
hashlib.cpython-39.opt-2.pyc61360644editdlrm
hashlib.cpython-39.pyc67040644editdlrm
heapq.cpython-39.opt-1.pyc140530644editdlrm
heapq.cpython-39.opt-2.pyc110370644editdlrm
heapq.cpython-39.pyc140530644editdlrm
hmac.cpython-39.opt-1.pyc68130644editdlrm
hmac.cpython-39.opt-2.pyc42960644editdlrm
hmac.cpython-39.pyc68130644editdlrm
imaplib.cpython-39.opt-1.pyc403980644editdlrm
imaplib.cpython-39.opt-2.pyc277150644editdlrm
imaplib.cpython-39.pyc425790644editdlrm
imghdr.cpython-39.opt-1.pyc41530644editdlrm
imghdr.cpython-39.opt-2.pyc38380644editdlrm
imghdr.cpython-39.pyc41530644editdlrm
imp.cpython-39.opt-1.pyc98640644editdlrm
imp.cpython-39.opt-2.pyc74990644editdlrm
imp.cpython-39.pyc98640644editdlrm
inspect.cpython-39.opt-1.pyc812430644editdlrm
inspect.cpython-39.opt-2.pyc561150644editdlrm
inspect.cpython-39.pyc814850644editdlrm
io.cpython-39.opt-1.pyc34210644editdlrm
io.cpython-39.opt-2.pyc19320644editdlrm
io.cpython-39.pyc34210644editdlrm
ipaddress.cpython-39.opt-1.pyc656950644editdlrm
ipaddress.cpython-39.opt-2.pyc397150644editdlrm
ipaddress.cpython-39.pyc656950644editdlrm
keyword.cpython-39.opt-1.pyc9290644editdlrm
keyword.cpython-39.opt-2.pyc5250644editdlrm
keyword.cpython-39.pyc9290644editdlrm
linecache.cpython-39.opt-1.pyc40410644editdlrm
linecache.cpython-39.opt-2.pyc28080644editdlrm
linecache.cpython-39.pyc40410644editdlrm
locale.cpython-39.opt-1.pyc347090644editdlrm
locale.cpython-39.opt-2.pyc300910644editdlrm
locale.cpython-39.pyc347090644editdlrm
lzma.cpython-39.opt-1.pyc121070644editdlrm
lzma.cpython-39.opt-2.pyc59090644editdlrm
lzma.cpython-39.pyc121070644editdlrm
mailbox.cpython-39.opt-1.pyc605590644editdlrm
mailbox.cpython-39.opt-2.pyc539550644editdlrm
mailbox.cpython-39.pyc606130644editdlrm
mailcap.cpython-39.opt-1.pyc72520644editdlrm
mailcap.cpython-39.opt-2.pyc56820644editdlrm
mailcap.cpython-39.pyc72520644editdlrm
mimetypes.cpython-39.opt-1.pyc160280644editdlrm
mimetypes.cpython-39.opt-2.pyc100130644editdlrm
mimetypes.cpython-39.pyc160280644editdlrm
modulefinder.cpython-39.opt-1.pyc160950644editdlrm
modulefinder.cpython-39.opt-2.pyc151860644editdlrm
modulefinder.cpython-39.pyc161410644editdlrm
netrc.cpython-39.opt-1.pyc37960644editdlrm
netrc.cpython-39.opt-2.pyc35580644editdlrm
netrc.cpython-39.pyc37960644editdlrm
nntplib.cpython-39.opt-1.pyc317760644editdlrm
nntplib.cpython-39.opt-2.pyc201760644editdlrm
nntplib.cpython-39.pyc317760644editdlrm
ntpath.cpython-39.opt-1.pyc148250644editdlrm
ntpath.cpython-39.opt-2.pyc127740644editdlrm
ntpath.cpython-39.pyc148250644editdlrm
nturl2path.cpython-39.opt-1.pyc17590644editdlrm
nturl2path.cpython-39.opt-2.pyc13400644editdlrm
nturl2path.cpython-39.pyc17590644editdlrm
numbers.cpython-39.opt-1.pyc123320644editdlrm
numbers.cpython-39.opt-2.pyc83750644editdlrm
numbers.cpython-39.pyc123320644editdlrm
opcode.cpython-39.opt-1.pyc52360644editdlrm
opcode.cpython-39.opt-2.pyc50950644editdlrm
opcode.cpython-39.pyc52360644editdlrm
operator.cpython-39.opt-1.pyc137970644editdlrm
operator.cpython-39.opt-2.pyc114080644editdlrm
operator.cpython-39.pyc137970644editdlrm
optparse.cpython-39.opt-1.pyc479010644editdlrm
optparse.cpython-39.opt-2.pyc355860644editdlrm
optparse.cpython-39.pyc479560644editdlrm
os.cpython-39.opt-1.pyc316430644editdlrm
os.cpython-39.opt-2.pyc194530644editdlrm
os.cpython-39.pyc316590644editdlrm
pathlib.cpython-39.opt-1.pyc435410644editdlrm
pathlib.cpython-39.opt-2.pyc346810644editdlrm
pathlib.cpython-39.pyc435410644editdlrm
pdb.cpython-39.opt-1.pyc475600644editdlrm
pdb.cpython-39.opt-2.pyc334890644editdlrm
pdb.cpython-39.pyc475990644editdlrm
pickle.cpython-39.opt-1.pyc470250644editdlrm
pickle.cpython-39.opt-2.pyc411550644editdlrm
pickle.cpython-39.pyc471110644editdlrm
pickletools.cpython-39.opt-1.pyc663060644editdlrm
pickletools.cpython-39.opt-2.pyc572130644editdlrm
pickletools.cpython-39.pyc671200644editdlrm
pipes.cpython-39.opt-1.pyc78080644editdlrm
pipes.cpython-39.opt-2.pyc49410644editdlrm
pipes.cpython-39.pyc78080644editdlrm
pkgutil.cpython-39.opt-1.pyc185790644editdlrm
pkgutil.cpython-39.opt-2.pyc118800644editdlrm
pkgutil.cpython-39.pyc185790644editdlrm
platform.cpython-39.opt-1.pyc264290644editdlrm
platform.cpython-39.opt-2.pyc183610644editdlrm
platform.cpython-39.pyc264290644editdlrm
plistlib.cpython-39.opt-1.pyc235090644editdlrm
plistlib.cpython-39.opt-2.pyc211500644editdlrm
plistlib.cpython-39.pyc235600644editdlrm
poplib.cpython-39.opt-1.pyc136700644editdlrm
poplib.cpython-39.opt-2.pyc87400644editdlrm
poplib.cpython-39.pyc136700644editdlrm
posixpath.cpython-39.opt-1.pyc106220644editdlrm
posixpath.cpython-39.opt-2.pyc89070644editdlrm
posixpath.cpython-39.pyc106220644editdlrm
pprint.cpython-39.opt-1.pyc168100644editdlrm
pprint.cpython-39.opt-2.pyc146530644editdlrm
pprint.cpython-39.pyc168430644editdlrm
profile.cpython-39.opt-1.pyc142360644editdlrm
profile.cpython-39.opt-2.pyc112580644editdlrm
profile.cpython-39.pyc144240644editdlrm
pstats.cpython-39.opt-1.pyc237650644editdlrm
pstats.cpython-39.opt-2.pyc208560644editdlrm
pstats.cpython-39.pyc237650644editdlrm
pty.cpython-39.opt-1.pyc39690644editdlrm
pty.cpython-39.opt-2.pyc31240644editdlrm
pty.cpython-39.pyc39690644editdlrm
pyclbr.cpython-39.opt-1.pyc104620644editdlrm
pyclbr.cpython-39.opt-2.pyc68610644editdlrm
pyclbr.cpython-39.pyc104620644editdlrm
pydoc.cpython-39.opt-1.pyc854410644editdlrm
pydoc.cpython-39.opt-2.pyc755590644editdlrm
pydoc.cpython-39.pyc854730644editdlrm
py_compile.cpython-39.opt-1.pyc74090644editdlrm
py_compile.cpython-39.opt-2.pyc36710644editdlrm
py_compile.cpython-39.pyc74090644editdlrm
queue.cpython-39.opt-1.pyc108890644editdlrm
queue.cpython-39.opt-2.pyc65390644editdlrm
queue.cpython-39.pyc108890644editdlrm
quopri.cpython-39.opt-1.pyc56160644editdlrm
quopri.cpython-39.opt-2.pyc45800644editdlrm
quopri.cpython-39.pyc57600644editdlrm
random.cpython-39.opt-1.pyc220560644editdlrm
random.cpython-39.opt-2.pyc146090644editdlrm
random.cpython-39.pyc220560644editdlrm
re.cpython-39.opt-1.pyc143750644editdlrm
re.cpython-39.opt-2.pyc60370644editdlrm
re.cpython-39.pyc143750644editdlrm
reprlib.cpython-39.opt-1.pyc53200644editdlrm
reprlib.cpython-39.opt-2.pyc51640644editdlrm
reprlib.cpython-39.pyc53200644editdlrm
rlcompleter.cpython-39.opt-1.pyc58190644editdlrm
rlcompleter.cpython-39.opt-2.pyc31560644editdlrm
rlcompleter.cpython-39.pyc58190644editdlrm
runpy.cpython-39.opt-1.pyc93980644editdlrm
runpy.cpython-39.opt-2.pyc69560644editdlrm
runpy.cpython-39.pyc93980644editdlrm
sched.cpython-39.opt-1.pyc66460644editdlrm
sched.cpython-39.opt-2.pyc36180644editdlrm
sched.cpython-39.pyc66460644editdlrm
secrets.cpython-39.opt-1.pyc21930644editdlrm
secrets.cpython-39.opt-2.pyc11350644editdlrm
secrets.cpython-39.pyc21930644editdlrm
selectors.cpython-39.opt-1.pyc172580644editdlrm
selectors.cpython-39.opt-2.pyc131490644editdlrm
selectors.cpython-39.pyc172580644editdlrm
shelve.cpython-39.opt-1.pyc95570644editdlrm
shelve.cpython-39.opt-2.pyc54060644editdlrm
shelve.cpython-39.pyc95570644editdlrm
shlex.cpython-39.opt-1.pyc77470644editdlrm
shlex.cpython-39.opt-2.pyc71890644editdlrm
shlex.cpython-39.pyc77470644editdlrm
shutil.cpython-39.opt-1.pyc385100644editdlrm
shutil.cpython-39.opt-2.pyc264420644editdlrm
shutil.cpython-39.pyc385100644editdlrm
signal.cpython-39.opt-1.pyc30190644editdlrm
signal.cpython-39.opt-2.pyc27950644editdlrm
signal.cpython-39.pyc30190644editdlrm
site.cpython-39.opt-1.pyc170230644editdlrm
site.cpython-39.opt-2.pyc114870644editdlrm
site.cpython-39.pyc170230644editdlrm
smtpd.cpython-39.opt-1.pyc265370644editdlrm
smtpd.cpython-39.opt-2.pyc239170644editdlrm
smtpd.cpython-39.pyc265370644editdlrm
smtplib.cpython-39.opt-1.pyc358980644editdlrm
smtplib.cpython-39.opt-2.pyc195360644editdlrm
smtplib.cpython-39.pyc359430644editdlrm
sndhdr.cpython-39.opt-1.pyc70060644editdlrm
sndhdr.cpython-39.opt-2.pyc57310644editdlrm
sndhdr.cpython-39.pyc70060644editdlrm
socket.cpython-39.opt-1.pyc289890644editdlrm
socket.cpython-39.opt-2.pyc204500644editdlrm
socket.cpython-39.pyc290130644editdlrm
socketserver.cpython-39.opt-1.pyc255280644editdlrm
socketserver.cpython-39.opt-2.pyc148120644editdlrm
socketserver.cpython-39.pyc255280644editdlrm
sre_compile.cpython-39.opt-1.pyc149720644editdlrm
sre_compile.cpython-39.opt-2.pyc145580644editdlrm
sre_compile.cpython-39.pyc151670644editdlrm
sre_constants.cpython-39.opt-1.pyc63490644editdlrm
sre_constants.cpython-39.opt-2.pyc59240644editdlrm
sre_constants.cpython-39.pyc63490644editdlrm
sre_parse.cpython-39.opt-1.pyc217850644editdlrm
sre_parse.cpython-39.opt-2.pyc217370644editdlrm
sre_parse.cpython-39.pyc218220644editdlrm
ssl.cpython-39.opt-1.pyc450700644editdlrm
ssl.cpython-39.opt-2.pyc340860644editdlrm
ssl.cpython-39.pyc450700644editdlrm
stat.cpython-39.opt-1.pyc43850644editdlrm
stat.cpython-39.opt-2.pyc36020644editdlrm
stat.cpython-39.pyc43850644editdlrm
statistics.cpython-39.opt-1.pyc317970644editdlrm
statistics.cpython-39.opt-2.pyc159240644editdlrm
statistics.cpython-39.pyc319910644editdlrm
string.cpython-39.opt-1.pyc71780644editdlrm
string.cpython-39.opt-2.pyc60720644editdlrm
string.cpython-39.pyc71780644editdlrm
stringprep.cpython-39.opt-1.pyc99590644editdlrm
stringprep.cpython-39.opt-2.pyc97410644editdlrm
stringprep.cpython-39.pyc99990644editdlrm
struct.cpython-39.opt-1.pyc3190644editdlrm
struct.cpython-39.opt-2.pyc3190644editdlrm
struct.cpython-39.pyc3190644editdlrm
subprocess.cpython-39.opt-1.pyc443230644editdlrm
subprocess.cpython-39.opt-2.pyc322850644editdlrm
subprocess.cpython-39.pyc443990644editdlrm
sunau.cpython-39.opt-1.pyc168300644editdlrm
sunau.cpython-39.opt-2.pyc122400644editdlrm
sunau.cpython-39.pyc168300644editdlrm
symbol.cpython-39.opt-1.pyc25920644editdlrm
symbol.cpython-39.opt-2.pyc25160644editdlrm
symbol.cpython-39.pyc25920644editdlrm
symtable.cpython-39.opt-1.pyc111010644editdlrm
symtable.cpython-39.opt-2.pyc103720644editdlrm
symtable.cpython-39.pyc111790644editdlrm
sysconfig.cpython-39.opt-1.pyc160800644editdlrm
sysconfig.cpython-39.opt-2.pyc137020644editdlrm
sysconfig.cpython-39.pyc160800644editdlrm
tabnanny.cpython-39.opt-1.pyc70780644editdlrm
tabnanny.cpython-39.opt-2.pyc61450644editdlrm
tabnanny.cpython-39.pyc70780644editdlrm
tarfile.cpython-39.opt-1.pyc728220644editdlrm
tarfile.cpython-39.opt-2.pyc575640644editdlrm
tarfile.cpython-39.pyc728370644editdlrm
telnetlib.cpython-39.opt-1.pyc183440644editdlrm
telnetlib.cpython-39.opt-2.pyc108420644editdlrm
telnetlib.cpython-39.pyc183440644editdlrm
tempfile.cpython-39.opt-1.pyc236690644editdlrm
tempfile.cpython-39.opt-2.pyc171430644editdlrm
tempfile.cpython-39.pyc236690644editdlrm
textwrap.cpython-39.opt-1.pyc134760644editdlrm
textwrap.cpython-39.opt-2.pyc62670644editdlrm
textwrap.cpython-39.pyc135340644editdlrm
this.cpython-39.opt-1.pyc12720644editdlrm
this.cpython-39.opt-2.pyc12720644editdlrm
this.cpython-39.pyc12720644editdlrm
threading.cpython-39.opt-1.pyc417290644editdlrm
threading.cpython-39.opt-2.pyc245420644editdlrm
threading.cpython-39.pyc421940644editdlrm
timeit.cpython-39.opt-1.pyc117690644editdlrm
timeit.cpython-39.opt-2.pyc59150644editdlrm
timeit.cpython-39.pyc117690644editdlrm
token.cpython-39.opt-1.pyc25090644editdlrm
token.cpython-39.opt-2.pyc24760644editdlrm
token.cpython-39.pyc25090644editdlrm
tokenize.cpython-39.opt-1.pyc171500644editdlrm
tokenize.cpython-39.opt-2.pyc133860644editdlrm
tokenize.cpython-39.pyc171780644editdlrm
trace.cpython-39.opt-1.pyc197720644editdlrm
trace.cpython-39.opt-2.pyc167570644editdlrm
trace.cpython-39.pyc197720644editdlrm
traceback.cpython-39.opt-1.pyc204530644editdlrm
traceback.cpython-39.opt-2.pyc115000644editdlrm
traceback.cpython-39.pyc204530644editdlrm
tracemalloc.cpython-39.opt-1.pyc179480644editdlrm
tracemalloc.cpython-39.opt-2.pyc165350644editdlrm
tracemalloc.cpython-39.pyc179480644editdlrm
tty.cpython-39.opt-1.pyc10910644editdlrm
tty.cpython-39.opt-2.pyc9820644editdlrm
tty.cpython-39.pyc10910644editdlrm
types.cpython-39.opt-1.pyc92490644editdlrm
types.cpython-39.opt-2.pyc80270644editdlrm
types.cpython-39.pyc92490644editdlrm
typing.cpython-39.opt-1.pyc718180644editdlrm
typing.cpython-39.opt-2.pyc505700644editdlrm
typing.cpython-39.pyc719480644editdlrm
uu.cpython-39.opt-1.pyc38600644editdlrm
uu.cpython-39.opt-2.pyc36160644editdlrm
uu.cpython-39.pyc38600644editdlrm
uuid.cpython-39.opt-1.pyc224100644editdlrm
uuid.cpython-39.opt-2.pyc146970644editdlrm
uuid.cpython-39.pyc225230644editdlrm
warnings.cpython-39.opt-1.pyc131790644editdlrm
warnings.cpython-39.opt-2.pyc109040644editdlrm
warnings.cpython-39.pyc136180644editdlrm
wave.cpython-39.opt-1.pyc178570644editdlrm
wave.cpython-39.opt-2.pyc118650644editdlrm
wave.cpython-39.pyc178860644editdlrm
weakref.cpython-39.opt-1.pyc202840644editdlrm
weakref.cpython-39.opt-2.pyc169990644editdlrm
weakref.cpython-39.pyc202980644editdlrm
webbrowser.cpython-39.opt-1.pyc171300644editdlrm
webbrowser.cpython-39.opt-2.pyc147200644editdlrm
webbrowser.cpython-39.pyc171470644editdlrm
xdrlib.cpython-39.opt-1.pyc82560644editdlrm
xdrlib.cpython-39.opt-2.pyc77710644editdlrm
xdrlib.cpython-39.pyc82560644editdlrm
zipapp.cpython-39.opt-1.pyc59980644editdlrm
zipapp.cpython-39.opt-2.pyc48220644editdlrm
zipapp.cpython-39.pyc59980644editdlrm
zipfile.cpython-39.opt-1.pyc595630644editdlrm
zipfile.cpython-39.opt-2.pyc505750644editdlrm
zipfile.cpython-39.pyc595840644editdlrm
zipimport.cpython-39.opt-1.pyc171720644editdlrm
zipimport.cpython-39.opt-2.pyc136540644editdlrm
zipimport.cpython-39.pyc172500644editdlrm
_aix_support.cpython-39.opt-1.pyc30590644editdlrm
_aix_support.cpython-39.opt-2.pyc17040644editdlrm
_aix_support.cpython-39.pyc30590644editdlrm
_bootlocale.cpython-39.opt-1.pyc12300644editdlrm
_bootlocale.cpython-39.opt-2.pyc10050644editdlrm
_bootlocale.cpython-39.pyc12400644editdlrm
_bootsubprocess.cpython-39.opt-1.pyc22580644editdlrm
_bootsubprocess.cpython-39.opt-2.pyc20290644editdlrm
_bootsubprocess.cpython-39.pyc22580644editdlrm
_collections_abc.cpython-39.opt-1.pyc317440644editdlrm
_collections_abc.cpython-39.opt-2.pyc262540644editdlrm
_collections_abc.cpython-39.pyc317440644editdlrm
_compat_pickle.cpython-39.opt-1.pyc54480644editdlrm
_compat_pickle.cpython-39.opt-2.pyc54480644editdlrm
_compat_pickle.cpython-39.pyc55010644editdlrm
_compression.cpython-39.opt-1.pyc42110644editdlrm
_compression.cpython-39.opt-2.pyc39970644editdlrm
_compression.cpython-39.pyc42110644editdlrm
_markupbase.cpython-39.opt-1.pyc76390644editdlrm
_markupbase.cpython-39.opt-2.pyc72610644editdlrm
_markupbase.cpython-39.pyc77900644editdlrm
_osx_support.cpython-39.opt-1.pyc115950644editdlrm
_osx_support.cpython-39.opt-2.pyc89050644editdlrm
_osx_support.cpython-39.pyc115950644editdlrm
_pydecimal.cpython-39.opt-1.pyc1606260644editdlrm
_pydecimal.cpython-39.opt-2.pyc790090644editdlrm
_pydecimal.cpython-39.pyc1606260644editdlrm
_pyio.cpython-39.opt-1.pyc743800644editdlrm
_pyio.cpython-39.opt-2.pyc515830644editdlrm
_pyio.cpython-39.pyc744000644editdlrm
_py_abc.cpython-39.opt-1.pyc46470644editdlrm
_py_abc.cpython-39.opt-2.pyc34340644editdlrm
_py_abc.cpython-39.pyc46690644editdlrm
_sitebuiltins.cpython-39.opt-1.pyc35140644editdlrm
_sitebuiltins.cpython-39.opt-2.pyc29900644editdlrm
_sitebuiltins.cpython-39.pyc35140644editdlrm
_strptime.cpython-39.opt-1.pyc160280644editdlrm
_strptime.cpython-39.opt-2.pyc123000644editdlrm
_strptime.cpython-39.pyc160280644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-39.opt-1.pyc269610644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-39.opt-2.pyc269610644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-39.pyc269610644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-1.pyc270070644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-2.pyc270070644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.pyc270070644editdlrm
_threading_local.cpython-39.opt-1.pyc65190644editdlrm
_threading_local.cpython-39.opt-2.pyc31990644editdlrm
_threading_local.cpython-39.pyc65190644editdlrm
_weakrefset.cpython-39.opt-1.pyc77370644editdlrm
_weakrefset.cpython-39.opt-2.pyc77370644editdlrm
_weakrefset.cpython-39.pyc77370644editdlrm
__future__.cpython-39.opt-1.pyc41390644editdlrm
__future__.cpython-39.opt-2.pyc21670644editdlrm
__future__.cpython-39.pyc41390644editdlrm
__phello__.foo.cpython-39.opt-1.pyc1420644editdlrm
__phello__.foo.cpython-39.opt-2.pyc1420644editdlrm
__phello__.foo.cpython-39.pyc1420644editdlrm
Edit: /opt/alt/python39/lib64/python3.9/__pycache__/difflib.cpython-39.opt-1.pyc (58571B)
a XC?hkE@s0dZgdZddlmZddlmZddlm Z eddZ dd Z Gd d d Z d:ddZ ddZGdddZddlZedjfddZd;ddZddZdd)d*Zdefd+d,Zddefd-d.Zd/Zd0Zd1Zd2Z Gd3d4d4e!Z"[d5d6Z#d7d8Z$e%d9kr,e$dS)?ae Module difflib -- helpers for computing deltas between objects. Function get_close_matches(word, possibilities, n=3, cutoff=0.6): Use SequenceMatcher to return list of the best "good enough" matches. Function context_diff(a, b): For two lists of strings, return a delta in context diff format. Function ndiff(a, b): Return a delta: the difference between `a` and `b` (lists of strings). Function restore(delta, which): Return one of the two sequences that generated an ndiff delta. Function unified_diff(a, b): For two lists of strings, return a delta in unified diff format. Class SequenceMatcher: A flexible class for comparing pairs of sequences of any type. Class Differ: For producing human-readable deltas from sequences of lines of text. Class HtmlDiff: For producing HTML side by side comparison with change highlights. ) get_close_matchesndiffrestoreSequenceMatcherDifferIS_CHARACTER_JUNK IS_LINE_JUNK context_diff unified_diff diff_bytesHtmlDiffMatch)nlargest) namedtuple) GenericAliasr za b sizecCs|rd||SdS)Ng@?)matcheslengthrr,/opt/alt/python39/lib64/python3.9/difflib.py_calculate_ratio's rc@s~eZdZdZdddZddZd d Zd d Zd dZd ddZ ddZ ddZ d!ddZ ddZ ddZddZeeZdS)"rao SequenceMatcher is a flexible class for comparing pairs of sequences of any type, so long as the sequence elements are hashable. The basic algorithm predates, and is a little fancier than, an algorithm published in the late 1980's by Ratcliff and Obershelp under the hyperbolic name "gestalt pattern matching". The basic idea is to find the longest contiguous matching subsequence that contains no "junk" elements (R-O doesn't address junk). The same idea is then applied recursively to the pieces of the sequences to the left and to the right of the matching subsequence. This does not yield minimal edit sequences, but does tend to yield matches that "look right" to people. SequenceMatcher tries to compute a "human-friendly diff" between two sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the longest *contiguous* & junk-free matching subsequence. That's what catches peoples' eyes. The Windows(tm) windiff has another interesting notion, pairing up elements that appear uniquely in each sequence. That, and the method here, appear to yield more intuitive difference reports than does diff. This method appears to be the least vulnerable to syncing up on blocks of "junk lines", though (like blank lines in ordinary text files, or maybe "

" lines in HTML files). That may be because this is the only method of the 3 that has a *concept* of "junk" . Example, comparing two strings, and considering blanks to be "junk": >>> s = SequenceMatcher(lambda x: x == " ", ... "private Thread currentThread;", ... "private volatile Thread currentThread;") >>> .ratio() returns a float in [0, 1], measuring the "similarity" of the sequences. As a rule of thumb, a .ratio() value over 0.6 means the sequences are close matches: >>> print(round(s.ratio(), 3)) 0.866 >>> If you're only interested in where the sequences match, .get_matching_blocks() is handy: >>> for block in s.get_matching_blocks(): ... print("a[%d] and b[%d] match for %d elements" % block) a[0] and b[0] match for 8 elements a[8] and b[17] match for 21 elements a[29] and b[38] match for 0 elements Note that the last tuple returned by .get_matching_blocks() is always a dummy, (len(a), len(b), 0), and this is the only case in which the last tuple element (number of elements matched) is 0. If you want to know how to change the first sequence into the second, use .get_opcodes(): >>> for opcode in s.get_opcodes(): ... print("%6s a[%d:%d] b[%d:%d]" % opcode) equal a[0:8] b[0:8] insert a[8:8] b[8:17] equal a[8:29] b[17:38] See the Differ class for a fancy human-friendly file differencer, which uses SequenceMatcher both to compare sequences of lines, and to compare sequences of characters within similar (near-matching) lines. See also function get_close_matches() in this module, which shows how simple code building on SequenceMatcher can be used to do useful work. Timing: Basic R-O is cubic time worst case and quadratic time expected case. SequenceMatcher is quadratic time for the worst case and has expected-case behavior dependent in a complicated way on how many elements the sequences have in common; best case time is linear. NTcCs(||_d|_|_||_|||dS)a!Construct a SequenceMatcher. Optional arg isjunk is None (the default), or a one-argument function that takes a sequence element and returns true iff the element is junk. None is equivalent to passing "lambda x: 0", i.e. no elements are considered to be junk. For example, pass lambda x: x in " \t" if you're comparing lines as sequences of characters, and don't want to synch up on blanks or hard tabs. Optional arg a is the first of two sequences to be compared. By default, an empty string. The elements of a must be hashable. See also .set_seqs() and .set_seq1(). Optional arg b is the second of two sequences to be compared. By default, an empty string. The elements of b must be hashable. See also .set_seqs() and .set_seq2(). Optional arg autojunk should be set to False to disable the "automatic junk heuristic" that treats popular elements as junk (see module documentation for more information). N)isjunkabautojunkset_seqs)selfrrrrrrr__init__xs; zSequenceMatcher.__init__cCs||||dS)zSet the two sequences to be compared. >>> s = SequenceMatcher() >>> s.set_seqs("abcd", "bcde") >>> s.ratio() 0.75 N)set_seq1set_seq2)rrrrrrrs zSequenceMatcher.set_seqscCs$||jurdS||_d|_|_dS)aMSet the first sequence to be compared. The second sequence to be compared is not changed. >>> s = SequenceMatcher(None, "abcd", "bcde") >>> s.ratio() 0.75 >>> s.set_seq1("bcde") >>> s.ratio() 1.0 >>> SequenceMatcher computes and caches detailed information about the second sequence, so if you want to compare one sequence S against many sequences, use .set_seq2(S) once and call .set_seq1(x) repeatedly for each of the other sequences. See also set_seqs() and set_seq2(). N)rmatching_blocksopcodes)rrrrrrs zSequenceMatcher.set_seq1cCs2||jurdS||_d|_|_d|_|dS)aMSet the second sequence to be compared. The first sequence to be compared is not changed. >>> s = SequenceMatcher(None, "abcd", "bcde") >>> s.ratio() 0.75 >>> s.set_seq2("abcd") >>> s.ratio() 1.0 >>> SequenceMatcher computes and caches detailed information about the second sequence, so if you want to compare one sequence S against many sequences, use .set_seq2(S) once and call .set_seq1(x) repeatedly for each of the other sequences. See also set_seqs() and set_seq1(). N)rr!r" fullbcount_SequenceMatcher__chain_b)rrrrrr s   zSequenceMatcher.set_seq2c Cs|j}i|_}t|D]\}}||g}||qt|_}|j}|r~|D]}||rV| |qV|D] }||=qrt|_ }t |} |j r| dkr| dd} | D]\}} t | | kr| |q|D] }||=qdS)Nd)rb2j enumerate setdefaultappendsetbjunkrkeysaddZbpopularlenritems) rrr(ieltindicesZjunkrZpopularnZntestZidxsrrrZ __chain_b s,           zSequenceMatcher.__chain_br cCsT|j|j|j|jjf\}}}}|dur.t|}|dur>t|}||d} } } i} g} t||D]}| j}i}|||| D]\}||krq~||krq||ddd}||<|| kr~||d||d|} } } q~|} q`| |kr@| |kr@||| ds@|| d|| dkr@| d| d| d} } } q| | |kr| | |kr||| | s|| | || | kr| d7} q@| |kr| |kr||| dr|| d|| dkr| d| d| d} } } q| | |krH| | |krH||| | rH|| | || | krH| d} qt| | | S)aAFind longest matching block in a[alo:ahi] and b[blo:bhi]. By default it will find the longest match in the entirety of a and b. If isjunk is not defined: Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where alo <= i <= i+k <= ahi blo <= j <= j+k <= bhi and for all (i',j',k') meeting those conditions, k >= k' i <= i' and if i == i', j <= j' In other words, of all maximal matching blocks, return one that starts earliest in a, and of all those maximal matching blocks that start earliest in a, return the one that starts earliest in b. >>> s = SequenceMatcher(None, " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=0, b=4, size=5) If isjunk is defined, first the longest matching block is determined as above, but with the additional restriction that no junk element appears in the block. Then that block is extended as far as possible by matching (only) junk elements on both sides. So the resulting block never matches on junk except as identical junk happens to be adjacent to an "interesting" match. Here's the same example as before, but considering blanks to be junk. That prevents " abcd" from matching the " abcd" at the tail end of the second sequence directly. Instead only the "abcd" can match, and matches the leftmost "abcd" in the second sequence: >>> s = SequenceMatcher(lambda x: x==" ", " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=1, b=0, size=4) If no blocks match, return (alo, blo, 0). >>> s = SequenceMatcher(None, "ab", "c") >>> s.find_longest_match(0, 2, 0, 1) Match(a=0, b=0, size=0) Nr r') rrr(r- __contains__r0rangegetr )raloahiblobhirrr(ZisbjunkZbestiZbestjZbestsizeZj2lenZnothingr2Zj2lengetZnewj2lenjkrrrfind_longest_match1sZ:"   z"SequenceMatcher.find_longest_matchcCs||jdur|jSt|jt|j}}d|d|fg}g}|r|\}}}}|||||\} } } } | r8|| || kr|| kr||| || f| | |kr8| | |kr8|| | || | |fq8|d} }}g}|D]V\}}}| ||kr|||kr||7}q|r,|| ||f|||} }}q|rT|| ||f|||dftt t j ||_|jS)aReturn list of triples describing matching subsequences. Each triple is of the form (i, j, n), and means that a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in i and in j. New in Python 2.5, it's also guaranteed that if (i, j, n) and (i', j', n') are adjacent triples in the list, and the second is not the last triple in the list, then i+n != i' or j+n != j'. IOW, adjacent triples never describe adjacent equal blocks. The last triple is a dummy, (len(a), len(b), 0), and is the only triple with n==0. >>> s = SequenceMatcher(None, "abxcd", "abcd") >>> list(s.get_matching_blocks()) [Match(a=0, b=0, size=2), Match(a=3, b=2, size=2), Match(a=5, b=4, size=0)] Nr ) r!r0rrpopr?r+sortlistmapr _make)rlalbZqueuer!r9r:r;r<r2r=r>xi1j1Zk1Z non_adjacenti2j2Zk2rrrget_matching_blockss8    z#SequenceMatcher.get_matching_blockscCs|jdur|jSd}}g|_}|D]\}}}d}||krN||krNd}n||kr\d}n ||krhd}|r||||||f||||}}|r*|d||||fq*|S)a[Return list of 5-tuples describing how to turn a into b. Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple has i1 == j1 == 0, and remaining tuples have i1 == the i2 from the tuple preceding it, and likewise for j1 == the previous j2. The tags are strings, with these meanings: 'replace': a[i1:i2] should be replaced by b[j1:j2] 'delete': a[i1:i2] should be deleted. Note that j1==j2 in this case. 'insert': b[j1:j2] should be inserted at a[i1:i1]. Note that i1==i2 in this case. 'equal': a[i1:i2] == b[j1:j2] >>> a = "qabxcd" >>> b = "abycdf" >>> s = SequenceMatcher(None, a, b) >>> for tag, i1, i2, j1, j2 in s.get_opcodes(): ... print(("%7s a[%d:%d] (%s) b[%d:%d] (%s)" % ... (tag, i1, i2, a[i1:i2], j1, j2, b[j1:j2]))) delete a[0:1] (q) b[0:0] () equal a[1:3] (ab) b[0:2] (ab) replace a[3:4] (x) b[2:3] (y) equal a[4:6] (cd) b[3:5] (cd) insert a[6:6] () b[5:6] (f) Nr rreplacedeleteinsertequal)r"rLr+)rr2r=Zansweraibjsizetagrrr get_opcodess$  zSequenceMatcher.get_opcodesc csn|}|sdg}|dddkrZ|d\}}}}}|t||||t||||f|d<|dddkr|d\}}}}}||t||||t|||f|d<||}g} |D]\}}}}}|dkr(|||kr(| ||t||||t|||f| Vg} t|||t|||}}| |||||fq| rjt| dkrd| dddksj| VdS)a Isolate change clusters by eliminating ranges with no changes. Return a generator of groups with up to n lines of context. Each group is in the same format as returned by get_opcodes(). >>> from pprint import pprint >>> a = list(map(str, range(1,40))) >>> b = a[:] >>> b[8:8] = ['i'] # Make an insertion >>> b[20] += 'x' # Make a replacement >>> b[23:28] = [] # Make a deletion >>> b[30] += 'y' # Make another replacement >>> pprint(list(SequenceMatcher(None,a,b).get_grouped_opcodes())) [[('equal', 5, 8, 5, 8), ('insert', 8, 8, 8, 9), ('equal', 8, 11, 9, 12)], [('equal', 16, 19, 17, 20), ('replace', 19, 20, 20, 21), ('equal', 20, 22, 21, 23), ('delete', 22, 27, 23, 23), ('equal', 27, 30, 23, 26)], [('equal', 31, 34, 27, 30), ('replace', 34, 35, 30, 31), ('equal', 35, 38, 31, 34)]] )rPr r'r r'r rPr'N)rUmaxminr+r0) rr5ZcodesrTrHrJrIrKZnngrouprrrget_grouped_opcodes#s(&&(&z#SequenceMatcher.get_grouped_opcodescCs0tdd|D}t|t|jt|jS)aReturn a measure of the sequences' similarity (float in [0,1]). Where T is the total number of elements in both sequences, and M is the number of matches, this is 2.0*M / T. Note that this is 1 if the sequences are identical, and 0 if they have nothing in common. .ratio() is expensive to compute if you haven't already computed .get_matching_blocks() or .get_opcodes(), in which case you may want to try .quick_ratio() or .real_quick_ratio() first to get an upper bound. >>> s = SequenceMatcher(None, "abcd", "bcde") >>> s.ratio() 0.75 >>> s.quick_ratio() 0.75 >>> s.real_quick_ratio() 1.0 css|]}|dVqdS)rWNr).0Ztriplerrr kz(SequenceMatcher.ratio..)sumrLrr0rr)rrrrrratioUszSequenceMatcher.ratiocCs|jdur4i|_}|jD]}||dd||<q|j}i}|jd}}|jD]>}||rf||}n ||d}|d||<|dkrP|d}qPt|t|jt|jS)zReturn an upper bound on ratio() relatively quickly. This isn't defined beyond that it is an upper bound on .ratio(), and is faster to compute. Nr r')r#rr8r6rrr0)rr#r3ZavailZavailhasrZnumbrrr quick_rations         zSequenceMatcher.quick_ratiocCs*t|jt|j}}tt||||S)zReturn an upper bound on ratio() very quickly. This isn't defined beyond that it is an upper bound on .ratio(), and is faster to compute than either .ratio() or .quick_ratio(). )r0rrrrY)rrErFrrrreal_quick_ratiosz SequenceMatcher.real_quick_ratio)NrrT)r Nr N)rV)__name__ __module__ __qualname____doc__rrrr r$r?rLrUr[r`rarb classmethodr__class_getitem__rrrrr,sJ @ ,' tG7 2 rrV333333?cCs|dkstd|fd|kr*dks:ntd|fg}t}|||D]D}||||krR||krR||krR|||fqRt||}dd|DS)aUse SequenceMatcher to return list of the best "good enough" matches. word is a sequence for which close matches are desired (typically a string). possibilities is a list of sequences against which to match word (typically a list of strings). Optional arg n (default 3) is the maximum number of close matches to return. n must be > 0. Optional arg cutoff (default 0.6) is a float in [0, 1]. Possibilities that don't score at least that similar to word are ignored. The best (no more than n) matches among the possibilities are returned in a list, sorted by similarity score, most similar first. >>> get_close_matches("appel", ["ape", "apple", "peach", "puppy"]) ['apple', 'ape'] >>> import keyword as _keyword >>> get_close_matches("wheel", _keyword.kwlist) ['while'] >>> get_close_matches("Apple", _keyword.kwlist) [] >>> get_close_matches("accept", _keyword.kwlist) ['except'] r zn must be > 0: %rgrz cutoff must be in [0.0, 1.0]: %rcSsg|] \}}|qSrr)r\ZscorerGrrr r^z%get_close_matches..) ValueErrorrr rrbrar`r+ _nlargest)ZwordZ possibilitiesr5cutoffresultsrGrrrrs"      rcCsdddt||DS)zAReplace whitespace with the original whitespace characters in `s`rcss*|]"\}}|dkr|r|n|VqdS) N)isspace)r\cZtag_crrrr]sz$_keep_original_ws..)joinzip)roZtag_srrr_keep_original_wss ruc@sJeZdZdZdddZddZddZd d Zd d Zd dZ ddZ dS)ra Differ is a class for comparing sequences of lines of text, and producing human-readable differences or deltas. Differ uses SequenceMatcher both to compare sequences of lines, and to compare sequences of characters within similar (near-matching) lines. Each line of a Differ delta begins with a two-letter code: '- ' line unique to sequence 1 '+ ' line unique to sequence 2 ' ' line common to both sequences '? ' line not present in either input sequence Lines beginning with '? ' attempt to guide the eye to intraline differences, and were not present in either input sequence. These lines can be confusing if the sequences contain tab characters. Note that Differ makes no claim to produce a *minimal* diff. To the contrary, minimal diffs are often counter-intuitive, because they synch up anywhere possible, sometimes accidental matches 100 pages apart. Restricting synch points to contiguous matches preserves some notion of locality, at the occasional cost of producing a longer diff. Example: Comparing two texts. First we set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be obtained from the `readlines()` method of file-like objects): >>> text1 = ''' 1. Beautiful is better than ugly. ... 2. Explicit is better than implicit. ... 3. Simple is better than complex. ... 4. Complex is better than complicated. ... '''.splitlines(keepends=True) >>> len(text1) 4 >>> text1[0][-1] '\n' >>> text2 = ''' 1. Beautiful is better than ugly. ... 3. Simple is better than complex. ... 4. Complicated is better than complex. ... 5. Flat is better than nested. ... '''.splitlines(keepends=True) Next we instantiate a Differ object: >>> d = Differ() Note that when instantiating a Differ object we may pass functions to filter out line and character 'junk'. See Differ.__init__ for details. Finally, we compare the two: >>> result = list(d.compare(text1, text2)) 'result' is a list of strings, so let's pretty-print it: >>> from pprint import pprint as _pprint >>> _pprint(result) [' 1. Beautiful is better than ugly.\n', '- 2. Explicit is better than implicit.\n', '- 3. Simple is better than complex.\n', '+ 3. Simple is better than complex.\n', '? ++\n', '- 4. Complex is better than complicated.\n', '? ^ ---- ^\n', '+ 4. Complicated is better than complex.\n', '? ++++ ^ ^\n', '+ 5. Flat is better than nested.\n'] As a single multi-line string it looks like this: >>> print(''.join(result), end="") 1. Beautiful is better than ugly. - 2. Explicit is better than implicit. - 3. Simple is better than complex. + 3. Simple is better than complex. ? ++ - 4. Complex is better than complicated. ? ^ ---- ^ + 4. Complicated is better than complex. ? ++++ ^ ^ + 5. Flat is better than nested. NcCs||_||_dS)a Construct a text differencer, with optional filters. The two optional keyword parameters are for filter functions: - `linejunk`: A function that should accept a single string argument, and return true iff the string is junk. The module-level function `IS_LINE_JUNK` may be used to filter out lines without visible characters, except for at most one splat ('#'). It is recommended to leave linejunk None; the underlying SequenceMatcher class has an adaptive notion of "noise" lines that's better than any static definition the author has ever been able to craft. - `charjunk`: A function that should accept a string of length 1. The module-level function `IS_CHARACTER_JUNK` may be used to filter out whitespace characters (a blank or tab; **note**: bad idea to include newline in this!). Use of IS_CHARACTER_JUNK is recommended. Nlinejunkcharjunk)rrwrxrrrr*szDiffer.__init__c cst|j||}|D]\}}}}}|dkrB|||||||} n\|dkr\|d|||} nB|dkrv|d|||} n(|dkr|d|||} ntd|f| Ed Hqd S) a Compare two sequences of lines; generate the resulting delta. Each sequence must contain individual single-line strings ending with newlines. Such sequences can be obtained from the `readlines()` method of file-like objects. The delta generated also consists of newline- terminated strings, ready to be printed as-is via the writeline() method of a file-like object. Example: >>> print(''.join(Differ().compare('one\ntwo\nthree\n'.splitlines(True), ... 'ore\ntree\nemu\n'.splitlines(True))), ... end="") - one ? ^ + ore ? ^ - two - three ? - + tree + emu rMrN-rO+rPrpunknown tag %rN)rrwrU_fancy_replace_dumprk) rrrcruncherrTr9r:r;r<grrrcompareAszDiffer.compareccs&t||D]}d|||fVq dS)z4Generate comparison results for a same-tagged range.z%s %sN)r7)rrTrGlohir2rrrr}jsz Differ._dumpc csn||||kr2|d|||}|d|||}n |d|||}|d|||}||fD]} | EdHqZdS)Nrzry)r}) rrr9r:rr;r<firstsecondrrrr_plain_replaceos zDiffer._plain_replaceccs:d\}}t|j} d\} } t||D]} || } | | t||D]j}||}|| krl| durD|| } } qD| || |krD| |krD| |krD| || }}}qDq$||kr| dur|||||||EdHdS| | d}}}nd} | ||||||EdH||||}}| dur d}}| ||| D]\}}}}}||||}}|dkr|d|7}|d|7}nb|dkr|d |7}nJ|d kr|d |7}n2|d kr|d |7}|d |7}nt d|fqH| ||||EdHn d|V| ||d|||d|EdHdS)aL When replacing one block of lines with another, search the blocks for *similar* lines; the best-matching pair (if any) is used as a synch point, and intraline difference marking is done on the similar pair. Lots of work, but often worth it. Example: >>> d = Differ() >>> results = d._fancy_replace(['abcDefghiJkl\n'], 0, 1, ... ['abcdefGhijkl\n'], 0, 1) >>> print(''.join(results), end="") - abcDefghiJkl ? ^ ^ ^ + abcdefGhijkl ? ^ ^ ^ )gGz?g?)NNNrrrM^rNryrOrzrPrpr{ r')rrxr7r rrbrar`r _fancy_helperrrUrk_qformat)rrr9r:rr;r<Z best_ratiormr~ZeqiZeqjr=rRr2rQZbest_iZbest_jZaeltZbeltatagsbtagsrTZai1Zai2Zbj1Zbj2rErFrrrr|}s\                zDiffer._fancy_replaceccsbg}||kr<||kr*|||||||}qT|d|||}n||krT|d|||}|EdHdS)Nryrz)r|r})rrr9r:rr;r<rrrrrszDiffer._fancy_helperccsXt||}t||}d|V|r8d|dVd|V|rTd|dVdS)a Format "?" output and deal with tabs. Example: >>> d = Differ() >>> results = d._qformat('\tabcDefghiJkl\n', '\tabcdefGhijkl\n', ... ' ^ ^ ^ ', ' ^ ^ ^ ') >>> for line in results: print(repr(line)) ... '- \tabcDefghiJkl\n' '? \t ^ ^ ^\n' '+ \tabcdefGhijkl\n' '? \t ^ ^ ^\n' - z?  + N)rurstrip)rZalineZblinerrrrrrs  zDiffer._qformat)NN) rcrdrerfrrr}rr|rrrrrrrsU )^ rNz \s*(?:#\s*)?$cCs ||duS)z Return True for ignorable line: iff `line` is blank or contains a single '#'. Examples: >>> IS_LINE_JUNK('\n') True >>> IS_LINE_JUNK(' # \n') True >>> IS_LINE_JUNK('hello\n') False Nr)lineZpatrrrrsr cCs||vS)z Return True for ignorable character: iff `ch` is a space or tab. Examples: >>> IS_CHARACTER_JUNK(' ') True >>> IS_CHARACTER_JUNK('\t') True >>> IS_CHARACTER_JUNK('\n') False >>> IS_CHARACTER_JUNK('x') False r)ZchZwsrrrr%srcCs:|d}||}|dkr"d|S|s.|d8}d||Sz Convert range to the "ed" formatr'z{}z{},{}formatstartstopZ beginningrrrr_format_range_unified<s rrrccsPt|||||||d}td|||D]} |s|d}|rFd|nd} |rXd|nd} d|| |Vd|| |V| d| d } } t| d | d }t| d | d }d|||V| D]\}}}}}|dkr|||D]}d|Vqq|dvr"|||D]}d|Vq|dvr|||D]}d|Vq6qq*dS)a Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of context. The number of context lines is set by 'n' which defaults to three. By default, the diff control lines (those with ---, +++, or @@) are created with a trailing newline. This is helpful so that inputs created from file.readlines() result in diffs that are suitable for file.writelines() since both the inputs and outputs have trailing newlines. For inputs that do not have trailing newlines, set the lineterm argument to "" so that the output will be uniformly newline free. The unidiff format normally has a header for filenames and modification times. Any or all of these may be specified using strings for 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'. The modification times are normally expressed in the ISO 8601 format. Example: >>> for line in unified_diff('one two three four'.split(), ... 'zero one tree four'.split(), 'Original', 'Current', ... '2005-01-26 23:30:50', '2010-04-02 10:20:52', ... lineterm=''): ... print(line) # doctest: +NORMALIZE_WHITESPACE --- Original 2005-01-26 23:30:50 +++ Current 2010-04-02 10:20:52 @@ -1,4 +1,4 @@ +zero one -two -three +tree four FNT {}r --- {}{}{}z +++ {}{}{}r rWr'rVz@@ -{} +{} @@{}rPrp>rNrMry>rMrOrz) _check_typesrr[rr)rrfromfiletofile fromfiledate tofiledater5linetermstartedrZfromdatetodaterlast file1_range file2_rangerTrHrJrIrKrrrrr Gs0)  r cCsB|d}||}|s|d8}|dkr.d|Sd|||dSrrrrrr_format_range_contexts rccst|||||||tddddd}d} td|||D]R} | sd} |rVd |nd } |rhd |nd } d || |Vd || |V| d | d} }d|Vt| d|d}d||Vtdd| Dr| D]8\}}}}}|dkr|||D]}|||Vqqt| d|d}d||Vtdd| Dr:| D]<\}}}}}|dkrP|||D]}|||VqtqPq:dS)ah Compare two sequences of lines; generate the delta as a context diff. Context diffs are a compact way of showing line changes and a few lines of context. The number of context lines is set by 'n' which defaults to three. By default, the diff control lines (those with *** or ---) are created with a trailing newline. This is helpful so that inputs created from file.readlines() result in diffs that are suitable for file.writelines() since both the inputs and outputs have trailing newlines. For inputs that do not have trailing newlines, set the lineterm argument to "" so that the output will be uniformly newline free. The context diff format normally has a header for filenames and modification times. Any or all of these may be specified using strings for 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'. The modification times are normally expressed in the ISO 8601 format. If not specified, the strings default to blanks. Example: >>> print(''.join(context_diff('one\ntwo\nthree\nfour\n'.splitlines(True), ... 'zero\none\ntree\nfour\n'.splitlines(True), 'Original', 'Current')), ... end="") *** Original --- Current *************** *** 1,4 **** one ! two ! three four --- 1,4 ---- + zero one ! tree four rrz! r)rOrNrMrPFNTrrz *** {}{}{}rr rWz***************r'rz *** {} ****{}css |]\}}}}}|dvVqdS)>rNrMNrr\rT_rrrr]r^zcontext_diff..rOrVrz --- {} ----{}css |]\}}}}}|dvVqdS)>rMrONrrrrrr]r^rN)rdictrr[rrany)rrrrrrr5rprefixrrZrrrrrrTrHrJrrrrIrKrrrrs4,  rcGs|r0t|dts0tdt|dj|df|r`t|dts`tdt|dj|df|D]}t|tsdtd|fqddS)Nr z)lines to compare must be str, not %s (%r)z"all arguments must be str, not: %r) isinstancestr TypeErrortyperc)rrargsargrrrrs rr^ c cs~dd} tt| |}tt| |}| |}| |}| |}| |}| |}|||||||||} | D]} | ddVqfdS)a Compare `a` and `b`, two sequences of lines represented as bytes rather than str. This is a wrapper for `dfunc`, which is typically either unified_diff() or context_diff(). Inputs are losslessly converted to strings so that `dfunc` only has to worry about strings, and encoded back to bytes on return. This is necessary to compare files with unknown or inconsistent encoding. All other inputs (except `n`) must be bytes rather than str. c SsTz|ddWStyN}z(dt|j|f}t||WYd}~n d}~00dS)Nasciisurrogateescapez(all arguments must be bytes, not %s (%r))decodeAttributeErrorrrcr)roerrmsgrrrrs zdiff_bytes..decoderrN)rBrCencode) Zdfuncrrrrrrr5rrlinesrrrrr s r cCst||||S)aJ Compare `a` and `b` (lists of strings); return a `Differ`-style delta. Optional keyword parameters `linejunk` and `charjunk` are for filter functions, or can be None: - linejunk: A function that should accept a single string argument and return true iff the string is junk. The default is None, and is recommended; the underlying SequenceMatcher class has an adaptive notion of "noise" lines. - charjunk: A function that accepts a character (string of length 1), and returns true iff the character is junk. The default is the module-level function IS_CHARACTER_JUNK, which filters out whitespace characters (a blank or tab; note: it's a bad idea to include newline in this!). Tools/scripts/ndiff.py is a command-line front-end to this function. Example: >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> print(''.join(diff), end="") - one ? ^ + ore ? ^ - two - three ? - + tree + emu )rr)rrrwrxrrrrs#rc#sddl}|dt||||ddgffdd fddfdd }|}|durj|EdHn|d 7}d}ddg|} } d } | d urzt|\} } } WntyYdS0| |}| | | f| |<| d 7} q| |krd V|}n| }d} |r | |}| d 7} | |V|d 8}q|d }z@|rft|\} } } | rN|d }n|d 8}| | | fVq*Wqvty~YdS0qvdS) aReturns generator yielding marked up from/to side by side differences. Arguments: fromlines -- list of text lines to compared to tolines tolines -- list of text lines to be compared to fromlines context -- number of context lines to display on each side of difference, if None, all from/to text lines will be generated. linejunk -- passed on to ndiff (see ndiff documentation) charjunk -- passed on to ndiff (see ndiff documentation) This function returns an iterator which returns a tuple: (from line tuple, to line tuple, boolean flag) from/to line tuple -- (line num, line text) line num -- integer or None (to indicate a context separation) line text -- original line text with following markers inserted: '\0+' -- marks start of added text '\0-' -- marks start of deleted text '\0^' -- marks start of changed text '\1' -- marks end of added/deleted/changed text boolean flag -- None indicates context separation, True indicates either "from" or "to" line contains a change, otherwise False. This function/iterator was originally developed to generate side by side file difference for making HTML pages (see HtmlDiff class for example usage). Note, this function utilizes the ndiff function to generate the side by side difference markup. Optional ndiff arguments may be passed to this function and they in turn will be passed to ndiff. r Nz (\++|\-+|\^+)c s||d7<|dur2|||dddfS|dkr|d|d}}g}|fdd}||t|D]<\}\} } |d| d||| | d || d}qt|dd}n*|ddd}|sd }d||d }|||fS) aReturns line of text with user's change markup and line formatting. lines -- list of lines from the ndiff generator to produce a line of text from. When producing the line of text to return, the lines used are removed from this list. format_key -- '+' return first line in list with "add" markup around the entire line. '-' return first line in list with "delete" markup around the entire line. '?' return first line in list with add/delete/change intraline markup (indices obtained from second line) None return first line in list with no markup side -- indice into the num_lines list (0=from,1=to) num_lines -- from/to current line number. This is NOT intended to be a passed parameter. It is present as a keyword argument to maintain memory of the current line numbers between calls of this function. Note, this function is purposefully not defined at the module scope so that data it needs from its parent function (within whose context it is defined) does not need to be of module scope. r'Nr r?cSs&||dd|g|dS)Nr'r )r+rZspan)Z match_objectsub_inforrrrecord_sub_infosz3_mdiff.._make_line..record_sub_inforp)r@subreversed) rZ format_keysideZ num_linestextZmarkersrrkeyZbeginend) change_rerr _make_linefs   2z_mdiff.._make_linec3sng}d\}}t|dkr*|tdq ddd|D}|drP|}n|dr||dd |dd d fVq n|d r|d 8}|d d dd fVq nl|drֈ|d d d}}|d d }}n>|dr|dd |dd d fVq n|dr0|dd |dd d fVq n|d r\|d 8}|d d dd fVq n|dr|d 7}d|dd d fVq n|drd|dd }}|d d }}n^|dr|d 7}d|dd d fVq n2|dr|dddd |dd dfVq |d kr0|d 7}dVq|d krL|d 8}dVq0|dr\dS||d fVq dS)aYields from/to lines of text with a change indication. This function is an iterator. It itself pulls lines from a differencing iterator, processes them and yields them. When it can it yields both a "from" and a "to" line, otherwise it will yield one or the other. In addition to yielding the lines of from/to text, a boolean flag is yielded to indicate if the text line(s) have differences in them. Note, this function is purposefully not defined at the module scope so that data it needs from its parent function (within whose context it is defined) does not need to be of module scope. )r r rXrcSsg|] }|dqS)r rr\rrrrrjr^z2_mdiff.._line_iterator..z-?+?rr r'Tz--++ryN)z--?+z--+rz-+?z-?+z+--rz)rz+-rpF)NrrT)rNT)r0r+nextrs startswith)rZnum_blanks_pendingZnum_blanks_to_yieldro from_lineto_line)rdiff_lines_iteratorrr_line_iteratorsd            $     z_mdiff.._line_iteratorc3s}gg}}t|dks(t|dkr~zt|\}}}WntyNYdS0|durf|||f|dur|||fq|d\}}|d\}}|||p|fVqdS)atYields from/to lines of text with a change indication. This function is an iterator. It itself pulls lines from the line iterator. Its difference from that iterator is that this function always yields a pair of from/to text lines (with the change indication). If necessary it will collect single from/to lines until it has a matching pair from/to pair to yield. Note, this function is purposefully not defined at the module scope so that data it needs from its parent function (within whose context it is defined) does not need to be of module scope. r N)r0r StopIterationr+r@)Z line_iterator fromlinestolinesrr found_diffZfromDiffZto_diff)rrr_line_pair_iterators   z#_mdiff.._line_pair_iteratorr'F)NNN)recompilerrr)rrcontextrwrxrrZline_pair_iteratorZlines_to_writeindexZ contextLinesrrrr2r)rrrrr_mdiff<sR" 8X !     ran %(table)s%(legend)s aH table.diff {font-family:Courier; border:medium;} .diff_header {background-color:#e0e0e0} td.diff_header {text-align:right} .diff_next {background-color:#c0c0c0} .diff_add {background-color:#aaffaa} .diff_chg {background-color:#ffff77} .diff_sub {background-color:#ffaaaa}aZ

%(header_row)s %(data_rows)s
a
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op
c@seZdZdZeZeZeZeZdZddde fddZ dd d d d Z ddZ ddZ ddZddZddZddZddZdddZdS) r a{For producing HTML side by side comparison with change highlights. This class can be used to create an HTML table (or a complete HTML file containing the table) showing a side by side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode. The following methods are provided for HTML generation: make_table -- generates HTML for a single side by side table make_file -- generates complete HTML file with a single side by side table See tools/scripts/diff.py for an example usage of this class. r NcCs||_||_||_||_dS)aHtmlDiff instance initializer Arguments: tabsize -- tab stop spacing, defaults to 8. wrapcolumn -- column number where lines are broken and wrapped, defaults to None where lines are not wrapped. linejunk,charjunk -- keyword arguments passed into ndiff() (used by HtmlDiff() to generate the side by side HTML differences). See ndiff() documentation for argument default values and descriptions. N)_tabsize _wrapcolumn _linejunk _charjunk)rtabsizeZ wrapcolumnrwrxrrrrs zHtmlDiff.__init__rFzutf-8)charsetc Cs:|jt|j|j|j||||||d|d|d|S)aReturns HTML file of side by side comparison with change highlights Arguments: fromlines -- list of "from" lines tolines -- list of "to" lines fromdesc -- "from" file column header string todesc -- "to" file column header string context -- set to True for contextual differences (defaults to False which shows full differences). numlines -- number of context lines. When context is set True, controls number of lines displayed before and after the change. When context is False, controls the number of lines to place the "next" link anchors before the next change (so click of "next" link jumps to just before the change). charset -- charset of the HTML document )rnumlines)ZstylesZlegendtablerxmlcharrefreplace)_file_templater_styles_legend make_tablerr)rrrfromdesctodescrrrrrr make_files zHtmlDiff.make_filecs8fddfdd|D}fdd|D}||fS)aReturns from/to line lists with tabs expanded and newlines removed. Instead of tab characters being replaced by the number of spaces needed to fill in to the next tab stop, this function will fill the space with tab characters. This is done so that the difference algorithms can identify changes in a file when tabs are replaced by spaces and vice versa. At the end of the HTML generation, the tab characters will be replaced with a nonbreakable space. cs6|dd}|j}|dd}|dddS)Nrpr r)rM expandtabsrr)r)rrr expand_tabss   z2HtmlDiff._tab_newline_replace..expand_tabscsg|] }|qSrrrrrrrjr^z1HtmlDiff._tab_newline_replace..csg|] }|qSrrrrrrrjr^r)rrrr)rrr_tab_newline_replaces zHtmlDiff._tab_newline_replacec Cs|s|||fdSt|}|j}||ksB||dd|krT|||fdSd}d}d}||kr||kr||dkr|d7}||}|d7}q`||dkr|d7}d}q`|d7}|d7}q`|d|} ||d} |r| d} d|| } ||| f||d| dS) aBuilds list of text lines by splitting text lines at wrap point This function will determine if the input text line needs to be wrapped (split) into separate lines. If so, the first wrap point will be determined and the first line appended to the output text line list. This function is used recursively to handle the second part of the split line to further split it. NrrVr rr'r>)r+r0rcount _split_line) rZ data_listZline_numrrSrXr2r5ZmarkZline1Zline2rrrrs8        zHtmlDiff._split_linec cs|D]\}}}|dur$|||fVq||\}}\}}gg} } || |||| ||| sd| r| rt| d}nd}| r| d}nd}|||fVq\qdS)z5Returns iterator that splits (wraps) mdiff text linesNr )rrp)rr@) rdiffsfromdatatodataflagZfromlineZfromtextZtolineZtotextfromlisttolistrrr _line_wrappers     zHtmlDiff._line_wrapperc Csggg}}}|D]t\}}}z8||jd|g|R||jd|g|RWn&ty||d|dYn0||q|||fS)zCollects mdiff output into separate lists Before storing the mdiff from/to data into a list, it is converted into a single line of text with HTML markup. r r'N)r+ _format_liner)rrrrflaglistrrrrrr_collect_lines.s   zHtmlDiff._collect_linescCspzd|}d|j||f}Wnty4d}Yn0|dddddd }|d d }d |||fS) aReturns HTML markup of "from" / "to" text lines side -- 0 or 1 indicating "from" or "to" text flag -- indicates if difference on line linenum -- line number (used for line number column) text -- line text to be marked up z%dz id="%s%s"r&z&rz>%s%s)_prefixrrMr)rrrZlinenumridrrrrCs  zHtmlDiff._format_linecCs0dtj}dtj}tjd7_||g|_dS)zCreate unique anchor prefixeszfrom%d_zto%d_r'N)r _default_prefixr)rZ fromprefixtoprefixrrr _make_prefixZs  zHtmlDiff._make_prefixcCs|jd}dgt|}dgt|}d\} } d} t|D]V\} } | r| sd} | } td| |g} d|| f|| <| d7} d|| f|| <q:d} q:|sdg}dg}dg}d} |rd g}|}n d g}}|dsd ||d<d ||| <|||||fS) zMakes list of "next" linksr'r)r Fr Tz id="difflib_chg_%s_%d"z"nFz2 No Differences Found z( Empty File z!fz#t)rr0r)rX)rrrrrrr next_id next_hrefZnum_chgZ in_changerr2rrrr_convert_flagses<     zHtmlDiff._convert_flagsc CsR||||\}}|r"|}nd}t||||j|jd}|jrL||}||\} } } || | | ||\} } } } } g}d}t t | D]P}| |dur|dkr| dq| || || || || || |fq|s|rddd|dd|f}nd }|j t d |||jd d }|d d ddddddddS)aReturns HTML table of side by side comparison with change highlights Arguments: fromlines -- list of "from" lines tolines -- list of "to" lines fromdesc -- "from" file column header string todesc -- "to" file column header string context -- set to True for contextual differences (defaults to False which shows full differences). numlines -- number of context lines. When context is set True, controls number of lines displayed before and after the change. When context is False, controls the number of lines to place the "next" link anchors before the next change (so click of "next" link jumps to just before the change). NrvzV %s%s%s%s r z) z %s%s%s%sz!
z+%srr')Z data_rows header_rowrz+zz-zz^zrzrr)r rrrrrrrr r7r0r+_table_templaterrsrrM)rrrrrrrZ context_linesrrrrr r roZfmtr2rrrrrrsZ        zHtmlDiff.make_table)rrFr)rrFr)rcrdrerfrrrrrrrrrrrrrr r rrrrrr s0  7 /r ccslzdddt|}Wn ty6td|dYn0d|f}|D]"}|dd|vrD|ddVqDdS)a0 Generate one of the two sequences that generated a delta. Given a `delta` produced by `Differ.compare()` or `ndiff()`, extract lines originating from file 1 or 2 (parameter `which`), stripping off line prefixes. Examples: >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> diff = list(diff) >>> print(''.join(restore(diff, 1)), end="") one two three >>> print(''.join(restore(diff, 2)), end="") ore tree emu rr)r'rz)unknown delta choice (must be 1 or 2): %rNrr)intKeyErrorrk)ZdeltaZwhichrTprefixesrrrrrs rcCsddl}ddl}||S)Nr )doctestdifflibZtestmod)rrrrr_testsr__main__)rVri)r)rrrrrVr)rrrrrVr)r^r^r^r^rVr)&rf__all__heapqrrl collectionsrZ _namedtupletypesrr rrrrurrrmatchrrrr rrrr rrrrrrobjectr rrrcrrrrsb    r 1 A   I  L %   a