/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.pyc722240644editdlrm
configparser.cpython-311.opt-2.pyc572580644editdlrm
configparser.cpython-311.pyc722240644editdlrm
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.pyc207450644editdlrm
csv.cpython-311.opt-2.pyc187270644editdlrm
csv.cpython-311.pyc207450644editdlrm
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.pyc478130644editdlrm
ftplib.cpython-311.opt-2.pyc376530644editdlrm
ftplib.cpython-311.pyc478130644editdlrm
functools.cpython-311.opt-1.pyc466490644editdlrm
functools.cpython-311.opt-2.pyc400610644editdlrm
functools.cpython-311.pyc466490644editdlrm
genericpath.cpython-311.opt-1.pyc68520644editdlrm
genericpath.cpython-311.opt-2.pyc57750644editdlrm
genericpath.cpython-311.pyc68520644editdlrm
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.pyc670970644editdlrm
imaplib.cpython-311.opt-2.pyc547950644editdlrm
imaplib.cpython-311.pyc693160644editdlrm
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.pyc996850644editdlrm
ipaddress.cpython-311.opt-2.pyc742410644editdlrm
ipaddress.cpython-311.pyc996850644editdlrm
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.pyc294050644editdlrm
ntpath.cpython-311.opt-2.pyc274560644editdlrm
ntpath.cpython-311.pyc294050644editdlrm
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.pyc460230644editdlrm
plistlib.cpython-311.opt-2.pyc435950644editdlrm
plistlib.cpython-311.pyc461730644editdlrm
poplib.cpython-311.opt-1.pyc211660644editdlrm
poplib.cpython-311.opt-2.pyc163500644editdlrm
poplib.cpython-311.pyc211660644editdlrm
posixpath.cpython-311.opt-1.pyc201890644editdlrm
posixpath.cpython-311.opt-2.pyc185600644editdlrm
posixpath.cpython-311.pyc201890644editdlrm
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.pyc723490644editdlrm
shutil.cpython-311.opt-2.pyc602020644editdlrm
shutil.cpython-311.pyc723490644editdlrm
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.pyc1364490644editdlrm
tarfile.cpython-311.opt-2.pyc1212470644editdlrm
tarfile.cpython-311.pyc1364670644editdlrm
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.pyc339610644editdlrm
webbrowser.cpython-311.opt-2.pyc315450644editdlrm
webbrowser.cpython-311.pyc339870644editdlrm
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.pyc1203850644editdlrm
zipfile.cpython-311.opt-2.pyc1106160644editdlrm
zipfile.cpython-311.pyc1204360644editdlrm
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.pyc627620644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.opt-2.pyc627620644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311.pyc627620644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.opt-1.pyc632490644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.opt-2.pyc632490644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-311.pyc632490644editdlrm
_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.opt-1.pyc (81612B)
§ ƒ- CÁyWãó„—dZgd¢ZddlmZddlmZddlm Z edd¦«Z d„Z Gd „d ¦«Z d+d „Z d„ZGd„d¦«ZddlZejd¦«jfd„Zd,d„Zd„Z d-d„Zd„Z d-d„Zd„Z d.d„Zdefd „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_matchesÚndiffÚrestoreÚSequenceMatcherÚDifferÚIS_CHARACTER_JUNKÚ IS_LINE_JUNKÚ context_diffÚ unified_diffÚ diff_bytesÚHtmlDiffÚMatché)Únlargest)Ú namedtuple)Ú GenericAliasr za b sizecó—|rd|z|z SdS)Ng@çð?©)ÚmatchesÚlengths ú./opt/alt/python311/lib64/python3.11/difflib.pyÚ_calculate_ratior's€Ø ð&Ø�W‰}˜vÑ%Ð%Ø ˆ3ócóv—eZdZdZdd„Zd„Zd„Zd„Zd „Zdd „Z d „Z d „Z dd„Z d„Z d„Zd„Zee¦«ZdS)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. NÚTcój—||_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)ÚisjunkÚaÚbÚautojunkÚset_seqs)Úselfrrrr s rÚ__init__zSequenceMatcher.__init__xs;€ðvˆŒ ØÐˆŒ�”Ø ˆŒ Ø � Š �a˜ÑÔÐÐÐrcóZ—| |¦«| |¦«dS)z›Set the two sequences to be compared. >>> s = SequenceMatcher() >>> s.set_seqs("abcd", "bcde") >>> s.ratio() 0.75 N)Úset_seq1Úset_seq2)r"rrs rr!zSequenceMatcher.set_seqs¸s.€ð � Š �aÑÔÐØ � Š �aÑÔÐÐÐrcóF—||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)rÚmatching_blocksÚopcodes)r"rs rr%zSequenceMatcher.set_seq1Äs.€ð* �”ˆ;ˆ;Ø ˆF؈ŒØ.2Ð2ˆÔ˜tœ|˜|˜|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_seq2ÞsG€ð* �”ˆ;ˆ;Ø ˆF؈ŒØ.2Ð2ˆÔ˜tœ|؈ŒØ �ŠÑÔÐÐÐrcón—|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)NéÈédé)rÚb2jÚ enumerateÚ setdefaultÚappendÚsetÚbjunkrÚkeysÚaddÚbpopularÚlenr Úitems) r"rr1ÚiÚeltÚindicesÚjunkrÚpopularÚnÚntestÚidxss rÚ __chain_bzSequenceMatcher.__chain_b ss€ð ŒFˆØÐˆŒ�3å ‘l”lð ð ‰FˆAˆsØ—n’n S¨"Ñ-Ô-ˆGØ �NŠN˜1Ñ Ô Ð Ð õ ™EœEÐ!ˆŒ �TØ”ˆØ ð Ø—x’x‘z”zð "ð "�Ø�6˜#‘;”;ð"Ø—H’H˜S‘M”M�MøØð ð �ؘ�H�Hõ#&¡%¤%Ð'ˆŒ ˜Ý �‰FŒFˆØ Œ=ð ˜Q #šX˜Xؘ‘H˜q‘LˆEØ ŸYšY™[œ[ð %ð %‘ ��TÝ�t‘9”9˜uÒ$Ð$Ø—K’K Ñ$Ô$Ð$øØð ð �ؘ�H�Hð  ð ˜X˜Xð  ð rrcóº—|j|j|j|jjf\}}}}|€t |¦«}|€t |¦«}||d} } } i} g} t ||¦«D]j}| j}i}| ||| ¦«D]@}||krŒ ||krn0||dz d¦«dzx}||<|| kr||z dz||z dz|} } } ŒA|} Œk| |kry| |krs||| dz ¦«s_|| dz || dz krG| dz | dz | dz} } } | |kr2| |kr,||| dz ¦«s|| dz || dz k°G| | z|krx| | z|kro||| | z¦«s[|| | z|| | zkrC| dz } | | z|kr5| | z|kr,||| | z¦«s|| | z|| | zk°C| |kry| |krs||| dz ¦«r_|| dz || dz krG| dz | dz | dz} } } | |kr2| |kr,||| dz ¦«r|| dz || dz k°G| | z|krx| | z|kro||| | z¦«r[|| | z|| | zkrC| dz} | | z|kr5| | z|kr,||| | z¦«r|| | z|| | zk°Ct| | | ¦«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:ÚrangeÚgetr )r"ÚaloÚahiÚbloÚbhirrr1ÚisbjunkÚbestiÚbestjÚbestsizeÚj2lenÚnothingr<Új2lengetÚnewj2lenÚjÚks rÚfind_longest_matchz"SequenceMatcher.find_longest_match1sá€ðt"œV T¤V¨T¬X°t´zÔ7NÐNшˆ1ˆc�7Ø ˆ;Ý�a‘&”&ˆCØ ˆ;Ý�a‘&”&ˆCØ!$ c¨1�hˆuˆðˆØˆÝ�s˜C‘”ð ð ˆAð”yˆH؈HØ—W’W˜Q˜qœT 7Ñ+Ô+ð =ð =�à�s’7�7ØØ˜’8�8Ø�EØ"* (¨1¨Q©3°Ñ"2Ô"2°QÑ"6Ð6��H˜Q‘KØ�x’<�<Ø-.¨q©S°©U°A°a±C¸±E¸1 (˜5�EøØˆEˆEð �cŠkˆk˜e cšk˜kØ�'˜!˜E !™Gœ*Ñ%Ô%ð*à��a‘Œj˜A˜e A™gœJÒ&Ð&Ø%*¨1¡W¨e°A©g°xÀ±z˜(�5ˆEð�cŠkˆk˜e cšk˜kØ�'˜!˜E !™Gœ*Ñ%Ô%ð*à��a‘Œj˜A˜e A™gœJÒ&Ð&à�H‰n˜sÒ"Ð" u¨X¡~¸Ò';Ð';Ø�'˜!˜E (™NÔ+Ñ,Ô,ð(<à��h‘Ô 1 U¨8¡^Ô#4Ò4Ð4Ø ˜‰MˆHð�H‰n˜sÒ"Ð" u¨X¡~¸Ò';Ð';Ø�'˜!˜E (™NÔ+Ñ,Ô,ð(<à��h‘Ô 1 U¨8¡^Ô#4Ò4Ð4ð�cŠkˆk˜e cšk˜k؈g�a˜˜a™”jÑ!Ô!ð*à��a‘Œj˜A˜e A™gœJÒ&Ð&Ø%*¨1¡W¨e°A©g°xÀ±z˜(�5ˆEð�cŠkˆk˜e cšk˜k؈g�a˜˜a™”jÑ!Ô!ð*à��a‘Œj˜A˜e A™gœJÒ&Ð&à�H‰n˜sÒ"Ð" u¨X¡~¸Ò';Ð';؈g�a˜˜h™Ô'Ñ(Ô(ð(<à��h‘Ô 1 U¨8¡^Ô#4Ò4Ð4Ø !‘|ˆHð�H‰n˜sÒ"Ð" u¨X¡~¸Ò';Ð';؈g�a˜˜h™Ô'Ñ(Ô(ð(<à��h‘Ô 1 U¨8¡^Ô#4Ò4Ð4õ�U˜E 8Ñ,Ô,Ð,rcóT—|j�|jSt|j¦«t|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¦«| ||df¦«tttj |¦«¦«|_|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:rrÚpoprWr4ÚsortÚlistÚmapr Ú_make)r"ÚlaÚlbÚqueuer(rIrJrKrLr<rUrVÚxÚi1Új1Úk1Ú non_adjacentÚi2Új2Úk2s rÚget_matching_blocksz#SequenceMatcher.get_matching_blocks¥s€ð& Ô Ð +ØÔ'Ð 'Ý�T”V‘”�c $¤&™kœkˆBˆð�R˜˜B�Ð ˆØˆØð 7Ø!&§¢¡¤Ñ ˆC��c˜3Ø×1Ò1°#°s¸CÀÑEÔEÐ E‰GˆAˆq�!�aðð 7Ø×&Ò& qÑ)Ô)Ð)ؘ’7�7˜s Qšw˜wØ—L’L # q¨#¨qÐ!1Ñ2Ô2Ð2Ø�Q‘3˜’9�9  1¡ s¢ Ø—L’L ! A¡# s¨A¨a©C°Ð!5Ñ6Ô6Ð6ðð 7ð ×ÒÑÔÐð ЈЈR�"؈ Ø)ð (ð (‰JˆB��Bà�B‰w˜"Š}ˆ}  b¡¨B¢ ð�b‘��ð ð6Ø ×'Ò'¨¨R°¨ Ñ5Ô5Ð5Ø  R˜�B��Ø ð .Ø × Ò   R¨  Ñ -Ô -Ð -à×Ò˜b " a˜[Ñ*Ô*Ð*Ý#¥C­¬ °\Ñ$BÔ$BÑCÔCˆÔØÔ#Ð#rcó:—|j�|jSdx}}gx|_}| ¦«D]j\}}}d}||kr ||krd}n||krd}n||krd}|r| |||||f¦«||z||z}}|r| d||||f¦«Œk|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) NrrÚreplaceÚdeleteÚinsertÚequal)r)rir4)r"r<rUÚanswerÚaiÚbjÚsizeÚtags rÚ get_opcodeszSequenceMatcher.get_opcodesìsê€ð: Œ<Ð #Ø”<Р؈ ˆˆAØ "Ð"ˆŒ �vØ ×4Ò4Ñ6Ô6ð 9ð 9‰LˆB��Dð ˆCØ�2Švˆv˜!˜bš&˜&Ø��Ø�R’�Ø��Ø�R’�Ø�Øð 5Ø— ’   Q¨¨A¨rÐ2Ñ4Ô4Ð4Ø�d‘7˜B˜t™GˆqˆAðð 9Ø— ’  ¨¨Q°°AÐ6Ñ8Ô8Ð8øØˆ réc #óK—| ¦«}|sdg}|dddkr:|d\}}}}}|t|||z ¦«|t|||z ¦«|f|d<|dddkr:|d\}}}}}||t|||z¦«|t|||z¦«f|d<||z}g} |D]™\}}}}}|dkrq||z |krh|  ||t|||z¦«|t|||z¦«f¦«| V—g} t|||z ¦«t|||z ¦«}}|  |||||f¦«Œš| r+t | ¦«dkr| dddks| V—dSdSdS)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)]] )rnrr0rr0rrnéÿÿÿÿr0N)rtÚmaxÚminr4r:) r"rAÚcodesrsrbrfrcrgÚnnÚgroups rÚget_grouped_opcodesz#SequenceMatcher.get_grouped_opcodes#s×èè€ð2× Ò Ñ"Ô"ˆØð ,Ø*Ð+ˆEà �Œ8�AŒ;˜'Ò !Ð !Ø"'¨¤(Ñ ˆC��R˜˜RØ�C  B q¡D™MœM¨2­s°2°r¸!±t©}¬}¸bÐ@ˆE�!‰HØ �Œ9�QŒ<˜7Ò "Ð "Ø"'¨¤)Ñ ˆC��R˜˜RؘR¥ R¨¨A©¡¤°µC¸¸B¸q¹D±M´MÐAˆE�"‰Ià �‰UˆØˆØ#(ð 0ð 0Ñ ˆC��R˜˜Rð�gŠ~ˆ~ " R¡%¨"¢* *Ø— ’ ˜c 2¥s¨2¨r°!©t¡}¤}°b½#¸bÀ"ÀQÁ$¹-¼-ÐHÑIÔIÐIØ� � � Ø�ݘR  A¡™œ­¨B°°1±© ¬ �B�Ø �LŠL˜#˜r 2 r¨2Ð.Ñ /Ô /Ð /Ð /Ø ð �#˜e™*œ* aš-˜-¨E°!¬H°Q¬K¸7Ò,BÐ,B؈KˆKˆKˆKˆKð ð Ð,BÐ,BrcóÆ—td„| ¦«D¦«¦«}t|t|j¦«t|j¦«z¦«S)aÒReturn 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)Ú.0Útriples rú z(SequenceMatcher.ratio..ks&èè€ÐJÐJ V�f˜R”jÐJÐJÐJÐJÐJÐJr)Úsumrirr:rr)r"rs rÚratiozSequenceMatcher.ratioUsQ€õ,ÐJÐJ¨t×/GÒ/GÑ/IÔ/IÐJÑJÔJÑJÔJˆÝ ­¨T¬V©¬µs¸4¼6±{´{Ñ)BÑCÔCÐCrcóŽ—|j€/ix|_}|jD]}| |d¦«dz||<Œ|j}i}|jd}}|jD]?}||¦«r ||}n| |d¦«}|dz ||<|dkr|dz}Œ@t |t |j¦«t |j¦«z¦«S)z©Return 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=ÚavailÚavailhasrÚnumbs rÚ quick_ratiozSequenceMatcher.quick_rationså€ð Œ?Ð "Ø+-Ð -ˆDŒO˜jØ”vð =ð =�Ø",§.¢.°°aÑ"8Ô"8¸1Ñ"<� ˜3‘�Ø”_ˆ ðˆØ!Ô.°�'ˆØ”6ð &ð &ˆC؈x˜‰}Œ}ð .ؘS”z��à!—~’~ c¨1Ñ-Ô-�Ø ™ˆE�#‰JØ�aŠxˆxØ! A™+�øÝ ­¨T¬V©¬µs¸4¼6±{´{Ñ)BÑCÔCÐCrcó”—t|j¦«t|j¦«}}tt ||¦«||z¦«S)zÊReturn 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 rÚreal_quick_ratioz SequenceMatcher.real_quick_ratio‹s;€õ�T”V‘”�c $¤&™kœkˆBˆõ ¥ B¨¡ ¤ ¨R°"©WÑ5Ô5Ð5r)NrrT)rNrN)ru)Ú__name__Ú __module__Ú __qualname__Ú__doc__r#r!r%r&r,rWrirtr}r„r‰r‹Ú classmethodrÚ__class_getitem__rrrrr,s€€€€€ðHðHðT>ð>ð>ð>ð@ ð ð ð3ð3ð3ð4ðððX%ð%ð%ðNr-ðr-ðr-ðr-ðhE$ðE$ðE$ðN5ð5ð5ðn0ð0ð0ð0ðdDðDðDð2DðDðDð: 6ð 6ð 6ð$˜  LÑ1Ô1ÐÐÐrrruç333333ã?có —|dkstd|›�¦«‚d|cxkrdksntd|›�¦«‚g}t¦«}| |¦«|D]ˆ}| |¦«| ¦«|krY| ¦«|krA| ¦«|kr)| | ¦«|f¦«Œ‰t||¦«}d„|D¦«S)aÇUse 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]: có—g|]\}}|‘ŒSrr)r€Úscoreras rú z%get_close_matches..Ès€Ð %Ð %Ð %‘(�%˜ˆAÐ %Ð %Ð %r) Ú ValueErrorrr&r%r‹r‰r„r4Ú _nlargest)ÚwordÚ possibilitiesrAÚcutoffÚresultÚsras rrršs€ð: �Š6ˆ6݈j°°Ð3Ñ4Ô4Ð4Ø �&Ð Ð Ò Ð ˜CÒ Ð Ð Ð Ýˆj¸v¸vÐGÑHÔHÐHØ €FÝÑÔ€A؇J‚JˆtÑÔÐØ ð*ð*ˆØ � Š �1‰ Œ ˆ Ø × Ò Ñ Ô  6Ò )Ð )Ø �=Š=‰?Œ?˜fÒ $Ð $Ø �7Š7‰9Œ9˜Ò Ð Ø �MŠM˜1Ÿ7š7™9œ9 a˜.Ñ )Ô )Ð )øõ�q˜&Ñ !Ô !€Fà %Ð %˜fÐ %Ñ %Ô %Ð%rcó\—d d„t||¦«D¦«¦«S)zAReplace whitespace with the original whitespace characters in `s`rc3óXK—|]%\}}|dkr| ¦«r|n|V—Œ&dS)ú N)Úisspace)r€ÚcÚtag_cs rr‚z$_keep_original_ws..ÍsRèè€ððá ˆAˆuð�cŠ\ˆ\˜aŸiši™kœkˆ\ˆˆ¨uððððððr)ÚjoinÚzip)r�Útag_ss rÚ_keep_original_wsr§Ës<€à �7Š7ððå˜A˜u™ œ ðñôñ ô ðrcó>—eZdZdZd d„Zd„Zd„Zd„Zd„Zd„Z 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. N©ÚlinejunkÚcharjunk)r"r«r¬s rr#zDiffer.__init__*s€ð(!ˆŒ Ø ˆŒ ˆ ˆ rc #ó K—t|j||¦«}| ¦«D] \}}}}}|dkr| ||||||¦«} no|dkr| d|||¦«} nP|dkr| d|||¦«} n1|dkr| d|||¦«} nt d|›�¦«‚| Ed {V—†Œ¡d 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)rr«rtÚ_fancy_replaceÚ_dumpr—) r"rrÚcruncherrsrIrJrKrLÚgs rÚcomparezDiffer.compareAsèè€õ4# 4¤=°!°QÑ7Ô7ˆØ'/×';Ò';Ñ'=Ô'=ð ð Ñ #ˆC��c˜3 Ø�iÒÐØ×'Ò'¨¨3°°Q¸¸SÑAÔA��ؘ’�Ø—J’J˜s A s¨CÑ0Ô0��ؘ’�Ø—J’J˜s A s¨CÑ0Ô0��ؘ’�Ø—J’J˜s A s¨CÑ0Ô0��å �j°S°SÐ!:Ñ;Ô;Ð;àˆLˆLˆLˆLˆLˆLˆLˆLð ð rc#óNK—t||¦«D]}|›d||›�V—ŒdS)z4Generate comparison results for a same-tagged range.r N)rG)r"rsraÚloÚhir<s rr²z Differ._dumpjsEèè€å�r˜2‘”ð (ð (ˆAØ ˜S˜S ! A¤$ $Ð'Ð 'Ð 'Ð 'Ð 'ð (ð (rc#óK—||z ||z kr1| d|||¦«}| d|||¦«}n0| d|||¦«}| d|||¦«}||fD] } | Ed{V—†Œ dS)Nr¯r®)r²) r"rrIrJrrKrLÚfirstÚsecondr´s rÚ_plain_replacezDiffer._plain_replaceos©èè€ð �‰9�s˜S‘yÒ Ð Ø—Z’Z  Q¨¨SÑ1Ô1ˆEØ—Z’Z  Q¨¨SÑ1Ô1ˆFˆFà—Z’Z  Q¨¨SÑ1Ô1ˆEØ—Z’Z  Q¨¨SÑ1Ô1ˆFà˜�ð ð ˆA؈LˆLˆLˆLˆLˆLˆLˆLð ð rc#ó~K—d\}}t|j¦«} d\} } t||¦«D]¼} || } |  | ¦«t||¦«D]Œ}||}|| kr| €|| } } Œ|  |¦«|  ¦«|krH|  ¦«|kr0|  ¦«|kr|  ¦«|| }}}Œ�Œ½||kr+| €"| ||||||¦«Ed{V—†dS| | 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{V—†nd|zV—|  ||dz|||dz|¦«Ed{V—†dS)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 ? ^ ^ ^ )g®Gáz®ç?gè?©NNNrrrkú^rlr®rmr¯rnr r°ú r0)rr¬rGr&r%r‹r‰r„r¼Ú _fancy_helperr!rtr—Ú_qformat)r"rrIrJrrKrLÚ best_ratior›r³ÚeqiÚeqjrUrqr<rpÚbest_iÚbest_jÚaeltÚbeltÚatagsÚbtagsrsÚai1Úai2Úbj1Úbj2r^r_s rr±zDiffer._fancy_replace}s+èè€ð*(ш �FÝ" 4¤=Ñ1Ô1ˆØ‰ˆˆSõ �s˜C‘”ð Hð HˆAØ�1”ˆBØ × Ò ˜bÑ !Ô !Ð !ݘ3 ‘_”_ð Hð H�Ø�q”T�ؘ’8�8Ø�{Ø#$ a˜S˜ØØ×!Ò! "Ñ%Ô%Ð%ð×,Ò,Ñ.Ô.°Ò;Ð;Ø×*Ò*Ñ,Ô,¨zÒ9Ð9Ø—n’nÑ&Ô&¨Ò3Ð3Ø19·²Ñ1AÔ1AÀ1Àa¨ �Jøð! Hð" ˜Ò Ð àˆ{à×.Ò.¨q°#°s¸A¸sÀCÑHÔHÐHÐHÐHÐHÐHÐHÐHØ�à),¨c°3˜J�FˆFˆFðˆCð ×%Ò% a¨¨f°a¸¸fÑEÔEÐEÐEÐEÐEÐEÐEÐEð�v”Y  &¤ ˆdˆØ ˆ;àÐ ˆE�EØ × Ò ˜d DÑ )Ô )Ð )Ø+3×+?Ò+?Ñ+AÔ+Að @ð @Ñ'��S˜#˜s Cؘs™ C¨#¡I�B�ؘ)Ò#Ð#ؘS 2™XÑ%�EؘS 2™XÑ%�E�EؘH’_�_ؘS 2™XÑ%�E�EؘH’_�_ؘS 2™XÑ%�E�EؘG’^�^ؘS 2™XÑ%�EؘS 2™XÑ%�E�Eå$˜*¸¸Ð%>Ñ?Ô?Ð?Ø—}’} T¨4°¸Ñ>Ô>Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ð >ð˜‘+Ð Ð Ð ð×%Ò% a¨°©°3¸¸6À!¹8ÀSÑIÔIÐIÐIÐIÐIÐIÐIÐIÐIÐIrc#óÚK—g}||kr:||kr| ||||||¦«}n7| d|||¦«}n||kr| d|||¦«}|Ed{V—†dS)Nr®r¯)r±r²)r"rrIrJrrKrLr´s rrÁzDiffer._fancy_helperÛsŠèè€Ø ˆØ �Š9ˆ9Ø�SŠyˆyØ×'Ò'¨¨3°°Q¸¸SÑAÔA��à—J’J˜s A s¨CÑ0Ô0��Ø �3ŠYˆYØ— ’ ˜3  3¨Ñ,Ô,ˆAàˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ rc#óÚK—t||¦« ¦«}t||¦« ¦«}d|zV—|rd|›d�V—d|zV—|r d|›d�V—dSdS)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)r§Úrstrip)r"ÚalineÚblinerÊrËs rrÂzDiffer._qformatçs¦èè€õ " %¨Ñ/Ô/×6Ò6Ñ8Ô8ˆÝ! %¨Ñ/Ô/×6Ò6Ñ8Ô8ˆà�U‰lÐÐÐØ ð !Ø �u�.�.�.Ð Ð Ð à�U‰lÐÐÐØ ð !Ø �u�.�.�.Ð Ð Ð Ð Ð ð !ð !rr¾) rŒr�rŽr�r#rµr²r¼r±rÁrÂrrrrrÔs—€€€€€ðSðSðj!ð!ð!ð!ð.'ð'ð'ð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)ÚlineÚpats rrrs€ð ˆ3ˆt‰9Œ9˜DÐ Ð 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)ÚchÚwss rrr%s €ð �ˆ8€Orcó†—|dz}||z }|dkrd |¦«S|s|dz}d ||¦«S©z Convert range to the "ed" formatr0z{}z{},{}©Úformat©ÚstartÚstopÚ beginningrs rÚ_format_range_unifiedrç<sV€ð˜‘ €IØ �E‰\€FØ �‚{€{Ø�{Š{˜9Ñ%Ô%Ð%Ø ðØ�Q‰ˆ Ø �>Š>˜) VÑ ,Ô ,Ð,rrrÓc #óÈK—t|||||||¦«d}td||¦« |¦«D�]"} |sfd}|rd |¦«nd} |rd |¦«nd} d || |¦«V—d || |¦«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 +++ {}{}{}rrwr0éruéz@@ -{} +{} @@{}rnr >rlrkr®>rmrkr¯)Ú _check_typesrr}rârç)rrÚfromfileÚtofileÚ fromfiledateÚ tofiledaterAÚlinetermÚstartedr|ÚfromdateÚtodaterºÚlastÚ file1_rangeÚ file2_rangersrbrfrcrgrÙs rr r Gsúèè€õR��A�x ¨°zÀ8ÑLÔLÐLØ€GÝ   a¨Ñ*Ô*×>Ò>¸qÑAÔAð%ñ%ˆØð @؈GØ6BÐJ�v—}’} \Ñ2Ô2Ð2ȈHØ2<ÐD�V—]’] :Ñ.Ô.Ð.À"ˆFØ×%Ò% h°¸(ÑCÔCÐ CÐ CÐ CØ×%Ò% f¨f°hÑ?Ô?Ð ?Ð ?Ð ?à˜A”h  b¤ ˆtˆÝ+¨E°!¬H°d¸1´gÑ>Ô>ˆ Ý+¨E°!¬H°d¸1´gÑ>Ô>ˆ Ø×&Ò& {°KÀÑJÔJÐJÐJÐJà#(ð %ð %Ñ ˆC��R˜˜RØ�gŠ~ˆ~ؘb ˜eœHð%ð%�DØ ™*Ð$Ð$Ð$Ð$ØØÐ+Ð+Ð+ؘb ˜eœHð%ð%�DØ ™*Ð$Ð$Ð$Ð$ØÐ+Ð+Ð+ؘb ˜eœHð%ð%�DØ ™*Ð$Ð$Ð$Ð$øñ %ð%ð%rcó’—|dz}||z }|s|dz}|dkrd |¦«Sd |||zdz ¦«Sràrárãs rÚ_format_range_contextrú�s`€ð˜‘ €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 rÔrÒz! rÀ)rmrlrkrnFNTrérz *** {}{}{}rêrrwz***************r0rëz *** {} ****{}c3ó*K—|]\}}}}}|dvV—ŒdS)>rlrkNr©r€rsÚ_s rr‚zcontext_diff..Ùó2èè€ÐIÐI±°°Q¸¸1¸aˆsÐ+Ð+ÐIÐIÐIÐIÐIÐIrrmrurìz --- {} ----{}c3ó*K—|]\}}}}}|dvV—ŒdS)>rmrkNrrýs rr‚zcontext_diff..ârÿrrl)ríÚdictrr}rârúÚany)rrrîrïrðrñrAròÚprefixrór|rôrõrºrör÷rsrbrfrþrÙrørcrgs rr r œs^èè€õX��A�x ¨°zÀ8ÑLÔLÐLÝ ˜ d°DÀÐ EÑ EÔ E€FØ€GÝ   a¨Ñ*Ô*×>Ò>¸qÑAÔAð1ñ1ˆØð @؈GØ6BÐJ�v—}’} \Ñ2Ô2Ð2ȈHØ2<ÐD�V—]’] :Ñ.Ô.Ð.À"ˆFØ×%Ò% h°¸(ÑCÔCÐ CÐ CÐ CØ×%Ò% f¨f°hÑ?Ô?Ð ?Ð ?Ð ?à˜A”h  b¤ ˆtˆØ (Ñ*Ð*Ð*Ð*å+¨E°!¬H°d¸1´gÑ>Ô>ˆ Ø×$Ò$ [°(Ñ;Ô;Ð;Ð;Ð;å ÐIÐIÀ5ÐIÑIÔIÑ IÔ Ið 1Ø%*ð 1ð 1Ñ!��R˜˜Q Ø˜(’?�?Ø ! " R %¤ð1ð1˜Ø$ Sœk¨DÑ0Ð0Ð0Ð0Ð0øå+¨E°!¬H°d¸1´gÑ>Ô>ˆ Ø×$Ò$ [°(Ñ;Ô;Ð;Ð;Ð;å ÐIÐIÀ5ÐIÑIÔIÑ IÔ Ið 1Ø%*ð 1ð 1Ñ!��Q˜˜2˜rؘ(’?�?Ø ! " R %¤ð1ð1˜Ø$ Sœk¨DÑ0Ð0Ð0Ð0Ð0øùð71ð1rcó¢—|rOt|dt¦«s4tdt|d¦«j›d|d›d�¦«‚|rOt|dt¦«s4tdt|d¦«j›d|d›d�¦«‚|D])}t|t¦«std|›�¦«‚Œ*dS)Nrz"lines to compare must be str, not ú (ú)z all arguments must be str, not: )Ú isinstanceÚstrÚ TypeErrorÚtyperŒ)rrÚargsÚargs rríríèsû€ð ð5•˜A˜aœD¥#Ñ&Ô&ð5݈iݘa œd™œÔ,Ð,Ð,¨a°¬d¨d¨dð4ñ5ô5ð 5àð5•˜A˜aœD¥#Ñ&Ô&ð5݈iݘa œd™œÔ,Ð,Ð,¨a°¬d¨d¨dð4ñ5ô5ð 5àðKðKˆÝ˜#�sÑ#Ô#ð KÝ�)ÀCÀCÐIÑJÔJÐ Jð KðKðKrró c #óPK—d„} tt| |¦«¦«}tt| |¦«¦«}| |¦«}| |¦«}| |¦«}| |¦«}| |¦«}|||||||||¦«} | D]} |  dd¦«V—ŒdS)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óª— | dd¦«S#t$r0}dt|¦«j›d|›d�}t |¦«|‚d}~wwxYw)NÚasciiÚsurrogateescapez!all arguments must be bytes, not rr)ÚdecodeÚAttributeErrorr rŒr )r�ÚerrÚmsgs rrzdiff_bytes..decodesm€ð *Ø—8’8˜GÐ%6Ñ7Ô7Ð 7øÝð *ð *ð *ð *嘑G”GÔ$Ð$Ð$ a a að)ˆCå˜C‘.”. cÐ )øøøøð *øøøs‚˜ A¢+A Á ArrN)r[r\Úencode) ÚdfuncrrrîrïrðrñrAròrÚlinesrÙs rr r ùsÞèè€ð*ð*ð*õ �S�˜‰^Œ^ÑÔ€AÝ �S�˜‰^Œ^ÑÔ€A؈v�hÑÔ€HØ ˆV�F‰^Œ^€FØ�6˜,Ñ'Ô'€LØ�˜ Ñ#Ô#€J؈v�hÑÔ€Hà ˆE�!�Q˜ &¨,¸ ÀAÀxÑ PÔ P€EØð6ð6ˆØ�kŠk˜'Ð#4Ñ5Ô5Ð5Ð5Ð5Ð5ð6ð6rcóJ—t||¦« ||¦«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µ)rrr«r¬s rrrs%€õF �(˜HÑ %Ô %× -Ò -¨a°Ñ 3Ô 3Ð3rc#ó6‡‡‡‡K—ddl}|jd¦«Št||||¦«Šddgfˆfd„ Šˆˆfd„Šˆfd„}|¦«}|€ |Ed{V—†dS|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Œ¼) aßReturns 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<|€%||| d¦«dd…fS|dkr“| d¦«| d¦«}}g}|fd„}‰  ||¦«t|¦«D]1\}\} } |d| …dz|z|| | …zdz|| d…z}Œ2|dd…}n,| d¦«dd…}|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ó°—| | d¦«d| ¦«g¦«| d¦«S)Nr0r)r4r|Úspan)Ú match_objectÚsub_infos rÚrecord_sub_infoz3_mdiff.._make_line..record_sub_info‡sL€Ø—’ ×!3Ò!3°AÑ!6Ô!6°qÔ!9¸,×:KÒ:KÑ:MÔ:MÐ NÑOÔOÐOØ#×)Ò)¨!Ñ,Ô,Ð,rúúr )rYÚsubÚreversed) rÚ format_keyÚsideÚ num_linesÚtextÚmarkersr r!ÚkeyÚbeginÚendÚ change_res €rÚ _make_linez_mdiff.._make_linefsWø€ð. �$ˆˆŒ˜1шˆ‰ð Рؘd”O E§I¢I¨a¡L¤L°°°Ô$4Ð5Ð 5à ˜Ò Ð Ø!ŸIšI a™LœL¨%¯)ª)°A©,¬,�'ˆDàˆHØ6>ð -ð -ð -ð -ð �MŠM˜/¨'Ñ 2Ô 2Ð 2õ$,¨HÑ#5Ô#5ð Nð N‘�‘K�U˜3ؘA˜e˜G”} TÑ)¨#Ñ-¨d°5¸°9¬oÑ=¸dÑBÀ4ÈÈÈÄ:ÑM��ؘ˜˜”8ˆDˆDð—9’9˜Q‘<”<   Ô#ˆDðð Ø�à˜*Ñ$ tÑ+¨dÑ2ˆDð˜$” Ð%Ð%rc3ó|•K—g}d\}} t|¦«dkr6| t‰d¦«¦«t|¦«dk°6d d„|D¦«¦«}| d¦«r|}�nç| d¦«r‰|dd ¦«‰|dd ¦«dfV—Œµ| d ¦«r|d z}‰|d d ¦«d dfV—Œâ| d¦«r‰|d d ¦«d }}|d z d }}�nZ| d¦«r‰|d d ¦«‰|dd ¦«dfV—�ŒC| d¦«r‰|dd ¦«‰|d d ¦«dfV—�Œw| d ¦«r|d z}‰|d d ¦«d dfV—�Œ¥| d¦«r|d z }d ‰|dd ¦«dfV—�ŒÓ| d¦«rd ‰|dd ¦«}}|d zd }}nj| d¦«r|d z }d ‰|dd ¦«dfV—�Œ-| d¦«r'‰|d d …d d ¦«‰|d d ¦«dfV—�Œi|d kr|d z }dV—|d k°|d kr|d z}dV—|d k°| d¦«rd S||dfV—�Œ²)a¡Yields 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. )rrTrìÚXrcó—g|] }|d‘Œ S)rr)r€rÙs rr–z2_mdiff.._line_iterator..´s€Ð3Ð3Ð3 T˜˜aœÐ3Ð3Ð3rz-?+?rrr0z--++r®N)z--?+z--+rÒz-+?z-?+z+--r¯)rÔz+-r F)N©rrÓT)r3NT)r:r4Únextr¤Ú startswith)rÚnum_blanks_pendingÚnum_blanks_to_yieldr�Ú from_lineÚto_liner/Údiff_lines_iterators €€rÚ_line_iteratorz_mdiff.._line_iteratoržsäøèè€ðˆØ26Ñ/ÐÐ/ðF -õ�e‘*”*˜q’.�.Ø— ’ �TÐ"5°sÑ;Ô;Ñ<Ô<Ð<õ�e‘*”*˜q’.�.à—’Ð3Ð3¨UÐ3Ñ3Ô3Ñ4Ô4ˆAØ�|Š|˜CÑ Ô ð3 ð'9Ð#Ñ#Ø—’˜fÑ%Ô%ð. à �j  s¨1Ñ-Ô-¨z¨z¸%ÀÀAÑ/FÔ/FÈÐLÐLÐLÐLØØ—’˜fÑ%Ô%ð* ð# aÑ'Ð"Ø �j  s¨1Ñ-Ô-¨t°TÐ9Ð9Ð9Ð9ØØ—’Ð3Ñ4Ô4ð$ ð%/ J¨u°S¸Ñ$;Ô$;¸T˜'� Ø9KÈAÑ9MÈaÐ$6Ð#Ñ#Ø—’˜eÑ$Ô$ð à �j  t¨AÑ.Ô.° ° ¸5ÀÀQÑ0GÔ0GÈÐMÐMÐMÐMÙØ—’˜eÑ$Ô$ð à �j  s¨1Ñ-Ô-¨z¨z¸%ÀÀQÑ/GÔ/GÈÐMÐMÐMÐMÙØ—’˜cÑ"Ô"ð à" aÑ'Ð"Ø �j  s¨1Ñ-Ô-¨t°TÐ9Ð9Ð9Ð9ÙØ—’˜eÑ$Ô$ð ð# aÑ'Ð"ؘJ˜J u¨S°Ñ3Ô3°TÐ9Ð9Ð9Ð9ÙØ—’˜lÑ+Ô+ð à%)¨:¨:°e¸CÀÑ+BÔ+B˜7� Ø9KÈAÑ9MÈaÐ$6Ð#Ð#Ø—’˜cÑ"Ô"ð à" aÑ'Ð"ؘJ˜J u¨S°Ñ3Ô3°TÐ9Ð9Ð9Ð9ÙØ—’˜cÑ"Ô"ð à �j  q q q¤¨$¨qÑ1Ô1°*°*¸UÀ4ÈÑ2JÔ2JÈ5ÐPÐPÐPÐPÙð&¨Ò)Ð)Ø# qÑ(Ð#Ø)Ð)Ð)Ð)ð&¨Ò)Ð)ð&¨Ò)Ð)Ø# qÑ(Ð#Ø)Ð)Ð)Ð)ð&¨Ò)Ð)ð�|Š|˜CÑ Ô ð -Ø�à ¨Ð,Ð,Ð,Ð,ñMF -rc3óâ•K—‰¦«}gg}} t|¦«dkst|¦«dkr~ t|¦«\}}}n#t$rYdSwxYw|�| ||f¦«|�| ||f¦«t|¦«dk°kt|¦«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Ú fromlinesÚtolinesr8r9Ú found_diffÚfromDiffÚto_diffr;s €rÚ_line_pair_iteratorz#_mdiff.._line_pair_iteratorös&øèè€ð'˜Ñ(Ô(ˆ ؘR�'ˆ ð :å�y‘>”> 1Ò$Ð$­¨G© ¬ °aª¨ðÝ59¸-Ñ5HÔ5HÑ2�I˜w¨ ¨ øÝ$ðððØ�F�FðøøøàÐ(Ø×$Ò$ i° Ð%;Ñ<Ô<Ð<ØÐ&Ø—N’N G¨JÐ#7Ñ8Ô8Ð8õ�y‘>”> 1Ò$Ð$­¨G© ¬ °aª¨ð#,§-¢-°Ñ"2Ô"2Ñ ˆI�xØ&Ÿ{š{¨1™~œ~Ñ ˆG�WؘW XÐ%8°Ð9Ð 9Ð 9Ð 9ð :sºAÁ AÁAr0TF)NNN)ÚreÚcompilerr4r=)r?r@Úcontextr«r¬rErDÚline_pair_iteratorÚlines_to_writeÚindexÚ contextLinesrAr8r9r<r;r/r.r:s @@@@rÚ_mdiffrL<suøøøøèè€ðD€I€I€Ið�” Ð+Ñ,Ô,€Iõ   ¨'°(¸8ÑDÔDÐà78¸°eð6&ð6&ð6&ð6&ð6&ð6&ðpV-ðV-ðV-ðV-ðV-ðV-ðp:ð:ð:ð:ð:ðB-Ð,Ñ.Ô.ÐØ€Ø%Ð%Ð%Ð%Ð%Ð%Ð%Ð%Ð%Ð%ð �1‰ ˆØˆð( ð#$ d V¨WÑ%5�<ˆE؈JØ Ð%Ð%ðÝ59Ð:LÑ5MÔ5MÑ2�I˜w¨ ¨ øÝ$ðððØ�F�Fðøøøà˜G‘O�Ø#,¨g°zÐ"B� ˜Q‘ؘ‘ �ð Ð%Ð%ð�wŠˆØ&Ð&Ð&Ð&Ø!(��à!&�Ø�Ø ð $ؘG‘O�ؘ‘ �Ø" 1”oÐ%Ð%Ð%Ø !Ñ#�ð !ð $ð % Q™YˆNð Ø$ð9Ý59Ð:LÑ5MÔ5MÑ2�I˜w¨ à!ð,Ø)0°©˜˜à&¨!Ñ+˜Ø# W¨jÐ8Ð8Ð8Ð8ð%ð9øøõ!ð ð ð à��ð øøøðM( s$Á.B BÂBÃ+D Ä DÄDan %(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 fd„Z dd d œd „Z d „Z d „Z d„Zd„Zd„Zd„Zd„Z dd„ZdS)r a{For producing HTML side by side comparison with change highlights. This class can be used to create an HTML table (or a complete HTML file containing the table) showing a side by side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode. The following methods are provided for HTML generation: make_table -- generates HTML for a single side by side table make_file -- generates complete HTML file with a single side by side table See tools/scripts/diff.py for an example usage of this class. réNcó>—||_||_||_||_dS)aØHtmlDiff 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Ú wrapcolumnr«r¬s rr#zHtmlDiff.__init__˜s%€ð ˆŒ Ø%ˆÔØ!ˆŒØ!ˆŒˆˆrrFézutf-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 )rGÚnumlines)ÚstylesÚlegendÚtablerWÚxmlcharrefreplace)Ú_file_templaterÚ_stylesÚ_legendÚ make_tablerr)r"r?r@ÚfromdescÚtodescrGrYrWs rÚ make_filezHtmlDiff.make_file©st€ð&Ô#¥dØ”<Ø”<Ø—/’/ )¨W°hÀØ*1¸Hð"ñFôFàð ' ñ' ô' ñ ÷ Š6�'Ð.Ñ /Ô /·²°w±´ð  @rcóP‡‡—ˆfd„Šˆfd„|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¦«}| dd¦« d¦«S)Nr r"ú rÓ)rkÚ expandtabsrPrÕ)rÙr"s €rÚ expand_tabsz2HtmlDiff._tab_newline_replace..expand_tabsÎs`ø€à—<’<  DÑ)Ô)ˆDà—?’? 4¤=Ñ1Ô1ˆDð—<’<  DÑ)Ô)ˆDØ—<’<  SÑ)Ô)×0Ò0°Ñ6Ô6Ð 6rcó&•—g|] }‰|¦«‘ŒSrr©r€rÙris €rr–z1HtmlDiff._tab_newline_replace..×s#ø€Ð=Ð=Ð=¨4�[�[ Ñ&Ô&Ð=Ð=Ð=rcó&•—g|] }‰|¦«‘ŒSrrrks €rr–z1HtmlDiff._tab_newline_replace..Øs#ø€Ð9Ð9Ð9¨�;�;˜tÑ$Ô$Ð9Ð9Ð9rr)r"r?r@ris` @rÚ_tab_newline_replacezHtmlDiff._tab_newline_replaceÄs\øø€ð 7ð 7ð 7ð 7ð 7ð>Ð=Ð=Ð=°9Ð=Ñ=Ô=ˆ Ø9Ð9Ð9Ð9°Ð9Ñ9Ô9ˆØ˜Ð Ð rcó<—|s| ||f¦«dSt|¦«}|j}||ks|| d¦«dzz |kr| ||f¦«dSd}d}d}||krO||krI||dkr|dz }||}|dz }n||dkr|dz }d}n |dz }|dz }||kr||k°I|d|…} ||d…} |r | dz} d|z| z} | || f¦«| |d| ¦«dS) a¤Builds 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:rQÚcountÚ _split_line) r"Ú data_listÚline_numr)rrrxr<rAÚmarkÚline1Úline2s rrqzHtmlDiff._split_lineÛsŠ€ðð Ø × Ò ˜h t˜_Ñ -Ô -Ð -Ø ˆFõ�4‰yŒyˆØÔˆØ �CŠKˆK˜d T§Z¢Z°Ñ%5Ô%5°aÑ%7Ñ8¸SÒ@Ð@Ø × Ò ˜h t˜_Ñ -Ô -Ð -Ø ˆFð ˆØ ˆØˆØ�#Šgˆg˜!˜dš(˜(Ø�AŒw˜$ŠˆØ�Q‘�ؘA”w�Ø�Q‘��Ø�a”˜D’�Ø�Q‘�Ø��à�Q‘�Ø�Q‘�ð�#Šgˆg˜!˜dš(˜(ð�R�a�R”ˆØ�Q�R�R”ˆð ð (ؘD‘LˆEؘ4‘K %Ñ'ˆEð ×Ò˜( 5Ð)Ñ*Ô*Ð*ð ×Ò˜ 3 uÑ-Ô-Ð-Ð-Ð-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"ÚdiffsÚfromdataÚtodataÚflagÚfromlineÚfromtextÚtolineÚtotextÚfromlistÚtolists rÚ _line_wrapperzHtmlDiff._line_wrappersèè€ð%*ð +ð +Ñ ˆH�V˜Dàˆ|ؘv dÐ*Ð*Ð*Ð*ØØ2:¸6Ð /Ñ ˆX�h¡ ¨ð! �VˆHØ × Ò ˜X h¨xÑ 8Ô 8Ð 8Ø × Ò ˜V F¨6Ñ 2Ô 2Ð 2ðð +˜fð +Øð(Ø'Ÿ|š|¨A™œ�H�Hà'�HØð&Ø#ŸZšZ¨™]œ]�F�Fà%�Fؘv dÐ*Ð*Ð*Ð*ðð +˜fð +øð +ð +rcóT—ggg}}}|D]›\}}} | |jd|g|¢Rަ«| |jd|g|¢Rަ«n:#t$r-| d¦«| d¦«YnwxYw| |¦«Œœ|||fS)z³Collects 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"rxr€r�Úflaglistryrzr{s rÚ_collect_lineszHtmlDiff._collect_lines.sì€ð$& b¨˜�ˆà$)ð "ð "Ñ ˆH�V˜Dð $à—’Ð 1 Ô 1°!°DÐ C¸(Ð CÐ CÐ CÑDÔDÐDØ— ’ Ð/˜dÔ/°°$Ð?¸Ð?Ð?Ð?Ñ@Ô@Ð@Ð@øÝð $ð $ð $à—’ Ñ%Ô%Ð%Ø— ’ ˜dÑ#Ô#Ð#Ð#Ð#ð $øøøð �OŠO˜DÑ !Ô !Ð !Ð !ؘ˜xÐ'Ð's�AAÁ4B  B có>— d|z}d|j|›|›d�}n#t$rd}YnwxYw| dd¦« dd¦« d d ¦«}| d d ¦« ¦«}d |›d|›d|›d�S)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 rr„zHtmlDiff._format_lineCsÇ€ð Ø˜W‘nˆGˆGØ!%¤¨dÔ!3Ð!3°G°G°GÐ<ˆBˆBøÝð ð ð àˆBˆBˆBð øøøð�\Š\˜#˜gÑ &Ô &× .Ò .¨s°6Ñ :Ô :× BÒ BÀ3ÀvÑ NÔ Nˆð�|Š|˜C Ñ)Ô)×0Ò0Ñ2Ô2ˆˆð�"�"�W�W�W˜T˜T˜Tð#ð #s ‚› *©*có~—dtjz}dtjz}txjdz c_||g|_dS)zCreate unique anchor prefixeszfrom%d_zto%d_r0N)r Ú_default_prefixrŒ)r"Ú fromprefixÚtoprefixs rÚ _make_prefixzHtmlDiff._make_prefixZsB€ð ¥Ô!9Ñ9ˆ Ø�XÔ5Ñ5ˆÝÐ Ô  AÑ%Ð Ô à" 8Ð,ˆŒ ˆ ˆ rcó‚—|jd}dgt|¦«z}dgt|¦«z}d\} } d} t|¦«D]=\} } | r4| s1d} | } td| |z g¦«} d|| fz|| <| dz } d|| fz|| <Œ;d} Œ>|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)rŒr:r2rx)r"r€r�r…rGrYr’Únext_idÚ next_hrefÚnum_chgÚ in_changerör<r{s rÚ_convert_flagszHtmlDiff._convert_flagsesS€ð”< ”?ˆð�$•s˜8‘}”}Ñ$ˆØ�D�˜X™œÑ&ˆ Ø%ш�؈ݠÑ)Ô)ð "ð "‰FˆAˆdØð "Ø ð +Ø $�IØ�Dõ˜Q˜q ™z˜NÑ+Ô+�AØ!:¸hÀwÐ=OÑ!O�G˜A‘Jð˜q‘L�GØ&JØ! 'ðN+ñ'+�I˜d‘Oøð"� � àð QØ�wˆHØ�dˆGؘˆI؈DØð QØPÐQ�Ø!��à%OÐ$PÐP�˜6à˜Œ{ð JØ>ÀÑIˆI�a‰Là?À8ÑLˆ �$‰à˜˜x¨ °'Ð9Ð9rc óÀ—| ¦«| ||¦«\}}|r|}nd}t||||j|j¬¦«}|jr| |¦«}| |¦«\} } } | | | | ||¦«\} } } } } g}d}tt| ¦«¦«D]a}| |€|dkr|  d¦«Œ&|  || || || || || |fz¦«Œb|s|rdd›d|z›d›d|z›d �}nd }|j td  |¦«||jd ¬ ¦«z}| d d¦« dd¦« dd¦« dd¦« dd¦«S)aîReturns 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). NrªzV %s%s%s%s rz) z z!
z+%sz rr0)Ú data_rowsÚ header_rowrz+zz-zz^zr#zrgr‹)r“rmrLrRrSrQr‚r†r™rGr:r4Ú_table_templaterr¤rŒrk)r"r?r@rbrcrGrYÚ context_linesrxr€r�r…r–r•r�Úfmtr<rœr\s rrazHtmlDiff.make_table”sJ€ð( ×ÒÑÔÐð!×5Ò5°iÀÑHÔHш �'ð ð !Ø$ˆMˆMà ˆMÝ�y ¨ÀÄØ#œ~ð/ñ/ô/ˆð Ô ð .Ø×&Ò& uÑ-Ô-ˆEð$(×#6Ò#6°uÑ#=Ô#=Ñ ˆ�˜ð6:×5HÒ5HØ �V˜H W¨Xñ67ô67Ñ2ˆ�˜ ¨7ð ˆð7ˆå•s˜8‘}”}Ñ%Ô%ð Dð DˆAؘŒ{Ð"ð�q’5�5Ø—H’HÐJÑKÔKÐKøà—’˜# ¨¤¨I°a¬L¸À!¼Ø+4°Q¬<¸¸q¼ ð!CñCñDôDðDðDà ð �vð øà3Ð3Ø=ÀÑHÐHØ3Ð3Ø=ÀÑFÐFÐFð HˆJˆJð ˆJàÔ$¥tØ—g’g˜a‘j”jØ!Ø”< ”?ð($ñ($ô($ñ$ˆð �}Š}˜UÐ#<Ñ=Ô=ß’W˜UÐ#<Ñ=Ô=ß’W˜UÐ#<Ñ=Ô=ß’W˜T )Ñ,Ô,ß’W˜T (Ñ+Ô+ð  ,r)rrFrV)rŒr�rŽr�r^r_r�r`r�rr#rdrmrqr‚r†r„r“r™rarrrr r ‚s€€€€€ð ð ð$€NØ€GØ%€OØ€GØ€Oà¨4¸Ø+ð"ð"ð"ð"ð"ACØ*+ð@Ø8?ð@ð@ð@ð@ð@ð6!ð!ð!ð.5.ð5.ð5.ðn+ð+ð+ð8(ð(ð(ð*#ð#ð#ð. -ð -ð -ð-:ð-:ð-:ð^INØðK,ðK,ðK,ðK,ðK,ðK,rr c#óÂK— dddœt|¦«}n!#t$rtd|z¦«d‚wxYwd|f}|D]}|dd…|vr |dd…V—ŒdS)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 rÒrÔ)r0rëz)unknown delta choice (must be 1 or 2): %rNrÀrë)ÚintÚKeyErrorr—)ÚdeltaÚwhichrsÚprefixesrÙs rrrãs©èè€ð,.ؘ4Ð Ð ¥ U¡¤Ô,ˆˆøÝ ð.ð.ð.ÝÐDØ"ñ#ñ$ô$Ø)-ð .ð.øøøð�cˆ{€HØððˆØ ���Œ8�xÐ Ð Ø�q�r�r”(ˆNˆNˆNøððs„�;có<—ddl}ddl}| |¦«S)Nr)ÚdoctestÚdifflibÚtestmod)r§r¨s rÚ_testrªs,€ØÐÐÐÐÐÐÐØ �?Š?˜7Ñ #Ô #Ð#rÚ__main__)rur’)rÛ)rrrrrurÓ)rrrrrur )&r�Ú__all__Úheapqrr˜Ú collectionsrÚ _namedtupleÚtypesrr rrrr§rrErFÚmatchrrrçr rúr rír rrLr^r_r�r`Úobjectr rrªrŒrrrúr³s©ðððð8 >ð >ð >€ð(Ð'Ð'Ð'Ð'Ð'Ø1Ð1Ð1Ð1Ð1Ð1ØÐÐÐÐÐàˆ �G˜ZÑ(Ô(€ðððð k 2ðk 2ðk 2ðk 2ðk 2ñk 2ôk 2ðk 2ð\.&ð.&ð.&ð.&ðbðððl!ðl!ðl!ðl!ðl!ñl!ôl!ðl!ð~  € € € à%˜2œ:Ð&6Ñ7Ô7Ô=ð!ð!ð!ð!ð ðððð. -ð -ð -ð=?Ø.2ðB%ðB%ðB%ðB%ðR =ð =ð =ð,.Ø?CðJ1ðJ1ðJ1ðJ1ðXKðKðKð"25Ø?Dð6ð6ð6ð6ð<Ð(9ð#4ð#4ð#4ð#4ðJ(,°dØ%ðKðKðKðKð\ €ð( 0€ð€ð €ð"],ð],ð],ð],ð],ˆvñ],ô],ð],ð~ ðððð@$ð$ð$ð ˆzÒÐØ €E�G„G€G€G€GðÐr