/opt/alt/python311/lib64/python3.11/__pycache__
NameSizeModeActions
abc.cpython-311.opt-1.pyc90540644editdlrm
abc.cpython-311.opt-2.pyc58540644editdlrm
abc.cpython-311.pyc90540644editdlrm
aifc.cpython-311.opt-1.pyc455220644editdlrm
aifc.cpython-311.opt-2.pyc403150644editdlrm
aifc.cpython-311.pyc455220644editdlrm
antigravity.cpython-311.opt-1.pyc12700644editdlrm
antigravity.cpython-311.opt-2.pyc11330644editdlrm
antigravity.cpython-311.pyc12700644editdlrm
argparse.cpython-311.opt-1.pyc1137050644editdlrm
argparse.cpython-311.opt-2.pyc1040020644editdlrm
argparse.cpython-311.pyc1139960644editdlrm
ast.cpython-311.opt-1.pyc1094160644editdlrm
ast.cpython-311.opt-2.pyc1010450644editdlrm
ast.cpython-311.pyc1096770644editdlrm
asynchat.cpython-311.opt-1.pyc119000644editdlrm
asynchat.cpython-311.opt-2.pyc105440644editdlrm
asynchat.cpython-311.pyc119000644editdlrm
asyncore.cpython-311.opt-1.pyc282020644editdlrm
asyncore.cpython-311.opt-2.pyc269970644editdlrm
asyncore.cpython-311.pyc282020644editdlrm
base64.cpython-311.opt-1.pyc280340644editdlrm
base64.cpython-311.opt-2.pyc234340644editdlrm
base64.cpython-311.pyc284600644editdlrm
bdb.cpython-311.opt-1.pyc386870644editdlrm
bdb.cpython-311.opt-2.pyc293420644editdlrm
bdb.cpython-311.pyc386870644editdlrm
bisect.cpython-311.opt-1.pyc37140644editdlrm
bisect.cpython-311.opt-2.pyc24200644editdlrm
bisect.cpython-311.pyc37140644editdlrm
bz2.cpython-311.opt-1.pyc161760644editdlrm
bz2.cpython-311.opt-2.pyc112940644editdlrm
bz2.cpython-311.pyc161760644editdlrm
calendar.cpython-311.opt-1.pyc447540644editdlrm
calendar.cpython-311.opt-2.pyc405230644editdlrm
calendar.cpython-311.pyc447540644editdlrm
cgi.cpython-311.opt-1.pyc438750644editdlrm
cgi.cpython-311.opt-2.pyc353450644editdlrm
cgi.cpython-311.pyc438750644editdlrm
cgitb.cpython-311.opt-1.pyc188950644editdlrm
cgitb.cpython-311.opt-2.pyc173280644editdlrm
cgitb.cpython-311.pyc188950644editdlrm
chunk.cpython-311.opt-1.pyc74400644editdlrm
chunk.cpython-311.opt-2.pyc53360644editdlrm
chunk.cpython-311.pyc74400644editdlrm
cmd.cpython-311.opt-1.pyc206110644editdlrm
cmd.cpython-311.opt-2.pyc152760644editdlrm
cmd.cpython-311.pyc206110644editdlrm
code.cpython-311.opt-1.pyc139150644editdlrm
code.cpython-311.opt-2.pyc87250644editdlrm
code.cpython-311.pyc139150644editdlrm
codecs.cpython-311.opt-1.pyc452580644editdlrm
codecs.cpython-311.opt-2.pyc298990644editdlrm
codecs.cpython-311.pyc452580644editdlrm
codeop.cpython-311.opt-1.pyc77440644editdlrm
codeop.cpython-311.opt-2.pyc47450644editdlrm
codeop.cpython-311.pyc77440644editdlrm
colorsys.cpython-311.opt-1.pyc49650644editdlrm
colorsys.cpython-311.opt-2.pyc43580644editdlrm
colorsys.cpython-311.pyc49650644editdlrm
compileall.cpython-311.opt-1.pyc215990644editdlrm
compileall.cpython-311.opt-2.pyc183650644editdlrm
compileall.cpython-311.pyc215990644editdlrm
configparser.cpython-311.opt-1.pyc718210644editdlrm
configparser.cpython-311.opt-2.pyc568550644editdlrm
configparser.cpython-311.pyc718210644editdlrm
contextlib.cpython-311.opt-1.pyc330660644editdlrm
contextlib.cpython-311.opt-2.pyc269420644editdlrm
contextlib.cpython-311.pyc330830644editdlrm
contextvars.cpython-311.opt-1.pyc3130644editdlrm
contextvars.cpython-311.opt-2.pyc3130644editdlrm
contextvars.cpython-311.pyc3130644editdlrm
copy.cpython-311.opt-1.pyc112010644editdlrm
copy.cpython-311.opt-2.pyc89180644editdlrm
copy.cpython-311.pyc112010644editdlrm
copyreg.cpython-311.opt-1.pyc81600644editdlrm
copyreg.cpython-311.opt-2.pyc73810644editdlrm
copyreg.cpython-311.pyc81940644editdlrm
cProfile.cpython-311.opt-1.pyc90880644editdlrm
cProfile.cpython-311.opt-2.pyc86250644editdlrm
cProfile.cpython-311.pyc90880644editdlrm
crypt.cpython-311.opt-1.pyc58520644editdlrm
crypt.cpython-311.opt-2.pyc52050644editdlrm
crypt.cpython-311.pyc58520644editdlrm
csv.cpython-311.opt-1.pyc200700644editdlrm
csv.cpython-311.opt-2.pyc180520644editdlrm
csv.cpython-311.pyc200700644editdlrm
dataclasses.cpython-311.opt-1.pyc471880644editdlrm
dataclasses.cpython-311.opt-2.pyc435660644editdlrm
dataclasses.cpython-311.pyc472390644editdlrm
datetime.cpython-311.opt-1.pyc981620644editdlrm
datetime.cpython-311.opt-2.pyc903150644editdlrm
datetime.cpython-311.pyc1013500644editdlrm
decimal.cpython-311.opt-1.pyc5570644editdlrm
decimal.cpython-311.opt-2.pyc5570644editdlrm
decimal.cpython-311.pyc5570644editdlrm
difflib.cpython-311.opt-1.pyc816120644editdlrm
difflib.cpython-311.opt-2.pyc483430644editdlrm
difflib.cpython-311.pyc816620644editdlrm
dis.cpython-311.opt-1.pyc366550644editdlrm
dis.cpython-311.opt-2.pyc322980644editdlrm
dis.cpython-311.pyc366950644editdlrm
doctest.cpython-311.opt-1.pyc1126310644editdlrm
doctest.cpython-311.opt-2.pyc775720644editdlrm
doctest.cpython-311.pyc1130200644editdlrm
enum.cpython-311.opt-1.pyc880100644editdlrm
enum.cpython-311.opt-2.pyc785760644editdlrm
enum.cpython-311.pyc880100644editdlrm
filecmp.cpython-311.opt-1.pyc157240644editdlrm
filecmp.cpython-311.opt-2.pyc131060644editdlrm
filecmp.cpython-311.pyc157240644editdlrm
fileinput.cpython-311.opt-1.pyc211820644editdlrm
fileinput.cpython-311.opt-2.pyc157290644editdlrm
fileinput.cpython-311.pyc211820644editdlrm
fnmatch.cpython-311.opt-1.pyc73390644editdlrm
fnmatch.cpython-311.opt-2.pyc61560644editdlrm
fnmatch.cpython-311.pyc74850644editdlrm
fractions.cpython-311.opt-1.pyc292570644editdlrm
fractions.cpython-311.opt-2.pyc221940644editdlrm
fractions.cpython-311.pyc292570644editdlrm
ftplib.cpython-311.opt-1.pyc476610644editdlrm
ftplib.cpython-311.opt-2.pyc375010644editdlrm
ftplib.cpython-311.pyc476610644editdlrm
functools.cpython-311.opt-1.pyc466490644editdlrm
functools.cpython-311.opt-2.pyc400610644editdlrm
functools.cpython-311.pyc466490644editdlrm
genericpath.cpython-311.opt-1.pyc61750644editdlrm
genericpath.cpython-311.opt-2.pyc51440644editdlrm
genericpath.cpython-311.pyc61750644editdlrm
getopt.cpython-311.opt-1.pyc96790644editdlrm
getopt.cpython-311.opt-2.pyc71380644editdlrm
getopt.cpython-311.pyc97460644editdlrm
getpass.cpython-311.opt-1.pyc75270644editdlrm
getpass.cpython-311.opt-2.pyc63590644editdlrm
getpass.cpython-311.pyc75270644editdlrm
gettext.cpython-311.opt-1.pyc242660644editdlrm
gettext.cpython-311.opt-2.pyc235920644editdlrm
gettext.cpython-311.pyc242660644editdlrm
glob.cpython-311.opt-1.pyc111450644editdlrm
glob.cpython-311.opt-2.pyc102040644editdlrm
glob.cpython-311.pyc112230644editdlrm
graphlib.cpython-311.opt-1.pyc109990644editdlrm
graphlib.cpython-311.opt-2.pyc76050644editdlrm
graphlib.cpython-311.pyc110810644editdlrm
gzip.cpython-311.opt-1.pyc337330644editdlrm
gzip.cpython-311.opt-2.pyc294310644editdlrm
gzip.cpython-311.pyc337330644editdlrm
hashlib.cpython-311.opt-1.pyc123520644editdlrm
hashlib.cpython-311.opt-2.pyc113630644editdlrm
hashlib.cpython-311.pyc123520644editdlrm
heapq.cpython-311.opt-1.pyc205900644editdlrm
heapq.cpython-311.opt-2.pyc174990644editdlrm
heapq.cpython-311.pyc205900644editdlrm
hmac.cpython-311.opt-1.pyc114850644editdlrm
hmac.cpython-311.opt-2.pyc90170644editdlrm
hmac.cpython-311.pyc114850644editdlrm
imaplib.cpython-311.opt-1.pyc668450644editdlrm
imaplib.cpython-311.opt-2.pyc545430644editdlrm
imaplib.cpython-311.pyc690640644editdlrm
imghdr.cpython-311.opt-1.pyc78550644editdlrm
imghdr.cpython-311.opt-2.pyc76950644editdlrm
imghdr.cpython-311.pyc78550644editdlrm
imp.cpython-311.opt-1.pyc164740644editdlrm
imp.cpython-311.opt-2.pyc141870644editdlrm
imp.cpython-311.pyc164740644editdlrm
inspect.cpython-311.opt-1.pyc1412920644editdlrm
inspect.cpython-311.opt-2.pyc1159140644editdlrm
inspect.cpython-311.pyc1416620644editdlrm
io.cpython-311.opt-1.pyc50520644editdlrm
io.cpython-311.opt-2.pyc35620644editdlrm
io.cpython-311.pyc50520644editdlrm
ipaddress.cpython-311.opt-1.pyc969240644editdlrm
ipaddress.cpython-311.opt-2.pyc719470644editdlrm
ipaddress.cpython-311.pyc969240644editdlrm
keyword.cpython-311.opt-1.pyc10840644editdlrm
keyword.cpython-311.opt-2.pyc6750644editdlrm
keyword.cpython-311.pyc10840644editdlrm
linecache.cpython-311.opt-1.pyc74600644editdlrm
linecache.cpython-311.opt-2.pyc62710644editdlrm
linecache.cpython-311.pyc74600644editdlrm
locale.cpython-311.opt-1.pyc644150644editdlrm
locale.cpython-311.opt-2.pyc599690644editdlrm
locale.cpython-311.pyc644150644editdlrm
lzma.cpython-311.opt-1.pyc167330644editdlrm
lzma.cpython-311.opt-2.pyc106380644editdlrm
lzma.cpython-311.pyc167330644editdlrm
mailbox.cpython-311.opt-1.pyc1245290644editdlrm
mailbox.cpython-311.opt-2.pyc1190480644editdlrm
mailbox.cpython-311.pyc1246310644editdlrm
mailcap.cpython-311.opt-1.pyc127990644editdlrm
mailcap.cpython-311.opt-2.pyc112650644editdlrm
mailcap.cpython-311.pyc127990644editdlrm
mimetypes.cpython-311.opt-1.pyc261410644editdlrm
mimetypes.cpython-311.opt-2.pyc202050644editdlrm
mimetypes.cpython-311.pyc261410644editdlrm
modulefinder.cpython-311.opt-1.pyc309310644editdlrm
modulefinder.cpython-311.opt-2.pyc300490644editdlrm
modulefinder.cpython-311.pyc310340644editdlrm
netrc.cpython-311.opt-1.pyc99040644editdlrm
netrc.cpython-311.opt-2.pyc96780644editdlrm
netrc.cpython-311.pyc99040644editdlrm
nntplib.cpython-311.opt-1.pyc501760644editdlrm
nntplib.cpython-311.opt-2.pyc388850644editdlrm
nntplib.cpython-311.pyc501760644editdlrm
ntpath.cpython-311.opt-1.pyc306040644editdlrm
ntpath.cpython-311.opt-2.pyc286550644editdlrm
ntpath.cpython-311.pyc306040644editdlrm
nturl2path.cpython-311.opt-1.pyc35040644editdlrm
nturl2path.cpython-311.opt-2.pyc30980644editdlrm
nturl2path.cpython-311.pyc35040644editdlrm
numbers.cpython-311.opt-1.pyc152660644editdlrm
numbers.cpython-311.opt-2.pyc116720644editdlrm
numbers.cpython-311.pyc152660644editdlrm
opcode.cpython-311.opt-1.pyc138680644editdlrm
opcode.cpython-311.opt-2.pyc137270644editdlrm
opcode.cpython-311.pyc138680644editdlrm
operator.cpython-311.opt-1.pyc187750644editdlrm
operator.cpython-311.opt-2.pyc165580644editdlrm
operator.cpython-311.pyc187750644editdlrm
optparse.cpython-311.opt-1.pyc736260644editdlrm
optparse.cpython-311.opt-2.pyc614080644editdlrm
optparse.cpython-311.pyc737320644editdlrm
os.cpython-311.opt-1.pyc490220644editdlrm
os.cpython-311.opt-2.pyc369940644editdlrm
os.cpython-311.pyc490400644editdlrm
pathlib.cpython-311.opt-1.pyc677360644editdlrm
pathlib.cpython-311.opt-2.pyc593030644editdlrm
pathlib.cpython-311.pyc677360644editdlrm
pdb.cpython-311.opt-1.pyc867040644editdlrm
pdb.cpython-311.opt-2.pyc729640644editdlrm
pdb.cpython-311.pyc868240644editdlrm
pickle.cpython-311.opt-1.pyc866510644editdlrm
pickle.cpython-311.opt-2.pyc808360644editdlrm
pickle.cpython-311.pyc869100644editdlrm
pickletools.cpython-311.opt-1.pyc845710644editdlrm
pickletools.cpython-311.opt-2.pyc756570644editdlrm
pickletools.cpython-311.pyc867470644editdlrm
pipes.cpython-311.opt-1.pyc119820644editdlrm
pipes.cpython-311.opt-2.pyc91590644editdlrm
pipes.cpython-311.pyc119820644editdlrm
pkgutil.cpython-311.opt-1.pyc315940644editdlrm
pkgutil.cpython-311.opt-2.pyc249380644editdlrm
pkgutil.cpython-311.pyc315940644editdlrm
platform.cpython-311.opt-1.pyc437370644editdlrm
platform.cpython-311.opt-2.pyc357780644editdlrm
platform.cpython-311.pyc437370644editdlrm
plistlib.cpython-311.opt-1.pyc458050644editdlrm
plistlib.cpython-311.opt-2.pyc433770644editdlrm
plistlib.cpython-311.pyc459550644editdlrm
poplib.cpython-311.opt-1.pyc209840644editdlrm
poplib.cpython-311.opt-2.pyc161680644editdlrm
poplib.cpython-311.pyc209840644editdlrm
posixpath.cpython-311.opt-1.pyc199990644editdlrm
posixpath.cpython-311.opt-2.pyc183700644editdlrm
posixpath.cpython-311.pyc199990644editdlrm
pprint.cpython-311.opt-1.pyc335240644editdlrm
pprint.cpython-311.opt-2.pyc313730644editdlrm
pprint.cpython-311.pyc335790644editdlrm
profile.cpython-311.opt-1.pyc235000644editdlrm
profile.cpython-311.opt-2.pyc205350644editdlrm
profile.cpython-311.pyc239700644editdlrm
pstats.cpython-311.opt-1.pyc418830644editdlrm
pstats.cpython-311.opt-2.pyc390050644editdlrm
pstats.cpython-311.pyc418830644editdlrm
pty.cpython-311.opt-1.pyc84560644editdlrm
pty.cpython-311.opt-2.pyc77000644editdlrm
pty.cpython-311.pyc84560644editdlrm
pyclbr.cpython-311.opt-1.pyc158940644editdlrm
pyclbr.cpython-311.opt-2.pyc128660644editdlrm
pyclbr.cpython-311.pyc158940644editdlrm
pydoc.cpython-311.opt-1.pyc1582610644editdlrm
pydoc.cpython-311.opt-2.pyc1486370644editdlrm
pydoc.cpython-311.pyc1583210644editdlrm
py_compile.cpython-311.opt-1.pyc107900644editdlrm
py_compile.cpython-311.opt-2.pyc74780644editdlrm
py_compile.cpython-311.pyc107900644editdlrm
queue.cpython-311.opt-1.pyc164690644editdlrm
queue.cpython-311.opt-2.pyc122070644editdlrm
queue.cpython-311.pyc164690644editdlrm
quopri.cpython-311.opt-1.pyc104810644editdlrm
quopri.cpython-311.opt-2.pyc94790644editdlrm
quopri.cpython-311.pyc108730644editdlrm
random.cpython-311.opt-1.pyc345400644editdlrm
random.cpython-311.opt-2.pyc274330644editdlrm
random.cpython-311.pyc345400644editdlrm
reprlib.cpython-311.opt-1.pyc96940644editdlrm
reprlib.cpython-311.opt-2.pyc95440644editdlrm
reprlib.cpython-311.pyc96940644editdlrm
rlcompleter.cpython-311.opt-1.pyc90260644editdlrm
rlcompleter.cpython-311.opt-2.pyc63900644editdlrm
rlcompleter.cpython-311.pyc90260644editdlrm
runpy.cpython-311.opt-1.pyc161320644editdlrm
runpy.cpython-311.opt-2.pyc137170644editdlrm
runpy.cpython-311.pyc161320644editdlrm
sched.cpython-311.opt-1.pyc84180644editdlrm
sched.cpython-311.opt-2.pyc54320644editdlrm
sched.cpython-311.pyc84180644editdlrm
secrets.cpython-311.opt-1.pyc28780644editdlrm
secrets.cpython-311.opt-2.pyc18560644editdlrm
secrets.cpython-311.pyc28780644editdlrm
selectors.cpython-311.opt-1.pyc285550644editdlrm
selectors.cpython-311.opt-2.pyc245250644editdlrm
selectors.cpython-311.pyc285550644editdlrm
shelve.cpython-311.opt-1.pyc138890644editdlrm
shelve.cpython-311.opt-2.pyc97420644editdlrm
shelve.cpython-311.pyc138890644editdlrm
shlex.cpython-311.opt-1.pyc147190644editdlrm
shlex.cpython-311.opt-2.pyc142080644editdlrm
shlex.cpython-311.pyc147190644editdlrm
shutil.cpython-311.opt-1.pyc732600644editdlrm
shutil.cpython-311.opt-2.pyc611130644editdlrm
shutil.cpython-311.pyc732600644editdlrm
signal.cpython-311.opt-1.pyc51220644editdlrm
signal.cpython-311.opt-2.pyc49130644editdlrm
signal.cpython-311.pyc51220644editdlrm
site.cpython-311.opt-1.pyc304890644editdlrm
site.cpython-311.opt-2.pyc250480644editdlrm
site.cpython-311.pyc304890644editdlrm
smtpd.cpython-311.opt-1.pyc436810644editdlrm
smtpd.cpython-311.opt-2.pyc410780644editdlrm
smtpd.cpython-311.pyc436810644editdlrm
smtplib.cpython-311.opt-1.pyc539710644editdlrm
smtplib.cpython-311.opt-2.pyc378020644editdlrm
smtplib.cpython-311.pyc541360644editdlrm
sndhdr.cpython-311.opt-1.pyc124420644editdlrm
sndhdr.cpython-311.opt-2.pyc111130644editdlrm
sndhdr.cpython-311.pyc124420644editdlrm
socket.cpython-311.opt-1.pyc456550644editdlrm
socket.cpython-311.opt-2.pyc371220644editdlrm
socket.cpython-311.pyc456990644editdlrm
socketserver.cpython-311.opt-1.pyc370720644editdlrm
socketserver.cpython-311.opt-2.pyc265040644editdlrm
socketserver.cpython-311.pyc370720644editdlrm
sre_compile.cpython-311.opt-1.pyc8290644editdlrm
sre_compile.cpython-311.opt-2.pyc8290644editdlrm
sre_compile.cpython-311.pyc8290644editdlrm
sre_constants.cpython-311.opt-1.pyc8320644editdlrm
sre_constants.cpython-311.opt-2.pyc8320644editdlrm
sre_constants.cpython-311.pyc8320644editdlrm
sre_parse.cpython-311.opt-1.pyc8250644editdlrm
sre_parse.cpython-311.opt-2.pyc8250644editdlrm
sre_parse.cpython-311.pyc8250644editdlrm
ssl.cpython-311.opt-1.pyc736170644editdlrm
ssl.cpython-311.opt-2.pyc627880644editdlrm
ssl.cpython-311.pyc736170644editdlrm
stat.cpython-311.opt-1.pyc55540644editdlrm
stat.cpython-311.opt-2.pyc49480644editdlrm
stat.cpython-311.pyc55540644editdlrm
statistics.cpython-311.opt-1.pyc581590644editdlrm
statistics.cpython-311.opt-2.pyc386260644editdlrm
statistics.cpython-311.pyc584190644editdlrm
string.cpython-311.opt-1.pyc126540644editdlrm
string.cpython-311.opt-2.pyc115550644editdlrm
string.cpython-311.pyc126540644editdlrm
stringprep.cpython-311.opt-1.pyc264710644editdlrm
stringprep.cpython-311.opt-2.pyc262480644editdlrm
stringprep.cpython-311.pyc265430644editdlrm
struct.cpython-311.opt-1.pyc3960644editdlrm
struct.cpython-311.opt-2.pyc3960644editdlrm
struct.cpython-311.pyc3960644editdlrm
subprocess.cpython-311.opt-1.pyc846830644editdlrm
subprocess.cpython-311.opt-2.pyc726980644editdlrm
subprocess.cpython-311.pyc848250644editdlrm
sunau.cpython-311.opt-1.pyc270200644editdlrm
sunau.cpython-311.opt-2.pyc224280644editdlrm
sunau.cpython-311.pyc270200644editdlrm
symtable.cpython-311.opt-1.pyc193230644editdlrm
symtable.cpython-311.opt-2.pyc168420644editdlrm
symtable.cpython-311.pyc195230644editdlrm
sysconfig.cpython-311.opt-1.pyc317000644editdlrm
sysconfig.cpython-311.opt-2.pyc289900644editdlrm
sysconfig.cpython-311.pyc317000644editdlrm
tabnanny.cpython-311.opt-1.pyc129640644editdlrm
tabnanny.cpython-311.opt-2.pyc120360644editdlrm
tabnanny.cpython-311.pyc129640644editdlrm
tarfile.cpython-311.opt-1.pyc1312090644editdlrm
tarfile.cpython-311.opt-2.pyc1170070644editdlrm
tarfile.cpython-311.pyc1312270644editdlrm
telnetlib.cpython-311.opt-1.pyc310950644editdlrm
telnetlib.cpython-311.opt-2.pyc237600644editdlrm
telnetlib.cpython-311.pyc310950644editdlrm
tempfile.cpython-311.opt-1.pyc421740644editdlrm
tempfile.cpython-311.opt-2.pyc355510644editdlrm
tempfile.cpython-311.pyc421740644editdlrm
textwrap.cpython-311.opt-1.pyc195890644editdlrm
textwrap.cpython-311.opt-2.pyc124570644editdlrm
textwrap.cpython-311.pyc196110644editdlrm
this.cpython-311.opt-1.pyc16120644editdlrm
this.cpython-311.opt-2.pyc16120644editdlrm
this.cpython-311.pyc16120644editdlrm
threading.cpython-311.opt-1.pyc692040644editdlrm
threading.cpython-311.opt-2.pyc512410644editdlrm
threading.cpython-311.pyc703270644editdlrm
timeit.cpython-311.opt-1.pyc164680644editdlrm
timeit.cpython-311.opt-2.pyc106500644editdlrm
timeit.cpython-311.pyc164680644editdlrm
token.cpython-311.opt-1.pyc37390644editdlrm
token.cpython-311.opt-2.pyc37070644editdlrm
token.cpython-311.pyc37390644editdlrm
tokenize.cpython-311.opt-1.pyc303040644editdlrm
tokenize.cpython-311.opt-2.pyc264950644editdlrm
tokenize.cpython-311.pyc303740644editdlrm
trace.cpython-311.opt-1.pyc359780644editdlrm
trace.cpython-311.opt-2.pyc330840644editdlrm
trace.cpython-311.pyc359780644editdlrm
traceback.cpython-311.opt-1.pyc486910644editdlrm
traceback.cpython-311.opt-2.pyc387230644editdlrm
traceback.cpython-311.pyc487370644editdlrm
tracemalloc.cpython-311.opt-1.pyc291000644editdlrm
tracemalloc.cpython-311.opt-2.pyc277320644editdlrm
tracemalloc.cpython-311.pyc291000644editdlrm
tty.cpython-311.opt-1.pyc20410644editdlrm
tty.cpython-311.opt-2.pyc19430644editdlrm
tty.cpython-311.pyc20410644editdlrm
types.cpython-311.opt-1.pyc148350644editdlrm
types.cpython-311.opt-2.pyc134240644editdlrm
types.cpython-311.pyc148350644editdlrm
typing.cpython-311.opt-1.pyc1608380644editdlrm
typing.cpython-311.opt-2.pyc1237120644editdlrm
typing.cpython-311.pyc1616710644editdlrm
uu.cpython-311.opt-1.pyc88110644editdlrm
uu.cpython-311.opt-2.pyc85790644editdlrm
uu.cpython-311.pyc88110644editdlrm
uuid.cpython-311.opt-1.pyc328060644editdlrm
uuid.cpython-311.opt-2.pyc251790644editdlrm
uuid.cpython-311.pyc330830644editdlrm
warnings.cpython-311.opt-1.pyc240640644editdlrm
warnings.cpython-311.opt-2.pyc213670644editdlrm
warnings.cpython-311.pyc250770644editdlrm
wave.cpython-311.opt-1.pyc322810644editdlrm
wave.cpython-311.opt-2.pyc257690644editdlrm
wave.cpython-311.pyc323520644editdlrm
weakref.cpython-311.opt-1.pyc349320644editdlrm
weakref.cpython-311.opt-2.pyc316910644editdlrm
weakref.cpython-311.pyc349730644editdlrm
webbrowser.cpython-311.opt-1.pyc328100644editdlrm
webbrowser.cpython-311.opt-2.pyc304600644editdlrm
webbrowser.cpython-311.pyc328360644editdlrm
xdrlib.cpython-311.opt-1.pyc131580644editdlrm
xdrlib.cpython-311.opt-2.pyc126760644editdlrm
xdrlib.cpython-311.pyc131580644editdlrm
zipapp.cpython-311.opt-1.pyc115550644editdlrm
zipapp.cpython-311.opt-2.pyc104030644editdlrm
zipapp.cpython-311.pyc115550644editdlrm
zipfile.cpython-311.opt-1.pyc1190680644editdlrm
zipfile.cpython-311.opt-2.pyc1092990644editdlrm
zipfile.cpython-311.pyc1191190644editdlrm
zipimport.cpython-311.opt-1.pyc296850644editdlrm
zipimport.cpython-311.opt-2.pyc259980644editdlrm
zipimport.cpython-311.pyc298030644editdlrm
_aix_support.cpython-311.opt-1.pyc43800644editdlrm
_aix_support.cpython-311.opt-2.pyc30470644editdlrm
_aix_support.cpython-311.pyc43800644editdlrm
_bootsubprocess.cpython-311.opt-1.pyc44730644editdlrm
_bootsubprocess.cpython-311.opt-2.pyc42430644editdlrm
_bootsubprocess.cpython-311.pyc44730644editdlrm
_collections_abc.cpython-311.opt-1.pyc512290644editdlrm
_collections_abc.cpython-311.opt-2.pyc452090644editdlrm
_collections_abc.cpython-311.pyc512290644editdlrm
_compat_pickle.cpython-311.opt-1.pyc73440644editdlrm
_compat_pickle.cpython-311.opt-2.pyc73440644editdlrm
_compat_pickle.cpython-311.pyc75290644editdlrm
_compression.cpython-311.opt-1.pyc80630644editdlrm
_compression.cpython-311.opt-2.pyc78570644editdlrm
_compression.cpython-311.pyc80630644editdlrm
_markupbase.cpython-311.opt-1.pyc138300644editdlrm
_markupbase.cpython-311.opt-2.pyc134550644editdlrm
_markupbase.cpython-311.pyc140950644editdlrm
_osx_support.cpython-311.opt-1.pyc199390644editdlrm
_osx_support.cpython-311.opt-2.pyc173490644editdlrm
_osx_support.cpython-311.pyc199390644editdlrm
_pydecimal.cpython-311.opt-1.pyc2442740644editdlrm
_pydecimal.cpython-311.opt-2.pyc1641520644editdlrm
_pydecimal.cpython-311.pyc2442740644editdlrm
_pyio.cpython-311.opt-1.pyc1200870644editdlrm
_pyio.cpython-311.opt-2.pyc977120644editdlrm
_pyio.cpython-311.pyc1201520644editdlrm
_py_abc.cpython-311.opt-1.pyc78170644editdlrm
_py_abc.cpython-311.opt-2.pyc66400644editdlrm
_py_abc.cpython-311.pyc78910644editdlrm
_sitebuiltins.cpython-311.opt-1.pyc54370644editdlrm
_sitebuiltins.cpython-311.opt-2.pyc49100644editdlrm
_sitebuiltins.cpython-311.pyc54370644editdlrm
_strptime.cpython-311.opt-1.pyc279210644editdlrm
_strptime.cpython-311.opt-2.pyc242570644editdlrm
_strptime.cpython-311.pyc279210644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.opt-1.pyc631680644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.opt-2.pyc631680644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.pyc631680644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.opt-1.pyc636590644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.opt-2.pyc636590644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.pyc636590644editdlrm
_threading_local.cpython-311.opt-1.pyc92180644editdlrm
_threading_local.cpython-311.opt-2.pyc59090644editdlrm
_threading_local.cpython-311.pyc92180644editdlrm
_weakrefset.cpython-311.opt-1.pyc131530644editdlrm
_weakrefset.cpython-311.opt-2.pyc131530644editdlrm
_weakrefset.cpython-311.pyc131530644editdlrm
__future__.cpython-311.opt-1.pyc49270644editdlrm
__future__.cpython-311.opt-2.pyc28790644editdlrm
__future__.cpython-311.pyc49270644editdlrm
__hello__.cpython-311.opt-1.pyc10910644editdlrm
__hello__.cpython-311.opt-2.pyc10370644editdlrm
__hello__.cpython-311.pyc10910644editdlrm
Edit: /opt/alt/python311/lib64/python3.11/__pycache__/difflib.cpython-311.pyc (81662B)
/glEdZgdZddlmZddlmZddlm Z eddZ dZ Gd d Z d+d Z dZGddZddlZejdjfdZd,dZdZ d-dZdZ d-dZdZ d.dZdefd Zddefd!Zd"Zd#Zd$Zd%Z Gd&d'e!Z"[d(Z#d)Z$e%d*kr e$dSdS)/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 sizec|rd|z|z SdS)Ng@?)matcheslengths ./opt/alt/python311/lib64/python3.11/difflib.py_calculate_ratior's &W}v%% 3cveZdZdZddZdZdZdZd Zdd Z d Z d Z ddZ dZ dZdZeeZdS)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. NTcj||_dx|_|_||_|||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)selfrrrr s r__init__zSequenceMatcher.__init__xs;v    arcZ||||dS)zSet the two sequences to be compared. >>> s = SequenceMatcher() >>> s.set_seqs("abcd", "bcde") >>> s.ratio() 0.75 N)set_seq1set_seq2)r"rrs rr!zSequenceMatcher.set_seqss. a arcF||jurdS||_dx|_|_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)r"rs rr%zSequenceMatcher.set_seq1s.* ;; F.22t|||rc|||jurdS||_dx|_|_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)r"rs rr&zSequenceMatcher.set_seq2sG* ;; F.22t| rcn|j}ix|_}t|D]0\}}||g}||1t x|_}|j}|r?|D]"}||r| |#|D]}||=t x|_ }t|} |j rX| dkrT| dzdz} | D]-\}} t| | kr| |.|D] }||=dSdSdS)Nd)rb2j enumerate setdefaultappendsetbjunkrkeysaddbpopularlenr items) r"rr1ieltindicesjunkrpopularnntestidxss r __chain_bzSequenceMatcher.__chain_b ss F3ll  FAsnnS"--G NN1     EE! T  xxzz " "6#;;"HHSMMM  HH#&%%'  FF = Q#XXHqLE YY[[ % % Tt99u$$KK$$$  HH   XX   rrc|j|j|j|jjf\}}}}|t |}|t |}||d} } } i} g} t ||D]j}| j}i}|||| D]@}||kr ||krn0||dz ddzx}||<|| kr||z dz||z dz|} } } A|} k| |kry| |krs||| dz s_|| dz || dz krG| dz | dz | dz} } } | |kr2| |kr,||| dz s|| dz || dz kG| | z|krx| | z|kro||| | zs[|| | z|| | zkrC| dz } | | z|kr5| | z|kr,||| | zs|| | z|| | zkC| |kry| |krs||| dz r_|| dz || dz krG| dz | dz | dz} } } | |kr2| |kr,||| dz r|| dz || dz kG| | z|krx| | z|kro||| | zr[|| | z|| | zkrC| dz} | | z|kr5| | z|kr,||| | zr|| | z|| | zkCt| | | 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) Nrr0) rrr1r6 __contains__r:rangegetr )r"aloahiblobhirrr1isbjunkbestibestjbestsizej2lennothingr<j2lengetnewj2lenjks rfind_longest_matchz"SequenceMatcher.find_longest_match1st"VTVTXtz7NN1c7 ;a&&C ;a&&C!$c1husC  AyHHWWQqT7++ = =s7788E"*(1Q3"2"2Q"66HQKx<<-.qSUAaCE1(5EEE ckkeckk'!E!G*%%*ajAeAgJ&&%*1WeAgxz(5Eckkeckk'!E!G*%%*ajAeAgJ&&Hns""uX~';';'!E(N+,,(<h1U8^#444 MHHns""uX~';';'!E(N+,,(<h1U8^#444ckkeckkgaaj!!*ajAeAgJ&&%*1WeAgxz(5Eckkeckkgaaj!!*ajAeAgJ&&Hns""uX~';';gah'(((<h1U8^#444!|HHns""uX~';';gah'(((<h1U8^#444UE8,,,rcT|j|jSt|jt|j}}d|d|fg}g}|r|\}}}}|||||x\} } } } | rk|| || kr|| kr||| || f| | z|kr(| | z|kr|| | z|| | z|f||dx} x}}g}|D]>\}}}| |z|kr||z|kr||z }|r|| ||f|||}}} ?|r|| ||f|||dftttj ||_|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(r:rrpoprWr4sortlistmapr _make)r"lalbqueuer(rIrJrKrLr<rUrVxi1j1k1 non_adjacenti2j2k2s rget_matching_blocksz#SequenceMatcher.get_matching_blockss&   +' 'TVc$&kkBRB  7!& Cc311#sCEE EGAq!a 7&&q)))77sQwwLL#q#q!1222Q3991sLL!A#sAaC!5666 7  R" ) ( (JBBBw"}}bBb 6 ''R 555RB  .   R - - -b"a[***#C \$B$BCC##rc:|j|jSdx}}gx|_}|D]j\}}}d}||kr ||krd}n||krd}n||krd}|r||||||f||z||z}}|r|d||||fk|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) Nrrreplacedeleteinsertequal)r)rir4)r"r<rUansweraibjsizetags r get_opcodeszSequenceMatcher.get_opcodess: < #<  A "" v 4466 9 9LBD C2vv!b&&RR 5 QAr2444d7BtGqA 9 QA6888 rc #K|}|sdg}|dddkr:|d\}}}}}|t|||z |t|||z |f|d<|dddkr:|d\}}}}}||t|||z|t|||zf|d<||z}g} |D]\}}}}}|dkrq||z |krh| ||t|||z|t|||zf| Vg} t|||z t|||z }}| |||||f| r+t | dkr| dddks| VdSdSdS)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)]] )rnrr0rr0rrnr0N)rtmaxminr4r:) r"rAcodesrsrbrfrcrgnngroups rget_grouped_opcodesz#SequenceMatcher.get_grouped_opcodes#s2  "" ,*+E 8A;' ! !"'( CRRCBqDMM2s2r!t}}b@E!H 9Q<7 " ""') CRRRRACBqDMMAE"I U#( 0 0 CRRg~~"R%"** c2s2r!t}}b#b"Q$--HIII RAB1 B LL#r2r2. / / / /  #e**a--E!HQK7,B,BKKKKK  ,B,Brctd|D}t|t|jt|jzS)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 c3&K|] }|dV dS)rwNr).0triples r z(SequenceMatcher.ratio..ks&JJVfRjJJJJJJr)sumrirr:rr)r"rs rratiozSequenceMatcher.ratioUsQ,JJt/G/G/I/IJJJJJTVs46{{)BCCCrc|j/ix|_}|jD]}||ddz||<|j}i}|jd}}|jD]?}||r ||}n||d}|dz ||<|dkr|dz}@t |t |jt |jzS)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. Nrr0)r+rrHrFrrr:)r"r+r=availavailhasrnumbs r quick_ratiozSequenceMatcher.quick_rations ? "+- -DOjv = =",..a"8"81"< 3_ !.'6 & &Cx}} .Sz!~~c1--E#Jaxx!A+TVs46{{)BCCCrct|jt|j}}tt ||||zS)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(). )r:rrrry)r"r^r_s rreal_quick_ratioz SequenceMatcher.real_quick_ratios;TVc$&kkB B R"W555r)NrrT)rNrN)ru)__name__ __module__ __qualname____doc__r#r!r%r&r,rWrirtr}rrr classmethodr__class_getitem__rrrrr,sHHT>>>>@   3334X%%%Nr-r-r-r-hE$E$E$N555n0000dDDD2DDD: 6 6 6$ L11rrru333333?c |dkstd|d|cxkrdksntd|g}t}|||D]}||||krY||krA||kr)|||ft||}d|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'] rzn must be > 0: grzcutoff must be in [0.0, 1.0]: cg|]\}}|Srr)rscoreras r z%get_close_matches..s % % %(%A % % %r) ValueErrorrr&r%rrrr4 _nlargest)word possibilitiesrAcutoffresultsras rrrs: 66j3444 &    C    jvvGHHH FAJJt ** 1    6 ) ) ==??f $ $ 7799   MM17799a. ) ) )q& ! !F % %f % % %%rc\ddt||DS)zAReplace whitespace with the original whitespace characters in `s`rc3XK|]%\}}|dkr|r|n|V&dS) N)isspace)rctag_cs rrz$_keep_original_ws..sR Auc\\aiikk\ur)joinzip)rtag_ss r_keep_original_wsrs< 77Au   rc>eZdZdZd dZdZdZdZdZdZ d Z 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. Nc"||_||_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)r"rrs rr#zDiffer.__init__*s(!   rc #Kt|j||}|D]\}}}}}|dkr|||||||} no|dkr|d|||} nP|dkr|d|||} n1|dkr|d|||} nt d|| Ed {Vd 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 writelines() 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 rkrl-rm+rnr unknown tag N)rrrt_fancy_replace_dumpr) r"rrcruncherrsrIrJrKrLgs rcomparezDiffer.compareAs4#4=!Q77'/';';'='=   #Cc3i''3QSAAJJsAsC00JJsAsC00JJsAsC00 jSS!:;;;LLLLLLLL  rc#NKt||D]}|d||VdS)z4Generate comparison results for a same-tagged range.rN)rG)r"rsralohir<s rrz Differ._dumpjsEr2 ( (A SS!A$$' ' ' ' ' ( (rc#K||kr||ksJ||z ||z kr1|d|||}|d|||}n0|d|||}|d|||}||fD] } | Ed{V dS)Nrr)r) r"rrIrJrrKrLfirstsecondrs r_plain_replacezDiffer._plain_replaceosSyyS3YYY& 9sSy ZZQS11EZZQS11FFZZQS11EZZQS11F  ALLLLLLLL  rc#~Kd\}}t|j} d\} } t||D]} || } | | t||D]}||}|| kr| || } } | || |krH| |kr0| |kr| || }}}||kr+| "|||||||Ed{VdS| | d}}}nd} | ||||||Ed{V||||}}| dx}}| ||| D]o\}}}}}||z ||z }}|dkr|d|zz }|d|zz })|dkr |d |zz }8|d kr |d |zz }G|d kr|d |zz }|d |zz }^td|| ||||Ed{Vnd|zV| ||dz|||dz|Ed{VdS)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?NNNrrrk^rlrrmrrnrr r0)rrrGr&r%rrrr _fancy_helperr!rtr_qformat)r"rrIrJrrKrL best_ratiorreqieqjrUrqr<rpbest_ibest_jaeltbeltatagsbtagsrsai1ai2bj1bj2r^r_s rrzDiffer._fancy_replace}s+*( F"4=11S sC H HA1B   b ! ! !3__ H HqT88{#$aS!!"%%%,,..;;**,,z99nn&&33191A1A1aJ! H"   {..q#sAsCHHHHHHHHH),c3JFFFC %%afafEEEEEEEEEvY& d ; EE   dD ) ) )+3+?+?+A+A @ @'S#sCsC#IB)##S2X%ES2X%EEH__S2X%EEH__S2X%EEG^^S2X%ES2X%EE$*%>???}}T4>> > > > > > > > >+   %%a36!8SIIIIIIIIIIIrc#Kg}||kr:||kr|||||||}n7|d|||}n||kr|d|||}|Ed{VdS)Nrr)rr)r"rrIrJrrKrLrs rrzDiffer._fancy_helpers  99Syy''3QSAAJJsAsC00 3YY 33,,A rc#Kt||}t||}d|zV|rd|dVd|zV|r d|dVdSdS)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)rrstrip)r"alineblinerrs rrzDiffer._qformats "%//6688!%//6688Ul  ! u... Ul  ! u...  ! !rr) rrrrr#rrrrrrrrrrrsSSj!!!!.'''R(((   \J\J\J|   !!!!!rrNz \s*(?:#\s*)?$c||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)linepats rrrs 3t99D  r c ||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)chwss rrr%s 8Orc|dz}||z }|dkrd|S|s|dz}d||Sz Convert range to the "ed" formatr0z{}z{},{}formatstartstop beginningrs r_format_range_unifiedr<sV I E\F {{{{9%%% Q >>)V , ,,rrrc #Kt|||||||d}td|||D]"} |sfd}|rd|nd} |rd|nd} d|| |Vd|| |V| d| d } } t | d | d }t | d | d }d|||V| D]S\}}}}}|dkr|||D] }d|zV #|dvr|||D] }d|zV |dvr|||D] }d|zV T$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 +++ {}{}{}rrwr0ruz@@ -{} +{} @@{}rnr>rlrkr>rmrkr) _check_typesrr}rr)rrfromfiletofile fromfiledate tofiledaterAlinetermstartedr|fromdatetodaterlast file1_range file2_rangersrbrfrcrgrs rr r GsRAxz8LLLG a**>>qAA%% @G6BJv}}\222H2<DV]]:..."F%%h(CC C C C%%ffh?? ? ? ?Ahb t+E!Hd1g>> +E!Hd1g>> &&{KJJJJJ#( % % CRRg~~beH%%D*$$$$+++beH%%D*$$$$+++beH%%D*$$$$ %%%rc|dz}||z }|s|dz}|dkrd|Sd|||zdz Srrrs r_format_range_contextrs` I E\F Q  {{{{9%%% >>)Y%7!%; < <>> 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)rmrlrkrnFNTrrz *** {}{}{}rrrwz***************r0rz *** {} ****{}c3*K|]\}}}}}|dvVdS)>rlrkNrrrs_s rrzcontext_diff..2IIQ1as++IIIIIIrrmrurz --- {} ----{}c3*K|]\}}}}}|dvVdS)>rmrkNrrs rrzcontext_diff..rrrl)rdictrr}rrany)rrrrrrrArprefixrr|rrrrrrsrbrfrrrrcrgs rr r s^XAxz8LLL dD E E EFG a**>>qAA11 @G6BJv}}\222H2<DV]]:..."F%%h(CC C C C%%ffh?? ? ? ?Ahb t(****+E!Hd1g>> $$[(;;;;; II5III I I 1%* 1 1!RQ(?? !"R%11$SkD00000+E!Hd1g>> $$[(;;;;; II5III I I 1%* 1 1!Q2r(?? !"R%11$SkD00000711rc|rOt|dts4tdt|djd|dd|rOt|dts4tdt|djd|dd|D])}t|tstd|*dS)Nrz"lines to compare must be str, not  ()z all arguments must be str, not: ) isinstancestr TypeErrortyper)rrargsargs rrrs 5AaD#&&5iad,,,addd455 55AaD#&&5iad,,,addd455 5KK#s## K)CCIJJ J KKKrr c #PKd} tt| |}tt| |}| |}| |}| |}| |}| |}|||||||||} | D]} | ddVdS)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 |ddS#t$r0}dt|jd|d}t ||d}~wwxYw)Nasciisurrogateescapez!all arguments must be bytes, not rr)decodeAttributeErrorr rr )rerrmsgs rrzdiff_bytes..decodesm *88G%677 7 * * * *GG$$$aaa)CC..c ) *s A+A  ArrN)r[r\encode) dfuncrrrrrrrArrlinesrs rr r s*** S^^A S^^AvhH VF^^F6,''L ##JvhH E!Q&, Ax P PE66kk'#455555566rcJt||||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)rrrrs rrrs%F (H % % - -a 3 33rc#6Kddl}|jdt||||ddgffd fdfd}|}| |Ed{VdS|dz }d} ddg|z} } d } | d ur< t|\} } } n#t$rYdSwxYw| |z}| | | f| |<| dz } | d u<| |krd V|}n| }d} |r| |z}| dz } | |V|dz}||dz } |r)t|\} } } | r|dz }n|dz}| | | fV|)n#t$rYdSwxYw) 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. rNz (\++|\-+|\^+)c||xxdz cc<|%|||dddfS|dkr|d|d}}g}|fd} ||t|D]1\}\} } |d| dz|z|| | zdz|| dz}2|dd}n,|ddd}|sd }d|z|zdz}|||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. r0Nrr?c||dd|g|dS)Nr0r)r4r|span) match_objectsub_infos rrecord_sub_infoz3_mdiff.._make_line..record_sub_infosL!3!3A!6!6q!9,:K:K:M:M NOOO#))!,,,rr)rYsubreversed) r format_keyside num_linestextmarkersr r!keybeginend change_res r _make_linez_mdiff.._make_linefsW. $1  dOEIIaLL$45 5   !IIaLL%))A,,'DH6> - - - - MM/' 2 2 2$,H#5#5 N NKU3AeG}T)#-d59o=dB4:M8DD99Q<<#D *$t+d2D$%%rc3|Kg}d\}} t|dkr6|tdt|dk6dd|D}|dr|}n|dr|dd |dd dfV|d r|d z}|d d d dfV|dr|d d d }}|d z d }}nZ|dr|d d |dd dfVC|dr|dd |d d dfVw|d r|d z}|d d d dfV|dr|d z }d |dd dfV|drd |dd }}|d zd }}nj|dr|d z }d |dd dfV-|dr'|d d d d |d d dfVi|d kr|d z }dV|d k|d kr|d z}dV|d k|drd S||dfV)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. )rrTrXrcg|] }|d S)rr)rrs rrz2_mdiff.._line_iterator..s333Ta333rz-?+?rrr0z--++rN)z--?+z--+rz-+?z-?+z+--r)rz+-rF)NrrT)r3NT)r:r4nextr startswith)rnum_blanks_pendingnum_blanks_to_yieldr from_lineto_liner/diff_lines_iterators r_line_iteratorz_mdiff.._line_iterators26//F -e**q.. T"5s;;<<<e**q..33U33344A||C  3 '9##f%%.  js1--zz%A/F/FLLLLf%%* #a'" js1--tT9999344$ %/JuS$;$;T' 9KA9Ma$6##e$$  jtA.. 5Q0G0GMMMMe$$  js1--zz%Q/G/GMMMMc"" "a'" js1--tT9999e$$ #a'"JJuS33T9999l++ %)::eC+B+B7 9KA9Ma$6##c"" "a'"JJuS33T9999c""  jqqq$q11**U42J2J5PPPP&))#q(#))))&))&))#q(#))))&))||C   -,,,,MF -rc3K}gg}} t|dkst|dkr~ t|\}}}n#t$rYdSwxYw||||f||||ft|dkkt|dk~|d\}}|d\}}|||p|fV)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. TrN)r:r4 StopIterationr4rY) line_iterator fromlinestolinesr8r9 found_difffromDiffto_diffr;s r_line_pair_iteratorz#_mdiff.._line_pair_iterators&'(( R'  :y>>1$$G a59-5H5H2Iw $FF($$i %;<<<&NNGJ#7888y>>1$$G a#,--"2"2 Ix&{{1~~ GWWX%89 9 9 9 :sA AAr0TF)NNN)recompilerr4r=)r?r@contextrrrErDline_pair_iteratorlines_to_writeindex contextLinesrAr8r9r<r;r/r.r:s @@@@r_mdiffrL<suDIII +,,I '(8DD78e6&6&6&6&6&6&pV-V-V-V-V-V-p:::::B-,..%%%%%%%%%% 1 ( #$dVW%5 %(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~eZdZdZeZeZeZeZdZddde fdZ dd d d Z d Z d Z dZdZdZdZdZ ddZdS)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. rNc>||_||_||_||_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)r"tabsize wrapcolumnrrs rr#zHtmlDiff.__init__s%  %!!rrFzutf-8)charsetc |jt|j|j||||||||z|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 )rGnumlines)styleslegendtablerWxmlcharrefreplace)_file_templater_styles_legend make_tablerr)r"r?r@fromdesctodescrGrYrWs r make_filezHtmlDiff.make_filest&#d<<//)Wh*1H"FF ' ' '  6'. / /w  @rcPfdfd|D}fd|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. c|dd}|j}|dd}|dddS)Nrr" r)rk expandtabsrPr)rr"s r expand_tabsz2HtmlDiff._tab_newline_replace..expand_tabss`<<D))D??4=11D<<D))D<<S))0066 6rc&g|] }|Srrrrris rrz1HtmlDiff._tab_newline_replace..s#===4[[&&===rc&g|] }|Srrrks rrz1HtmlDiff._tab_newline_replace..s#999;;t$$999rr)r"r?r@ris` @r_tab_newline_replacezHtmlDiff._tab_newline_replaces\ 7 7 7 7 7>===9=== 9999999  rc<|s|||fdSt|}|j}||ks||ddzz |kr|||fdSd}d}d}||krO||krI||dkr|dz }||}|dz }n||dkr|dz }d}n |dz }|dz }||kr||kI|d|} ||d} |r | dz} d|z| z} ||| 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. Nr"rurrr0r#>)r4r:rQcount _split_line) r" data_listline_numr)rrrxr<rAmarkline1line2s rrqzHtmlDiff._split_lines    ht_ - - - F4yy CKKdTZZ%5%5a%78S@@   ht_ - - - F  #gg!d((Aw$QAwQaDQQQ#gg!d((RaRQRR  (DLE4K%'E (5)*** 3u-----rc#0K|D]\}}}||||fV||c\}}\}}gg} } || |||| ||| s| r?| r| d}nd}| r| d}nd}|||fV| =| ?dS)z5Returns iterator that splits (wraps) mdiff text linesNr)rr)rqrY) r"diffsfromdatatodataflagfromlinefromtexttolinetotextfromlisttolists r _line_wrapperzHtmlDiff._line_wrappers%* + + HVD|vd****2:6 / Xh!VH   Xhx 8 8 8   VF6 2 2 2 +f +('||AHH'H&#ZZ]]FF%Fvd**** +f + + +rcTggg}}}|D]\}}} ||jd|g|R||jd|g|Rn:#t$r-|d|dYnwxYw|||||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. rr0N)r4 _format_liner )r"rxrrflaglistryrzr{s r_collect_lineszHtmlDiff._collect_lines.s$&b$) " " HVD $ 1 1!D C( C C CDDD /d/$????@@@@ $ $ $%%% d##### $ OOD ! ! ! !x''sAA4B  B c> d|z}d|j||d}n#t$rd}YnwxYw|ddddd d }|d d }d |d|d|dS)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=""r&z&roz>z)_prefixr rkr)r"r'r{linenumr)ids rrzHtmlDiff._format_lineCs WnGG!%d!3!3GGG|sdg}dg}dg}d} |rd g}|}nd gx}}|dsd |z|d<d |z|| <|||||fS) zMakes list of "next" linksr0r)rFrTz id="difflib_chg_%s_%d"z"nFz2 No Differences Found z( Empty File z!fz#t)rr:r2rx)r"rrrrGrYrnext_id next_hrefnum_chg in_changerr<r{s r_convert_flagszHtmlDiff._convert_flagsesS<?$s8}}$DX& %)) " "FAd " + $IDQqzN++A!:hw=O!OGAJqLG&J!'N+'+IdO"  QwHdGID QPQ!%O$PP6{ J>IIaL?8L $x '99rc ||||\}}|r|}nd}t||||j|j}|jr||}||\} } } || | | ||\} } } } } g}d}tt| D]a}| ||dkr| d&| || || || || || |fzb|s|rddd|zdd|zd }nd }|j td |||jd  z}|d dddddddddS)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). NrzV %s%s%s%s rz) z z!
z+%sz rr0) data_rows header_rowrz+zz-zz^zr#zrgr)rrmrLrRrSrQrrrrGr:r4_table_templaterrrrk)r"r?r@rbrcrGrY context_linesrxrrrrrrfmtr<rr\s rrazHtmlDiff.make_tablesJ( !55iHH '  !$MM My#~///   .&&u--E$(#6#6u#=#= 6:5H5H VHWX676727 7s8}}%% D DA{"q55HHJKKK#IaL!+4Q<q !CCDDDD  v 33=HH33=FFF HJJ J$tggajj!<?($($($$ }}U#<==WU#<==WU#<==WT),,WT(++  ,r)rrFrV)rrrrr^r_rr`rrr#rdrmrqrrrrrrarrrr r s  $NG%OGO4+"""""AC*+@8?@@@@@6!!!.5.5.5.n+++8(((*###. - - --:-:-:^INK,K,K,K,K,K,rr c#K dddt|}n!#t$rtd|zdwxYwd|f}|D]}|dd|vr |ddVdS)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)r0rz)unknown delta choice (must be 1 or 2): %rNrr)intKeyErrorr)deltawhichrsprefixesrs rrrs,.4  U, ...D"#$$)- ..c{H 8x  qrr(NNNs;c<ddl}ddl}||S)Nr)doctestdifflibtestmod)rrs r_testrs, ??7 # ##r__main__)rur)r)rrrrrur)rrrrrur )&r__all__heapqrr collectionsr _namedtupletypesrr rrrrrrErFmatchrrrr rr rr rrLr^r_rr`objectr rrrrrrrs8 > > >('''''111111 GZ(( k 2k 2k 2k 2k 2k 2k 2k 2\.&.&.&.&bl!l!l!l!l!l!l!l!~  %2:&677=!!!! . - - -=?.2B%B%B%B%R = = =,.?CJ1J1J1J1XKKK"25?D6666<(9#4#4#4#4J(,d%KKKK\ ( 0 "],],],],],v],],],~ @$$$ z EGGGGGr