/opt/alt/python-internal/lib64/python3.11/__pycache__
NameSizeModeActions
abc.cpython-311.opt-1.pyc90600644editdlrm
abc.cpython-311.opt-2.pyc58600644editdlrm
abc.cpython-311.pyc90600644editdlrm
aifc.cpython-311.opt-1.pyc455280644editdlrm
aifc.cpython-311.opt-2.pyc403210644editdlrm
aifc.cpython-311.pyc455280644editdlrm
antigravity.cpython-311.opt-1.pyc12760644editdlrm
antigravity.cpython-311.opt-2.pyc11390644editdlrm
antigravity.cpython-311.pyc12760644editdlrm
argparse.cpython-311.opt-1.pyc1137110644editdlrm
argparse.cpython-311.opt-2.pyc1040080644editdlrm
argparse.cpython-311.pyc1140020644editdlrm
ast.cpython-311.opt-1.pyc1094220644editdlrm
ast.cpython-311.opt-2.pyc1010510644editdlrm
ast.cpython-311.pyc1096830644editdlrm
asynchat.cpython-311.opt-1.pyc119060644editdlrm
asynchat.cpython-311.opt-2.pyc105500644editdlrm
asynchat.cpython-311.pyc119060644editdlrm
asyncore.cpython-311.opt-1.pyc282080644editdlrm
asyncore.cpython-311.opt-2.pyc270030644editdlrm
asyncore.cpython-311.pyc282080644editdlrm
base64.cpython-311.opt-1.pyc280400644editdlrm
base64.cpython-311.opt-2.pyc234400644editdlrm
base64.cpython-311.pyc284660644editdlrm
bdb.cpython-311.opt-1.pyc386930644editdlrm
bdb.cpython-311.opt-2.pyc293480644editdlrm
bdb.cpython-311.pyc386930644editdlrm
bisect.cpython-311.opt-1.pyc37200644editdlrm
bisect.cpython-311.opt-2.pyc24260644editdlrm
bisect.cpython-311.pyc37200644editdlrm
bz2.cpython-311.opt-1.pyc161820644editdlrm
bz2.cpython-311.opt-2.pyc113000644editdlrm
bz2.cpython-311.pyc161820644editdlrm
calendar.cpython-311.opt-1.pyc447600644editdlrm
calendar.cpython-311.opt-2.pyc405290644editdlrm
calendar.cpython-311.pyc447600644editdlrm
cgi.cpython-311.opt-1.pyc438810644editdlrm
cgi.cpython-311.opt-2.pyc353510644editdlrm
cgi.cpython-311.pyc438810644editdlrm
cgitb.cpython-311.opt-1.pyc189010644editdlrm
cgitb.cpython-311.opt-2.pyc173340644editdlrm
cgitb.cpython-311.pyc189010644editdlrm
chunk.cpython-311.opt-1.pyc74460644editdlrm
chunk.cpython-311.opt-2.pyc53420644editdlrm
chunk.cpython-311.pyc74460644editdlrm
cmd.cpython-311.opt-1.pyc206170644editdlrm
cmd.cpython-311.opt-2.pyc152820644editdlrm
cmd.cpython-311.pyc206170644editdlrm
code.cpython-311.opt-1.pyc139210644editdlrm
code.cpython-311.opt-2.pyc87310644editdlrm
code.cpython-311.pyc139210644editdlrm
codecs.cpython-311.opt-1.pyc452640644editdlrm
codecs.cpython-311.opt-2.pyc299050644editdlrm
codecs.cpython-311.pyc452640644editdlrm
codeop.cpython-311.opt-1.pyc77500644editdlrm
codeop.cpython-311.opt-2.pyc47510644editdlrm
codeop.cpython-311.pyc77500644editdlrm
colorsys.cpython-311.opt-1.pyc49710644editdlrm
colorsys.cpython-311.opt-2.pyc43640644editdlrm
colorsys.cpython-311.pyc49710644editdlrm
compileall.cpython-311.opt-1.pyc216050644editdlrm
compileall.cpython-311.opt-2.pyc183710644editdlrm
compileall.cpython-311.pyc216050644editdlrm
configparser.cpython-311.opt-1.pyc718270644editdlrm
configparser.cpython-311.opt-2.pyc568610644editdlrm
configparser.cpython-311.pyc718270644editdlrm
contextlib.cpython-311.opt-1.pyc330720644editdlrm
contextlib.cpython-311.opt-2.pyc269480644editdlrm
contextlib.cpython-311.pyc330890644editdlrm
contextvars.cpython-311.opt-1.pyc3190644editdlrm
contextvars.cpython-311.opt-2.pyc3190644editdlrm
contextvars.cpython-311.pyc3190644editdlrm
copy.cpython-311.opt-1.pyc112070644editdlrm
copy.cpython-311.opt-2.pyc89240644editdlrm
copy.cpython-311.pyc112070644editdlrm
copyreg.cpython-311.opt-1.pyc81660644editdlrm
copyreg.cpython-311.opt-2.pyc73870644editdlrm
copyreg.cpython-311.pyc82000644editdlrm
cProfile.cpython-311.opt-1.pyc90940644editdlrm
cProfile.cpython-311.opt-2.pyc86310644editdlrm
cProfile.cpython-311.pyc90940644editdlrm
crypt.cpython-311.opt-1.pyc58580644editdlrm
crypt.cpython-311.opt-2.pyc52110644editdlrm
crypt.cpython-311.pyc58580644editdlrm
csv.cpython-311.opt-1.pyc200760644editdlrm
csv.cpython-311.opt-2.pyc180580644editdlrm
csv.cpython-311.pyc200760644editdlrm
dataclasses.cpython-311.opt-1.pyc471940644editdlrm
dataclasses.cpython-311.opt-2.pyc435720644editdlrm
dataclasses.cpython-311.pyc472450644editdlrm
datetime.cpython-311.opt-1.pyc981680644editdlrm
datetime.cpython-311.opt-2.pyc903210644editdlrm
datetime.cpython-311.pyc1013560644editdlrm
decimal.cpython-311.opt-1.pyc5630644editdlrm
decimal.cpython-311.opt-2.pyc5630644editdlrm
decimal.cpython-311.pyc5630644editdlrm
difflib.cpython-311.opt-1.pyc816180644editdlrm
difflib.cpython-311.opt-2.pyc483490644editdlrm
difflib.cpython-311.pyc816680644editdlrm
dis.cpython-311.opt-1.pyc366610644editdlrm
dis.cpython-311.opt-2.pyc323040644editdlrm
dis.cpython-311.pyc367010644editdlrm
doctest.cpython-311.opt-1.pyc1126370644editdlrm
doctest.cpython-311.opt-2.pyc775780644editdlrm
doctest.cpython-311.pyc1130260644editdlrm
enum.cpython-311.opt-1.pyc880160644editdlrm
enum.cpython-311.opt-2.pyc785820644editdlrm
enum.cpython-311.pyc880160644editdlrm
filecmp.cpython-311.opt-1.pyc157300644editdlrm
filecmp.cpython-311.opt-2.pyc131120644editdlrm
filecmp.cpython-311.pyc157300644editdlrm
fileinput.cpython-311.opt-1.pyc211880644editdlrm
fileinput.cpython-311.opt-2.pyc157350644editdlrm
fileinput.cpython-311.pyc211880644editdlrm
fnmatch.cpython-311.opt-1.pyc73450644editdlrm
fnmatch.cpython-311.opt-2.pyc61620644editdlrm
fnmatch.cpython-311.pyc74910644editdlrm
fractions.cpython-311.opt-1.pyc292630644editdlrm
fractions.cpython-311.opt-2.pyc222000644editdlrm
fractions.cpython-311.pyc292630644editdlrm
ftplib.cpython-311.opt-1.pyc476670644editdlrm
ftplib.cpython-311.opt-2.pyc375070644editdlrm
ftplib.cpython-311.pyc476670644editdlrm
functools.cpython-311.opt-1.pyc466550644editdlrm
functools.cpython-311.opt-2.pyc400670644editdlrm
functools.cpython-311.pyc466550644editdlrm
genericpath.cpython-311.opt-1.pyc68580644editdlrm
genericpath.cpython-311.opt-2.pyc57810644editdlrm
genericpath.cpython-311.pyc68580644editdlrm
getopt.cpython-311.opt-1.pyc96850644editdlrm
getopt.cpython-311.opt-2.pyc71440644editdlrm
getopt.cpython-311.pyc97520644editdlrm
getpass.cpython-311.opt-1.pyc75330644editdlrm
getpass.cpython-311.opt-2.pyc63650644editdlrm
getpass.cpython-311.pyc75330644editdlrm
gettext.cpython-311.opt-1.pyc242720644editdlrm
gettext.cpython-311.opt-2.pyc235980644editdlrm
gettext.cpython-311.pyc242720644editdlrm
glob.cpython-311.opt-1.pyc111510644editdlrm
glob.cpython-311.opt-2.pyc102100644editdlrm
glob.cpython-311.pyc112290644editdlrm
graphlib.cpython-311.opt-1.pyc110050644editdlrm
graphlib.cpython-311.opt-2.pyc76110644editdlrm
graphlib.cpython-311.pyc110870644editdlrm
gzip.cpython-311.opt-1.pyc337390644editdlrm
gzip.cpython-311.opt-2.pyc294370644editdlrm
gzip.cpython-311.pyc337390644editdlrm
hashlib.cpython-311.opt-1.pyc123580644editdlrm
hashlib.cpython-311.opt-2.pyc113690644editdlrm
hashlib.cpython-311.pyc123580644editdlrm
heapq.cpython-311.opt-1.pyc205960644editdlrm
heapq.cpython-311.opt-2.pyc175050644editdlrm
heapq.cpython-311.pyc205960644editdlrm
hmac.cpython-311.opt-1.pyc114910644editdlrm
hmac.cpython-311.opt-2.pyc90230644editdlrm
hmac.cpython-311.pyc114910644editdlrm
imaplib.cpython-311.opt-1.pyc668510644editdlrm
imaplib.cpython-311.opt-2.pyc545490644editdlrm
imaplib.cpython-311.pyc690700644editdlrm
imghdr.cpython-311.opt-1.pyc78610644editdlrm
imghdr.cpython-311.opt-2.pyc77010644editdlrm
imghdr.cpython-311.pyc78610644editdlrm
imp.cpython-311.opt-1.pyc164800644editdlrm
imp.cpython-311.opt-2.pyc141930644editdlrm
imp.cpython-311.pyc164800644editdlrm
inspect.cpython-311.opt-1.pyc1412980644editdlrm
inspect.cpython-311.opt-2.pyc1159200644editdlrm
inspect.cpython-311.pyc1416680644editdlrm
io.cpython-311.opt-1.pyc50580644editdlrm
io.cpython-311.opt-2.pyc35680644editdlrm
io.cpython-311.pyc50580644editdlrm
ipaddress.cpython-311.opt-1.pyc996910644editdlrm
ipaddress.cpython-311.opt-2.pyc742470644editdlrm
ipaddress.cpython-311.pyc996910644editdlrm
keyword.cpython-311.opt-1.pyc10900644editdlrm
keyword.cpython-311.opt-2.pyc6810644editdlrm
keyword.cpython-311.pyc10900644editdlrm
linecache.cpython-311.opt-1.pyc74660644editdlrm
linecache.cpython-311.opt-2.pyc62770644editdlrm
linecache.cpython-311.pyc74660644editdlrm
locale.cpython-311.opt-1.pyc644210644editdlrm
locale.cpython-311.opt-2.pyc599750644editdlrm
locale.cpython-311.pyc644210644editdlrm
lzma.cpython-311.opt-1.pyc167390644editdlrm
lzma.cpython-311.opt-2.pyc106440644editdlrm
lzma.cpython-311.pyc167390644editdlrm
mailbox.cpython-311.opt-1.pyc1245350644editdlrm
mailbox.cpython-311.opt-2.pyc1190540644editdlrm
mailbox.cpython-311.pyc1246370644editdlrm
mailcap.cpython-311.opt-1.pyc128050644editdlrm
mailcap.cpython-311.opt-2.pyc112710644editdlrm
mailcap.cpython-311.pyc128050644editdlrm
mimetypes.cpython-311.opt-1.pyc261470644editdlrm
mimetypes.cpython-311.opt-2.pyc202110644editdlrm
mimetypes.cpython-311.pyc261470644editdlrm
modulefinder.cpython-311.opt-1.pyc309370644editdlrm
modulefinder.cpython-311.opt-2.pyc300550644editdlrm
modulefinder.cpython-311.pyc310400644editdlrm
netrc.cpython-311.opt-1.pyc99100644editdlrm
netrc.cpython-311.opt-2.pyc96840644editdlrm
netrc.cpython-311.pyc99100644editdlrm
nntplib.cpython-311.opt-1.pyc501820644editdlrm
nntplib.cpython-311.opt-2.pyc388910644editdlrm
nntplib.cpython-311.pyc501820644editdlrm
ntpath.cpython-311.opt-1.pyc309820644editdlrm
ntpath.cpython-311.opt-2.pyc290330644editdlrm
ntpath.cpython-311.pyc309820644editdlrm
nturl2path.cpython-311.opt-1.pyc35100644editdlrm
nturl2path.cpython-311.opt-2.pyc31040644editdlrm
nturl2path.cpython-311.pyc35100644editdlrm
numbers.cpython-311.opt-1.pyc152720644editdlrm
numbers.cpython-311.opt-2.pyc116780644editdlrm
numbers.cpython-311.pyc152720644editdlrm
opcode.cpython-311.opt-1.pyc138740644editdlrm
opcode.cpython-311.opt-2.pyc137330644editdlrm
opcode.cpython-311.pyc138740644editdlrm
operator.cpython-311.opt-1.pyc187810644editdlrm
operator.cpython-311.opt-2.pyc165640644editdlrm
operator.cpython-311.pyc187810644editdlrm
optparse.cpython-311.opt-1.pyc736320644editdlrm
optparse.cpython-311.opt-2.pyc614140644editdlrm
optparse.cpython-311.pyc737380644editdlrm
os.cpython-311.opt-1.pyc490280644editdlrm
os.cpython-311.opt-2.pyc370000644editdlrm
os.cpython-311.pyc490460644editdlrm
pathlib.cpython-311.opt-1.pyc677420644editdlrm
pathlib.cpython-311.opt-2.pyc593090644editdlrm
pathlib.cpython-311.pyc677420644editdlrm
pdb.cpython-311.opt-1.pyc867100644editdlrm
pdb.cpython-311.opt-2.pyc729700644editdlrm
pdb.cpython-311.pyc868300644editdlrm
pickle.cpython-311.opt-1.pyc866570644editdlrm
pickle.cpython-311.opt-2.pyc808420644editdlrm
pickle.cpython-311.pyc869160644editdlrm
pickletools.cpython-311.opt-1.pyc845770644editdlrm
pickletools.cpython-311.opt-2.pyc756630644editdlrm
pickletools.cpython-311.pyc867530644editdlrm
pipes.cpython-311.opt-1.pyc119880644editdlrm
pipes.cpython-311.opt-2.pyc91650644editdlrm
pipes.cpython-311.pyc119880644editdlrm
pkgutil.cpython-311.opt-1.pyc316000644editdlrm
pkgutil.cpython-311.opt-2.pyc249440644editdlrm
pkgutil.cpython-311.pyc316000644editdlrm
platform.cpython-311.opt-1.pyc437430644editdlrm
platform.cpython-311.opt-2.pyc357840644editdlrm
platform.cpython-311.pyc437430644editdlrm
plistlib.cpython-311.opt-1.pyc458110644editdlrm
plistlib.cpython-311.opt-2.pyc433830644editdlrm
plistlib.cpython-311.pyc459610644editdlrm
poplib.cpython-311.opt-1.pyc209900644editdlrm
poplib.cpython-311.opt-2.pyc161740644editdlrm
poplib.cpython-311.pyc209900644editdlrm
posixpath.cpython-311.opt-1.pyc201990644editdlrm
posixpath.cpython-311.opt-2.pyc185700644editdlrm
posixpath.cpython-311.pyc201990644editdlrm
pprint.cpython-311.opt-1.pyc335300644editdlrm
pprint.cpython-311.opt-2.pyc313790644editdlrm
pprint.cpython-311.pyc335850644editdlrm
profile.cpython-311.opt-1.pyc235060644editdlrm
profile.cpython-311.opt-2.pyc205410644editdlrm
profile.cpython-311.pyc239760644editdlrm
pstats.cpython-311.opt-1.pyc418890644editdlrm
pstats.cpython-311.opt-2.pyc390110644editdlrm
pstats.cpython-311.pyc418890644editdlrm
pty.cpython-311.opt-1.pyc84620644editdlrm
pty.cpython-311.opt-2.pyc77060644editdlrm
pty.cpython-311.pyc84620644editdlrm
pyclbr.cpython-311.opt-1.pyc159000644editdlrm
pyclbr.cpython-311.opt-2.pyc128720644editdlrm
pyclbr.cpython-311.pyc159000644editdlrm
pydoc.cpython-311.opt-1.pyc1582670644editdlrm
pydoc.cpython-311.opt-2.pyc1486430644editdlrm
pydoc.cpython-311.pyc1583270644editdlrm
py_compile.cpython-311.opt-1.pyc107960644editdlrm
py_compile.cpython-311.opt-2.pyc74840644editdlrm
py_compile.cpython-311.pyc107960644editdlrm
queue.cpython-311.opt-1.pyc164750644editdlrm
queue.cpython-311.opt-2.pyc122130644editdlrm
queue.cpython-311.pyc164750644editdlrm
quopri.cpython-311.opt-1.pyc104870644editdlrm
quopri.cpython-311.opt-2.pyc94850644editdlrm
quopri.cpython-311.pyc108790644editdlrm
random.cpython-311.opt-1.pyc345460644editdlrm
random.cpython-311.opt-2.pyc274390644editdlrm
random.cpython-311.pyc345460644editdlrm
reprlib.cpython-311.opt-1.pyc97000644editdlrm
reprlib.cpython-311.opt-2.pyc95500644editdlrm
reprlib.cpython-311.pyc97000644editdlrm
rlcompleter.cpython-311.opt-1.pyc90320644editdlrm
rlcompleter.cpython-311.opt-2.pyc63960644editdlrm
rlcompleter.cpython-311.pyc90320644editdlrm
runpy.cpython-311.opt-1.pyc161380644editdlrm
runpy.cpython-311.opt-2.pyc137230644editdlrm
runpy.cpython-311.pyc161380644editdlrm
sched.cpython-311.opt-1.pyc84240644editdlrm
sched.cpython-311.opt-2.pyc54380644editdlrm
sched.cpython-311.pyc84240644editdlrm
secrets.cpython-311.opt-1.pyc28840644editdlrm
secrets.cpython-311.opt-2.pyc18620644editdlrm
secrets.cpython-311.pyc28840644editdlrm
selectors.cpython-311.opt-1.pyc285610644editdlrm
selectors.cpython-311.opt-2.pyc245310644editdlrm
selectors.cpython-311.pyc285610644editdlrm
shelve.cpython-311.opt-1.pyc138950644editdlrm
shelve.cpython-311.opt-2.pyc97480644editdlrm
shelve.cpython-311.pyc138950644editdlrm
shlex.cpython-311.opt-1.pyc147250644editdlrm
shlex.cpython-311.opt-2.pyc142140644editdlrm
shlex.cpython-311.pyc147250644editdlrm
shutil.cpython-311.opt-1.pyc732660644editdlrm
shutil.cpython-311.opt-2.pyc611190644editdlrm
shutil.cpython-311.pyc732660644editdlrm
signal.cpython-311.opt-1.pyc51280644editdlrm
signal.cpython-311.opt-2.pyc49190644editdlrm
signal.cpython-311.pyc51280644editdlrm
site.cpython-311.opt-1.pyc304950644editdlrm
site.cpython-311.opt-2.pyc250540644editdlrm
site.cpython-311.pyc304950644editdlrm
smtpd.cpython-311.opt-1.pyc436870644editdlrm
smtpd.cpython-311.opt-2.pyc410840644editdlrm
smtpd.cpython-311.pyc436870644editdlrm
smtplib.cpython-311.opt-1.pyc539770644editdlrm
smtplib.cpython-311.opt-2.pyc378080644editdlrm
smtplib.cpython-311.pyc541420644editdlrm
sndhdr.cpython-311.opt-1.pyc124480644editdlrm
sndhdr.cpython-311.opt-2.pyc111190644editdlrm
sndhdr.cpython-311.pyc124480644editdlrm
socket.cpython-311.opt-1.pyc456610644editdlrm
socket.cpython-311.opt-2.pyc371280644editdlrm
socket.cpython-311.pyc457050644editdlrm
socketserver.cpython-311.opt-1.pyc370780644editdlrm
socketserver.cpython-311.opt-2.pyc265100644editdlrm
socketserver.cpython-311.pyc370780644editdlrm
sre_compile.cpython-311.opt-1.pyc8350644editdlrm
sre_compile.cpython-311.opt-2.pyc8350644editdlrm
sre_compile.cpython-311.pyc8350644editdlrm
sre_constants.cpython-311.opt-1.pyc8380644editdlrm
sre_constants.cpython-311.opt-2.pyc8380644editdlrm
sre_constants.cpython-311.pyc8380644editdlrm
sre_parse.cpython-311.opt-1.pyc8310644editdlrm
sre_parse.cpython-311.opt-2.pyc8310644editdlrm
sre_parse.cpython-311.pyc8310644editdlrm
ssl.cpython-311.opt-1.pyc736230644editdlrm
ssl.cpython-311.opt-2.pyc627940644editdlrm
ssl.cpython-311.pyc736230644editdlrm
stat.cpython-311.opt-1.pyc55600644editdlrm
stat.cpython-311.opt-2.pyc49540644editdlrm
stat.cpython-311.pyc55600644editdlrm
statistics.cpython-311.opt-1.pyc581650644editdlrm
statistics.cpython-311.opt-2.pyc386320644editdlrm
statistics.cpython-311.pyc584250644editdlrm
string.cpython-311.opt-1.pyc126600644editdlrm
string.cpython-311.opt-2.pyc115610644editdlrm
string.cpython-311.pyc126600644editdlrm
stringprep.cpython-311.opt-1.pyc264770644editdlrm
stringprep.cpython-311.opt-2.pyc262540644editdlrm
stringprep.cpython-311.pyc265490644editdlrm
struct.cpython-311.opt-1.pyc4020644editdlrm
struct.cpython-311.opt-2.pyc4020644editdlrm
struct.cpython-311.pyc4020644editdlrm
subprocess.cpython-311.opt-1.pyc846890644editdlrm
subprocess.cpython-311.opt-2.pyc727040644editdlrm
subprocess.cpython-311.pyc848310644editdlrm
sunau.cpython-311.opt-1.pyc270260644editdlrm
sunau.cpython-311.opt-2.pyc224340644editdlrm
sunau.cpython-311.pyc270260644editdlrm
symtable.cpython-311.opt-1.pyc193290644editdlrm
symtable.cpython-311.opt-2.pyc168480644editdlrm
symtable.cpython-311.pyc195290644editdlrm
sysconfig.cpython-311.opt-1.pyc317060644editdlrm
sysconfig.cpython-311.opt-2.pyc289960644editdlrm
sysconfig.cpython-311.pyc317060644editdlrm
tabnanny.cpython-311.opt-1.pyc129700644editdlrm
tabnanny.cpython-311.opt-2.pyc120420644editdlrm
tabnanny.cpython-311.pyc129700644editdlrm
tarfile.cpython-311.opt-1.pyc1348880644editdlrm
tarfile.cpython-311.opt-2.pyc1202080644editdlrm
tarfile.cpython-311.pyc1349060644editdlrm
telnetlib.cpython-311.opt-1.pyc311010644editdlrm
telnetlib.cpython-311.opt-2.pyc237660644editdlrm
telnetlib.cpython-311.pyc311010644editdlrm
tempfile.cpython-311.opt-1.pyc421800644editdlrm
tempfile.cpython-311.opt-2.pyc355570644editdlrm
tempfile.cpython-311.pyc421800644editdlrm
textwrap.cpython-311.opt-1.pyc195950644editdlrm
textwrap.cpython-311.opt-2.pyc124630644editdlrm
textwrap.cpython-311.pyc196170644editdlrm
this.cpython-311.opt-1.pyc16180644editdlrm
this.cpython-311.opt-2.pyc16180644editdlrm
this.cpython-311.pyc16180644editdlrm
threading.cpython-311.opt-1.pyc692100644editdlrm
threading.cpython-311.opt-2.pyc512470644editdlrm
threading.cpython-311.pyc703330644editdlrm
timeit.cpython-311.opt-1.pyc164740644editdlrm
timeit.cpython-311.opt-2.pyc106560644editdlrm
timeit.cpython-311.pyc164740644editdlrm
token.cpython-311.opt-1.pyc37450644editdlrm
token.cpython-311.opt-2.pyc37130644editdlrm
token.cpython-311.pyc37450644editdlrm
tokenize.cpython-311.opt-1.pyc303100644editdlrm
tokenize.cpython-311.opt-2.pyc265010644editdlrm
tokenize.cpython-311.pyc303800644editdlrm
trace.cpython-311.opt-1.pyc359840644editdlrm
trace.cpython-311.opt-2.pyc330900644editdlrm
trace.cpython-311.pyc359840644editdlrm
traceback.cpython-311.opt-1.pyc486970644editdlrm
traceback.cpython-311.opt-2.pyc387290644editdlrm
traceback.cpython-311.pyc487430644editdlrm
tracemalloc.cpython-311.opt-1.pyc291060644editdlrm
tracemalloc.cpython-311.opt-2.pyc277380644editdlrm
tracemalloc.cpython-311.pyc291060644editdlrm
tty.cpython-311.opt-1.pyc20470644editdlrm
tty.cpython-311.opt-2.pyc19490644editdlrm
tty.cpython-311.pyc20470644editdlrm
types.cpython-311.opt-1.pyc148410644editdlrm
types.cpython-311.opt-2.pyc134300644editdlrm
types.cpython-311.pyc148410644editdlrm
typing.cpython-311.opt-1.pyc1608440644editdlrm
typing.cpython-311.opt-2.pyc1237180644editdlrm
typing.cpython-311.pyc1616770644editdlrm
uu.cpython-311.opt-1.pyc88170644editdlrm
uu.cpython-311.opt-2.pyc85850644editdlrm
uu.cpython-311.pyc88170644editdlrm
uuid.cpython-311.opt-1.pyc328120644editdlrm
uuid.cpython-311.opt-2.pyc251850644editdlrm
uuid.cpython-311.pyc330890644editdlrm
warnings.cpython-311.opt-1.pyc240700644editdlrm
warnings.cpython-311.opt-2.pyc213730644editdlrm
warnings.cpython-311.pyc250830644editdlrm
wave.cpython-311.opt-1.pyc322870644editdlrm
wave.cpython-311.opt-2.pyc257750644editdlrm
wave.cpython-311.pyc323580644editdlrm
weakref.cpython-311.opt-1.pyc349380644editdlrm
weakref.cpython-311.opt-2.pyc316970644editdlrm
weakref.cpython-311.pyc349790644editdlrm
webbrowser.cpython-311.opt-1.pyc328160644editdlrm
webbrowser.cpython-311.opt-2.pyc304660644editdlrm
webbrowser.cpython-311.pyc328420644editdlrm
xdrlib.cpython-311.opt-1.pyc131640644editdlrm
xdrlib.cpython-311.opt-2.pyc126820644editdlrm
xdrlib.cpython-311.pyc131640644editdlrm
zipapp.cpython-311.opt-1.pyc115610644editdlrm
zipapp.cpython-311.opt-2.pyc104090644editdlrm
zipapp.cpython-311.pyc115610644editdlrm
zipfile.cpython-311.opt-1.pyc1190740644editdlrm
zipfile.cpython-311.opt-2.pyc1093050644editdlrm
zipfile.cpython-311.pyc1191250644editdlrm
zipimport.cpython-311.opt-1.pyc296910644editdlrm
zipimport.cpython-311.opt-2.pyc260040644editdlrm
zipimport.cpython-311.pyc298090644editdlrm
_aix_support.cpython-311.opt-1.pyc43860644editdlrm
_aix_support.cpython-311.opt-2.pyc30530644editdlrm
_aix_support.cpython-311.pyc43860644editdlrm
_bootsubprocess.cpython-311.opt-1.pyc44790644editdlrm
_bootsubprocess.cpython-311.opt-2.pyc42490644editdlrm
_bootsubprocess.cpython-311.pyc44790644editdlrm
_collections_abc.cpython-311.opt-1.pyc512350644editdlrm
_collections_abc.cpython-311.opt-2.pyc452150644editdlrm
_collections_abc.cpython-311.pyc512350644editdlrm
_compat_pickle.cpython-311.opt-1.pyc73500644editdlrm
_compat_pickle.cpython-311.opt-2.pyc73500644editdlrm
_compat_pickle.cpython-311.pyc75350644editdlrm
_compression.cpython-311.opt-1.pyc80690644editdlrm
_compression.cpython-311.opt-2.pyc78630644editdlrm
_compression.cpython-311.pyc80690644editdlrm
_markupbase.cpython-311.opt-1.pyc138360644editdlrm
_markupbase.cpython-311.opt-2.pyc134610644editdlrm
_markupbase.cpython-311.pyc141010644editdlrm
_osx_support.cpython-311.opt-1.pyc199450644editdlrm
_osx_support.cpython-311.opt-2.pyc173550644editdlrm
_osx_support.cpython-311.pyc199450644editdlrm
_pydecimal.cpython-311.opt-1.pyc2442800644editdlrm
_pydecimal.cpython-311.opt-2.pyc1641580644editdlrm
_pydecimal.cpython-311.pyc2442800644editdlrm
_pyio.cpython-311.opt-1.pyc1200930644editdlrm
_pyio.cpython-311.opt-2.pyc977180644editdlrm
_pyio.cpython-311.pyc1201580644editdlrm
_py_abc.cpython-311.opt-1.pyc78230644editdlrm
_py_abc.cpython-311.opt-2.pyc66460644editdlrm
_py_abc.cpython-311.pyc78970644editdlrm
_sitebuiltins.cpython-311.opt-1.pyc54430644editdlrm
_sitebuiltins.cpython-311.opt-2.pyc49160644editdlrm
_sitebuiltins.cpython-311.pyc54430644editdlrm
_strptime.cpython-311.opt-1.pyc279270644editdlrm
_strptime.cpython-311.opt-2.pyc242630644editdlrm
_strptime.cpython-311.pyc279270644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.opt-1.pyc630170644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.opt-2.pyc630170644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.pyc630170644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.opt-1.pyc635040644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.opt-2.pyc635040644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.pyc635040644editdlrm
_threading_local.cpython-311.opt-1.pyc92240644editdlrm
_threading_local.cpython-311.opt-2.pyc59150644editdlrm
_threading_local.cpython-311.pyc92240644editdlrm
_weakrefset.cpython-311.opt-1.pyc131590644editdlrm
_weakrefset.cpython-311.opt-2.pyc131590644editdlrm
_weakrefset.cpython-311.pyc131590644editdlrm
__future__.cpython-311.opt-1.pyc49330644editdlrm
__future__.cpython-311.opt-2.pyc28850644editdlrm
__future__.cpython-311.pyc49330644editdlrm
__hello__.cpython-311.opt-1.pyc10970644editdlrm
__hello__.cpython-311.opt-2.pyc10430644editdlrm
__hello__.cpython-311.pyc10970644editdlrm
Edit: /opt/alt/python-internal/lib64/python3.11/__pycache__/difflib.cpython-311.pyc (81668B)
!A?hlEdZgdZddlmZddlmZddlm 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 4/opt/alt/python-internal/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