/usr/lib64/python3.6/__pycache__
NameSizeModeActions
abc.cpython-36.opt-1.pyc74740644editdlrm
abc.cpython-36.opt-2.pyc41100644editdlrm
abc.cpython-36.pyc75170644editdlrm
aifc.cpython-36.opt-1.pyc259450644editdlrm
aifc.cpython-36.opt-2.pyc207400644editdlrm
aifc.cpython-36.pyc259450644editdlrm
antigravity.cpython-36.opt-1.pyc7810644editdlrm
antigravity.cpython-36.opt-2.pyc6370644editdlrm
antigravity.cpython-36.pyc7810644editdlrm
argparse.cpython-36.opt-1.pyc600580644editdlrm
argparse.cpython-36.opt-2.pyc508170644editdlrm
argparse.cpython-36.pyc601920644editdlrm
ast.cpython-36.opt-1.pyc117060644editdlrm
ast.cpython-36.opt-2.pyc61210644editdlrm
ast.cpython-36.pyc117060644editdlrm
asynchat.cpython-36.opt-1.pyc68170644editdlrm
asynchat.cpython-36.opt-2.pyc54410644editdlrm
asynchat.cpython-36.pyc68170644editdlrm
asyncore.cpython-36.opt-1.pyc158400644editdlrm
asyncore.cpython-36.opt-2.pyc146360644editdlrm
asyncore.cpython-36.pyc158400644editdlrm
base64.cpython-36.opt-1.pyc169030644editdlrm
base64.cpython-36.opt-2.pyc113050644editdlrm
base64.cpython-36.pyc170610644editdlrm
bdb.cpython-36.opt-1.pyc170350644editdlrm
bdb.cpython-36.opt-2.pyc153090644editdlrm
bdb.cpython-36.pyc170350644editdlrm
binhex.cpython-36.opt-1.pyc120880644editdlrm
binhex.cpython-36.opt-2.pyc115550644editdlrm
binhex.cpython-36.pyc120880644editdlrm
bisect.cpython-36.opt-1.pyc26780644editdlrm
bisect.cpython-36.opt-2.pyc13820644editdlrm
bisect.cpython-36.pyc26780644editdlrm
bz2.cpython-36.opt-1.pyc112840644editdlrm
bz2.cpython-36.opt-2.pyc62270644editdlrm
bz2.cpython-36.pyc112840644editdlrm
calendar.cpython-36.opt-1.pyc258840644editdlrm
calendar.cpython-36.opt-2.pyc213570644editdlrm
calendar.cpython-36.pyc258840644editdlrm
cgi.cpython-36.opt-1.pyc286240644editdlrm
cgi.cpython-36.opt-2.pyc195120644editdlrm
cgi.cpython-36.pyc286240644editdlrm
cgitb.cpython-36.opt-1.pyc100820644editdlrm
cgitb.cpython-36.opt-2.pyc84830644editdlrm
cgitb.cpython-36.pyc100820644editdlrm
chunk.cpython-36.opt-1.pyc49020644editdlrm
chunk.cpython-36.opt-2.pyc27560644editdlrm
chunk.cpython-36.pyc49020644editdlrm
cmd.cpython-36.opt-1.pyc125770644editdlrm
cmd.cpython-36.opt-2.pyc71380644editdlrm
cmd.cpython-36.pyc125770644editdlrm
code.cpython-36.opt-1.pyc98380644editdlrm
code.cpython-36.opt-2.pyc45620644editdlrm
code.cpython-36.pyc98380644editdlrm
codecs.cpython-36.opt-1.pyc339020644editdlrm
codecs.cpython-36.opt-2.pyc180540644editdlrm
codecs.cpython-36.pyc339020644editdlrm
codeop.cpython-36.opt-1.pyc62720644editdlrm
codeop.cpython-36.opt-2.pyc22250644editdlrm
codeop.cpython-36.pyc62720644editdlrm
colorsys.cpython-36.opt-1.pyc33130644editdlrm
colorsys.cpython-36.opt-2.pyc27070644editdlrm
colorsys.cpython-36.pyc33130644editdlrm
compileall.cpython-36.opt-1.pyc82800644editdlrm
compileall.cpython-36.opt-2.pyc61420644editdlrm
compileall.cpython-36.pyc82800644editdlrm
configparser.cpython-36.opt-1.pyc452460644editdlrm
configparser.cpython-36.opt-2.pyc305580644editdlrm
configparser.cpython-36.pyc452460644editdlrm
contextlib.cpython-36.opt-1.pyc111600644editdlrm
contextlib.cpython-36.opt-2.pyc78140644editdlrm
contextlib.cpython-36.pyc111600644editdlrm
copy.cpython-36.opt-1.pyc70810644editdlrm
copy.cpython-36.opt-2.pyc47650644editdlrm
copy.cpython-36.pyc70810644editdlrm
copyreg.cpython-36.opt-1.pyc42110644editdlrm
copyreg.cpython-36.opt-2.pyc34070644editdlrm
copyreg.cpython-36.pyc42460644editdlrm
cProfile.cpython-36.opt-1.pyc42960644editdlrm
cProfile.cpython-36.opt-2.pyc38350644editdlrm
cProfile.cpython-36.pyc42960644editdlrm
crypt.cpython-36.opt-1.pyc22440644editdlrm
crypt.cpython-36.opt-2.pyc15800644editdlrm
crypt.cpython-36.pyc22440644editdlrm
csv.cpython-36.opt-1.pyc118570644editdlrm
csv.cpython-36.opt-2.pyc98180644editdlrm
csv.cpython-36.pyc118570644editdlrm
datetime.cpython-36.opt-1.pyc530600644editdlrm
datetime.cpython-36.opt-2.pyc442100644editdlrm
datetime.cpython-36.pyc545130644editdlrm
decimal.cpython-36.opt-1.pyc3530644editdlrm
decimal.cpython-36.opt-2.pyc3530644editdlrm
decimal.cpython-36.pyc3530644editdlrm
difflib.cpython-36.opt-1.pyc596060644editdlrm
difflib.cpython-36.opt-2.pyc250360644editdlrm
difflib.cpython-36.pyc596440644editdlrm
dis.cpython-36.opt-1.pyc141830644editdlrm
dis.cpython-36.opt-2.pyc106510644editdlrm
dis.cpython-36.pyc141830644editdlrm
doctest.cpython-36.opt-1.pyc753460644editdlrm
doctest.cpython-36.opt-2.pyc400190644editdlrm
doctest.cpython-36.pyc755910644editdlrm
dummy_threading.cpython-36.opt-1.pyc11040644editdlrm
dummy_threading.cpython-36.opt-2.pyc7310644editdlrm
dummy_threading.cpython-36.pyc11040644editdlrm
enum.cpython-36.opt-1.pyc234550644editdlrm
enum.cpython-36.opt-2.pyc191620644editdlrm
enum.cpython-36.pyc234550644editdlrm
filecmp.cpython-36.opt-1.pyc83070644editdlrm
filecmp.cpython-36.opt-2.pyc58900644editdlrm
filecmp.cpython-36.pyc83070644editdlrm
fileinput.cpython-36.opt-1.pyc131540644editdlrm
fileinput.cpython-36.opt-2.pyc76150644editdlrm
fileinput.cpython-36.pyc131540644editdlrm
fnmatch.cpython-36.opt-1.pyc28760644editdlrm
fnmatch.cpython-36.opt-2.pyc16870644editdlrm
fnmatch.cpython-36.pyc28760644editdlrm
formatter.cpython-36.opt-1.pyc175810644editdlrm
formatter.cpython-36.opt-2.pyc151410644editdlrm
formatter.cpython-36.pyc175810644editdlrm
fractions.cpython-36.opt-1.pyc184280644editdlrm
fractions.cpython-36.opt-2.pyc111420644editdlrm
fractions.cpython-36.pyc184280644editdlrm
ftplib.cpython-36.opt-1.pyc283590644editdlrm
ftplib.cpython-36.opt-2.pyc185550644editdlrm
ftplib.cpython-36.pyc283590644editdlrm
functools.cpython-36.opt-1.pyc240640644editdlrm
functools.cpython-36.opt-2.pyc180930644editdlrm
functools.cpython-36.pyc240640644editdlrm
genericpath.cpython-36.opt-1.pyc42300644editdlrm
genericpath.cpython-36.opt-2.pyc31880644editdlrm
genericpath.cpython-36.pyc42300644editdlrm
getopt.cpython-36.opt-1.pyc61850644editdlrm
getopt.cpython-36.opt-2.pyc36310644editdlrm
getopt.cpython-36.pyc62190644editdlrm
getpass.cpython-36.opt-1.pyc41790644editdlrm
getpass.cpython-36.opt-2.pyc29940644editdlrm
getpass.cpython-36.pyc41790644editdlrm
gettext.cpython-36.opt-1.pyc141990644editdlrm
gettext.cpython-36.opt-2.pyc135080644editdlrm
gettext.cpython-36.pyc141990644editdlrm
glob.cpython-36.opt-1.pyc41920644editdlrm
glob.cpython-36.opt-2.pyc33320644editdlrm
glob.cpython-36.pyc42610644editdlrm
gzip.cpython-36.opt-1.pyc162280644editdlrm
gzip.cpython-36.opt-2.pyc124220644editdlrm
gzip.cpython-36.pyc162280644editdlrm
hashlib.cpython-36.opt-1.pyc56670644editdlrm
hashlib.cpython-36.opt-2.pyc53280644editdlrm
hashlib.cpython-36.pyc56670644editdlrm
heapq.cpython-36.opt-1.pyc142940644editdlrm
heapq.cpython-36.opt-2.pyc113040644editdlrm
heapq.cpython-36.pyc142940644editdlrm
hmac.cpython-36.opt-1.pyc60150644editdlrm
hmac.cpython-36.opt-2.pyc42040644editdlrm
hmac.cpython-36.pyc60150644editdlrm
imaplib.cpython-36.opt-1.pyc400430644editdlrm
imaplib.cpython-36.opt-2.pyc279550644editdlrm
imaplib.cpython-36.pyc422620644editdlrm
imghdr.cpython-36.opt-1.pyc41520644editdlrm
imghdr.cpython-36.opt-2.pyc38370644editdlrm
imghdr.cpython-36.pyc41520644editdlrm
imp.cpython-36.opt-1.pyc96980644editdlrm
imp.cpython-36.opt-2.pyc72950644editdlrm
imp.cpython-36.pyc96980644editdlrm
inspect.cpython-36.opt-1.pyc794410644editdlrm
inspect.cpython-36.opt-2.pyc540260644editdlrm
inspect.cpython-36.pyc797410644editdlrm
io.cpython-36.opt-1.pyc33890644editdlrm
io.cpython-36.opt-2.pyc18980644editdlrm
io.cpython-36.pyc33890644editdlrm
ipaddress.cpython-36.opt-1.pyc650640644editdlrm
ipaddress.cpython-36.opt-2.pyc373470644editdlrm
ipaddress.cpython-36.pyc650640644editdlrm
keyword.cpython-36.opt-1.pyc17670644editdlrm
keyword.cpython-36.opt-2.pyc14990644editdlrm
keyword.cpython-36.pyc17670644editdlrm
linecache.cpython-36.opt-1.pyc37800644editdlrm
linecache.cpython-36.opt-2.pyc26750644editdlrm
linecache.cpython-36.pyc37800644editdlrm
locale.cpython-36.opt-1.pyc340470644editdlrm
locale.cpython-36.opt-2.pyc294220644editdlrm
locale.cpython-36.pyc340470644editdlrm
lzma.cpython-36.opt-1.pyc119940644editdlrm
lzma.cpython-36.opt-2.pyc58030644editdlrm
lzma.cpython-36.pyc119940644editdlrm
macpath.cpython-36.opt-1.pyc56430644editdlrm
macpath.cpython-36.opt-2.pyc43770644editdlrm
macpath.cpython-36.pyc56430644editdlrm
macurl2path.cpython-36.opt-1.pyc18690644editdlrm
macurl2path.cpython-36.opt-2.pyc14890644editdlrm
macurl2path.cpython-36.pyc18690644editdlrm
mailbox.cpython-36.opt-1.pyc636720644editdlrm
mailbox.cpython-36.opt-2.pyc545250644editdlrm
mailbox.cpython-36.pyc637540644editdlrm
mailcap.cpython-36.opt-1.pyc72110644editdlrm
mailcap.cpython-36.opt-2.pyc56410644editdlrm
mailcap.cpython-36.pyc72110644editdlrm
mimetypes.cpython-36.opt-1.pyc155550644editdlrm
mimetypes.cpython-36.opt-2.pyc95570644editdlrm
mimetypes.cpython-36.pyc155550644editdlrm
modulefinder.cpython-36.opt-1.pyc153060644editdlrm
modulefinder.cpython-36.opt-2.pyc144650644editdlrm
modulefinder.cpython-36.pyc153680644editdlrm
netrc.cpython-36.opt-1.pyc38380644editdlrm
netrc.cpython-36.opt-2.pyc36000644editdlrm
netrc.cpython-36.pyc38380644editdlrm
nntplib.cpython-36.opt-1.pyc337820644editdlrm
nntplib.cpython-36.opt-2.pyc212410644editdlrm
nntplib.cpython-36.pyc337820644editdlrm
ntpath.cpython-36.opt-1.pyc137520644editdlrm
ntpath.cpython-36.opt-2.pyc112810644editdlrm
ntpath.cpython-36.pyc137520644editdlrm
nturl2path.cpython-36.opt-1.pyc15010644editdlrm
nturl2path.cpython-36.opt-2.pyc11830644editdlrm
nturl2path.cpython-36.pyc15010644editdlrm
numbers.cpython-36.opt-1.pyc121440644editdlrm
numbers.cpython-36.opt-2.pyc81830644editdlrm
numbers.cpython-36.pyc121440644editdlrm
opcode.cpython-36.opt-1.pyc54150644editdlrm
opcode.cpython-36.opt-2.pyc52750644editdlrm
opcode.cpython-36.pyc54150644editdlrm
operator.cpython-36.opt-1.pyc139150644editdlrm
operator.cpython-36.opt-2.pyc114560644editdlrm
operator.cpython-36.pyc139150644editdlrm
optparse.cpython-36.opt-1.pyc479880644editdlrm
optparse.cpython-36.opt-2.pyc356330644editdlrm
optparse.cpython-36.pyc480560644editdlrm
os.cpython-36.opt-1.pyc296300644editdlrm
os.cpython-36.opt-2.pyc177810644editdlrm
os.cpython-36.pyc296300644editdlrm
pathlib.cpython-36.opt-1.pyc408140644editdlrm
pathlib.cpython-36.opt-2.pyc331720644editdlrm
pathlib.cpython-36.pyc408140644editdlrm
pdb.cpython-36.opt-1.pyc460390644editdlrm
pdb.cpython-36.opt-2.pyc319720644editdlrm
pdb.cpython-36.pyc460960644editdlrm
pickle.cpython-36.opt-1.pyc425760644editdlrm
pickle.cpython-36.opt-2.pyc377880644editdlrm
pickle.cpython-36.pyc426930644editdlrm
pickletools.cpython-36.opt-1.pyc651710644editdlrm
pickletools.cpython-36.opt-2.pyc564300644editdlrm
pickletools.cpython-36.pyc660220644editdlrm
pipes.cpython-36.opt-1.pyc78100644editdlrm
pipes.cpython-36.opt-2.pyc49370644editdlrm
pipes.cpython-36.pyc78100644editdlrm
pkgutil.cpython-36.opt-1.pyc162630644editdlrm
pkgutil.cpython-36.opt-2.pyc110030644editdlrm
pkgutil.cpython-36.pyc162630644editdlrm
platform.cpython-36.opt-1.pyc286490644editdlrm
platform.cpython-36.opt-2.pyc194010644editdlrm
platform.cpython-36.pyc286490644editdlrm
plistlib.cpython-36.opt-1.pyc276650644editdlrm
plistlib.cpython-36.opt-2.pyc244110644editdlrm
plistlib.cpython-36.pyc277320644editdlrm
poplib.cpython-36.opt-1.pyc134280644editdlrm
poplib.cpython-36.opt-2.pyc84970644editdlrm
poplib.cpython-36.pyc134280644editdlrm
posixpath.cpython-36.opt-1.pyc107060644editdlrm
posixpath.cpython-36.opt-2.pyc89850644editdlrm
posixpath.cpython-36.pyc107060644editdlrm
pprint.cpython-36.opt-1.pyc157710644editdlrm
pprint.cpython-36.opt-2.pyc137070644editdlrm
pprint.cpython-36.pyc158260644editdlrm
profile.cpython-36.opt-1.pyc136970644editdlrm
profile.cpython-36.opt-2.pyc107150644editdlrm
profile.cpython-36.pyc139030644editdlrm
pstats.cpython-36.opt-1.pyc218590644editdlrm
pstats.cpython-36.opt-2.pyc194050644editdlrm
pstats.cpython-36.pyc218590644editdlrm
pty.cpython-36.opt-1.pyc38630644editdlrm
pty.cpython-36.opt-2.pyc30100644editdlrm
pty.cpython-36.pyc38630644editdlrm
pyclbr.cpython-36.opt-1.pyc83670644editdlrm
pyclbr.cpython-36.opt-2.pyc55710644editdlrm
pyclbr.cpython-36.pyc83670644editdlrm
pydoc.cpython-36.opt-1.pyc834450644editdlrm
pydoc.cpython-36.opt-2.pyc742440644editdlrm
pydoc.cpython-36.pyc834980644editdlrm
py_compile.cpython-36.opt-1.pyc65460644editdlrm
py_compile.cpython-36.opt-2.pyc29420644editdlrm
py_compile.cpython-36.pyc65460644editdlrm
queue.cpython-36.opt-1.pyc87570644editdlrm
queue.cpython-36.opt-2.pyc49670644editdlrm
queue.cpython-36.pyc87570644editdlrm
quopri.cpython-36.opt-1.pyc56000644editdlrm
quopri.cpython-36.opt-2.pyc45640644editdlrm
quopri.cpython-36.pyc57750644editdlrm
random.cpython-36.opt-1.pyc193320644editdlrm
random.cpython-36.opt-2.pyc127910644editdlrm
random.cpython-36.pyc193320644editdlrm
re.cpython-36.opt-1.pyc140600644editdlrm
re.cpython-36.opt-2.pyc57800644editdlrm
re.cpython-36.pyc140600644editdlrm
reprlib.cpython-36.opt-1.pyc54020644editdlrm
reprlib.cpython-36.opt-2.pyc52460644editdlrm
reprlib.cpython-36.pyc54020644editdlrm
rlcompleter.cpython-36.opt-1.pyc57820644editdlrm
rlcompleter.cpython-36.opt-2.pyc31190644editdlrm
rlcompleter.cpython-36.pyc57820644editdlrm
runpy.cpython-36.opt-1.pyc79840644editdlrm
runpy.cpython-36.opt-2.pyc64410644editdlrm
runpy.cpython-36.pyc79840644editdlrm
sched.cpython-36.opt-1.pyc65660644editdlrm
sched.cpython-36.opt-2.pyc35260644editdlrm
sched.cpython-36.pyc65660644editdlrm
secrets.cpython-36.opt-1.pyc21640644editdlrm
secrets.cpython-36.opt-2.pyc11060644editdlrm
secrets.cpython-36.pyc21640644editdlrm
selectors.cpython-36.opt-1.pyc176990644editdlrm
selectors.cpython-36.opt-2.pyc137230644editdlrm
selectors.cpython-36.pyc176990644editdlrm
shelve.cpython-36.opt-1.pyc94600644editdlrm
shelve.cpython-36.opt-2.pyc53070644editdlrm
shelve.cpython-36.pyc94600644editdlrm
shlex.cpython-36.opt-1.pyc69720644editdlrm
shlex.cpython-36.opt-2.pyc64600644editdlrm
shlex.cpython-36.pyc69720644editdlrm
shutil.cpython-36.opt-1.pyc309010644editdlrm
shutil.cpython-36.opt-2.pyc200450644editdlrm
shutil.cpython-36.pyc309010644editdlrm
signal.cpython-36.opt-1.pyc25170644editdlrm
signal.cpython-36.opt-2.pyc22890644editdlrm
signal.cpython-36.pyc25170644editdlrm
site.cpython-36.opt-1.pyc163610644editdlrm
site.cpython-36.opt-2.pyc106750644editdlrm
site.cpython-36.pyc163610644editdlrm
smtpd.cpython-36.opt-1.pyc266850644editdlrm
smtpd.cpython-36.opt-2.pyc240660644editdlrm
smtpd.cpython-36.pyc266850644editdlrm
smtplib.cpython-36.opt-1.pyc352810644editdlrm
smtplib.cpython-36.opt-2.pyc188690644editdlrm
smtplib.cpython-36.pyc353420644editdlrm
sndhdr.cpython-36.opt-1.pyc69150644editdlrm
sndhdr.cpython-36.opt-2.pyc56400644editdlrm
sndhdr.cpython-36.pyc69150644editdlrm
socket.cpython-36.opt-1.pyc219750644editdlrm
socket.cpython-36.opt-2.pyc145410644editdlrm
socket.cpython-36.pyc220150644editdlrm
socketserver.cpython-36.opt-1.pyc242520644editdlrm
socketserver.cpython-36.opt-2.pyc133270644editdlrm
socketserver.cpython-36.pyc242520644editdlrm
sre_compile.cpython-36.opt-1.pyc101400644editdlrm
sre_compile.cpython-36.opt-2.pyc97260644editdlrm
sre_compile.cpython-36.pyc102800644editdlrm
sre_constants.cpython-36.opt-1.pyc59740644editdlrm
sre_constants.cpython-36.opt-2.pyc55490644editdlrm
sre_constants.cpython-36.pyc59740644editdlrm
sre_parse.cpython-36.opt-1.pyc203130644editdlrm
sre_parse.cpython-36.opt-2.pyc202650644editdlrm
sre_parse.cpython-36.pyc203600644editdlrm
ssl.cpython-36.opt-1.pyc364320644editdlrm
ssl.cpython-36.opt-2.pyc269080644editdlrm
ssl.cpython-36.pyc364320644editdlrm
stat.cpython-36.opt-1.pyc38530644editdlrm
stat.cpython-36.opt-2.pyc31750644editdlrm
stat.cpython-36.pyc38530644editdlrm
statistics.cpython-36.opt-1.pyc179350644editdlrm
statistics.cpython-36.opt-2.pyc72480644editdlrm
statistics.cpython-36.pyc181760644editdlrm
string.cpython-36.opt-1.pyc79660644editdlrm
string.cpython-36.opt-2.pyc68600644editdlrm
string.cpython-36.pyc79660644editdlrm
stringprep.cpython-36.opt-1.pyc99740644editdlrm
stringprep.cpython-36.opt-2.pyc97540644editdlrm
stringprep.cpython-36.pyc100320644editdlrm
struct.cpython-36.opt-1.pyc3140644editdlrm
struct.cpython-36.opt-2.pyc3140644editdlrm
struct.cpython-36.pyc3140644editdlrm
subprocess.cpython-36.opt-1.pyc353860644editdlrm
subprocess.cpython-36.opt-2.pyc246720644editdlrm
subprocess.cpython-36.pyc354870644editdlrm
sunau.cpython-36.opt-1.pyc169400644editdlrm
sunau.cpython-36.opt-2.pyc123500644editdlrm
sunau.cpython-36.pyc169400644editdlrm
symbol.cpython-36.opt-1.pyc25190644editdlrm
symbol.cpython-36.opt-2.pyc24430644editdlrm
symbol.cpython-36.pyc25190644editdlrm
symtable.cpython-36.opt-1.pyc103230644editdlrm
symtable.cpython-36.opt-2.pyc96260644editdlrm
symtable.cpython-36.pyc104300644editdlrm
sysconfig.cpython-36.opt-1.pyc159010644editdlrm
sysconfig.cpython-36.opt-2.pyc133340644editdlrm
sysconfig.cpython-36.pyc159010644editdlrm
tabnanny.cpython-36.opt-1.pyc69770644editdlrm
tabnanny.cpython-36.opt-2.pyc60440644editdlrm
tabnanny.cpython-36.pyc69770644editdlrm
tarfile.cpython-36.opt-1.pyc748820644editdlrm
tarfile.cpython-36.opt-2.pyc598880644editdlrm
tarfile.cpython-36.pyc748820644editdlrm
telnetlib.cpython-36.opt-1.pyc180990644editdlrm
telnetlib.cpython-36.opt-2.pyc105890644editdlrm
telnetlib.cpython-36.pyc180990644editdlrm
tempfile.cpython-36.opt-1.pyc232650644editdlrm
tempfile.cpython-36.opt-2.pyc167930644editdlrm
tempfile.cpython-36.pyc232650644editdlrm
textwrap.cpython-36.opt-1.pyc136120644editdlrm
textwrap.cpython-36.opt-2.pyc63150644editdlrm
textwrap.cpython-36.pyc136860644editdlrm
this.cpython-36.opt-1.pyc12670644editdlrm
this.cpython-36.opt-2.pyc12670644editdlrm
this.cpython-36.pyc12670644editdlrm
threading.cpython-36.opt-1.pyc367620644editdlrm
threading.cpython-36.opt-2.pyc207210644editdlrm
threading.cpython-36.pyc374150644editdlrm
timeit.cpython-36.opt-1.pyc116050644editdlrm
timeit.cpython-36.opt-2.pyc56240644editdlrm
timeit.cpython-36.pyc116050644editdlrm
token.cpython-36.opt-1.pyc33220644editdlrm
token.cpython-36.opt-2.pyc32720644editdlrm
token.cpython-36.pyc33220644editdlrm
tokenize.cpython-36.opt-1.pyc186030644editdlrm
tokenize.cpython-36.opt-2.pyc150030644editdlrm
tokenize.cpython-36.pyc186490644editdlrm
trace.cpython-36.opt-1.pyc194970644editdlrm
trace.cpython-36.opt-2.pyc164940644editdlrm
trace.cpython-36.pyc194970644editdlrm
traceback.cpython-36.opt-1.pyc196480644editdlrm
traceback.cpython-36.opt-2.pyc107470644editdlrm
traceback.cpython-36.pyc196480644editdlrm
tracemalloc.cpython-36.opt-1.pyc172310644editdlrm
tracemalloc.cpython-36.opt-2.pyc158150644editdlrm
tracemalloc.cpython-36.pyc172310644editdlrm
tty.cpython-36.opt-1.pyc10740644editdlrm
tty.cpython-36.opt-2.pyc9730644editdlrm
tty.cpython-36.pyc10740644editdlrm
types.cpython-36.opt-1.pyc82030644editdlrm
types.cpython-36.opt-2.pyc70360644editdlrm
types.cpython-36.pyc82030644editdlrm
typing.cpython-36.opt-1.pyc729000644editdlrm
typing.cpython-36.opt-2.pyc560490644editdlrm
typing.cpython-36.pyc733080644editdlrm
uu.cpython-36.opt-1.pyc35000644editdlrm
uu.cpython-36.opt-2.pyc32820644editdlrm
uu.cpython-36.pyc35000644editdlrm
uuid.cpython-36.opt-1.pyc208120644editdlrm
uuid.cpython-36.opt-2.pyc141440644editdlrm
uuid.cpython-36.pyc209480644editdlrm
warnings.cpython-36.opt-1.pyc126680644editdlrm
warnings.cpython-36.opt-2.pyc102880644editdlrm
warnings.cpython-36.pyc132600644editdlrm
wave.cpython-36.opt-1.pyc178350644editdlrm
wave.cpython-36.opt-2.pyc118440644editdlrm
wave.cpython-36.pyc178870644editdlrm
weakref.cpython-36.opt-1.pyc191150644editdlrm
weakref.cpython-36.opt-2.pyc158150644editdlrm
weakref.cpython-36.pyc191450644editdlrm
webbrowser.cpython-36.opt-1.pyc162140644editdlrm
webbrowser.cpython-36.opt-2.pyc142760644editdlrm
webbrowser.cpython-36.pyc162470644editdlrm
xdrlib.cpython-36.opt-1.pyc83040644editdlrm
xdrlib.cpython-36.opt-2.pyc78190644editdlrm
xdrlib.cpython-36.pyc83040644editdlrm
zipapp.cpython-36.opt-1.pyc55360644editdlrm
zipapp.cpython-36.opt-2.pyc43600644editdlrm
zipapp.cpython-36.pyc55360644editdlrm
zipfile.cpython-36.opt-1.pyc507920644editdlrm
zipfile.cpython-36.opt-2.pyc442890644editdlrm
zipfile.cpython-36.pyc508600644editdlrm
_bootlocale.cpython-36.opt-1.pyc9540644editdlrm
_bootlocale.cpython-36.opt-2.pyc7290644editdlrm
_bootlocale.cpython-36.pyc9820644editdlrm
_collections_abc.cpython-36.opt-1.pyc287990644editdlrm
_collections_abc.cpython-36.opt-2.pyc236470644editdlrm
_collections_abc.cpython-36.pyc287990644editdlrm
_compat_pickle.cpython-36.opt-1.pyc65100644editdlrm
_compat_pickle.cpython-36.opt-2.pyc65100644editdlrm
_compat_pickle.cpython-36.pyc65680644editdlrm
_compression.cpython-36.opt-1.pyc41060644editdlrm
_compression.cpython-36.opt-2.pyc38900644editdlrm
_compression.cpython-36.pyc41060644editdlrm
_dummy_thread.cpython-36.opt-1.pyc48530644editdlrm
_dummy_thread.cpython-36.opt-2.pyc26450644editdlrm
_dummy_thread.cpython-36.pyc48530644editdlrm
_markupbase.cpython-36.opt-1.pyc78240644editdlrm
_markupbase.cpython-36.opt-2.pyc74440644editdlrm
_markupbase.cpython-36.pyc79930644editdlrm
_osx_support.cpython-36.opt-1.pyc97080644editdlrm
_osx_support.cpython-36.opt-2.pyc72590644editdlrm
_osx_support.cpython-36.pyc97080644editdlrm
_pydecimal.cpython-36.opt-1.pyc1634040644editdlrm
_pydecimal.cpython-36.opt-2.pyc819970644editdlrm
_pydecimal.cpython-36.pyc1634040644editdlrm
_pyio.cpython-36.opt-1.pyc713700644editdlrm
_pyio.cpython-36.opt-2.pyc489750644editdlrm
_pyio.cpython-36.pyc713880644editdlrm
_sitebuiltins.cpython-36.opt-1.pyc34370644editdlrm
_sitebuiltins.cpython-36.opt-2.pyc29130644editdlrm
_sitebuiltins.cpython-36.pyc34370644editdlrm
_strptime.cpython-36.opt-1.pyc159650644editdlrm
_strptime.cpython-36.opt-2.pyc122350644editdlrm
_strptime.cpython-36.pyc159650644editdlrm
_sysconfigdata_dm_linux_x86_64-linux-gnu.cpython-36.opt-1.pyc238190644editdlrm
_sysconfigdata_dm_linux_x86_64-linux-gnu.cpython-36.opt-2.pyc238190644editdlrm
_sysconfigdata_dm_linux_x86_64-linux-gnu.cpython-36.pyc238190644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-1.pyc239500644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-2.pyc239500644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc239500644editdlrm
_threading_local.cpython-36.opt-1.pyc64270644editdlrm
_threading_local.cpython-36.opt-2.pyc31120644editdlrm
_threading_local.cpython-36.pyc64270644editdlrm
_weakrefset.cpython-36.opt-1.pyc78300644editdlrm
_weakrefset.cpython-36.opt-2.pyc78300644editdlrm
_weakrefset.cpython-36.pyc78300644editdlrm
__future__.cpython-36.opt-1.pyc41690644editdlrm
__future__.cpython-36.opt-2.pyc21930644editdlrm
__future__.cpython-36.pyc41690644editdlrm
__phello__.foo.cpython-36.opt-1.pyc1210644editdlrm
__phello__.foo.cpython-36.opt-2.pyc1210644editdlrm
__phello__.foo.cpython-36.pyc1210644editdlrm
Edit: /usr/lib64/python3.6/__pycache__/mailbox.cpython-36.pyc (63754B)
3 \ 3@sRdZddlZddlZddlZddlZddlZddlZddlZddlZddl Zddl Zddl Z ddl Z y ddl Z Wnek rdZ YnXddddddd d d d d ddddddgZejjdZGdddZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdd d ejjZGd d d eZGd!d"d"eZGd#d d eZGd$d d eZGd%d d eZ Gd&ddeZ!Gd'd(d(Z"Gd)d*d*e"Z#d=d,d-Z$d.d/Z%d0d1Z&d2d3Z'd4d5Z(d6d7Z)Gd8dde*Z+Gd9dde+Z,Gd:dde+Z-Gd;dde+Z.GdzDRead/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.NMailboxMaildirmboxMHBabylMMDFMessageMaildirMessage mboxMessage MHMessage BabylMessage MMDFMessageErrorNoSuchMailboxError NotEmptyErrorExternalClashError FormatErrorasciic@seZdZdZdCddZddZdd Zd d Zd d ZddZ dDddZ ddZ ddZ ddZ ddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/ZdEd0d1Zd2d3ZdFd4d5Zd6d7Zd8d9Zd:d;Zdd?Z!d@Z"dGdAdBZ#dS)Hrz*A group of messages in a particular place.NTcCs tjjtjj||_||_dS)zInitialize a Mailbox instance.N)ospathabspath expanduser_path_factory)selfrfactorycreater/usr/lib64/python3.6/mailbox.py__init__$szMailbox.__init__cCs tddS)z$Add message and return assigned key.z&Method must be implemented by subclassN)NotImplementedError)rmessagerrradd)sz Mailbox.addcCs tddS)z=Remove the keyed message; raise KeyError if it doesn't exist.z&Method must be implemented by subclassN)r )rkeyrrrremove-szMailbox.removecCs|j|dS)N)r$)rr#rrr __delitem__1szMailbox.__delitem__c Cs(y|j|Wntk r"YnXdS)z'If the keyed message exists, remove it.N)r$KeyError)rr#rrrdiscard4szMailbox.discardcCs tddS)z>Replace the keyed message; raise KeyError if it doesn't exist.z&Method must be implemented by subclassN)r )rr#r!rrr __setitem__;szMailbox.__setitem__c Cs$y |j|Stk r|SXdS)z9Return the keyed message, or default if it doesn't exist.N) __getitem__r&)rr#defaultrrrget?s z Mailbox.getc Cs6|js|j|Stj|j| }|j|SQRXdS)z=Return the keyed message; raise KeyError if it doesn't exist.N)r get_message contextlibclosingget_file)rr#filerrrr)Fs zMailbox.__getitem__cCs tddS)z4Return a Message representation or raise a KeyError.z&Method must be implemented by subclassN)r )rr#rrrr,NszMailbox.get_messagecCstj|j|jS)zReturn a string representation or raise a KeyError. Uses email.message.Message to create a 7bit clean string representation of the message.)emailmessage_from_bytes get_bytes as_string)rr#rrr get_stringRszMailbox.get_stringcCs tddS)z8Return a byte string representation or raise a KeyError.z&Method must be implemented by subclassN)r )rr#rrrr3YszMailbox.get_bytescCs tddS)z6Return a file-like representation or raise a KeyError.z&Method must be implemented by subclassN)r )rr#rrrr/]szMailbox.get_filecCs tddS)zReturn an iterator over keys.z&Method must be implemented by subclassN)r )rrrriterkeysaszMailbox.iterkeyscCs t|jS)zReturn a list of keys.)listr6)rrrrkeysesz Mailbox.keysc cs@x:|jD].}y ||}Wntk r0w YnX|Vq WdS)z%Return an iterator over all messages.N)r6r&)rr#valuerrr itervaluesis  zMailbox.itervaluescCs|jS)N)r:)rrrr__iter__rszMailbox.__iter__cCs t|jS)z,Return a list of messages. Memory intensive.)r7r:)rrrrvaluesuszMailbox.valuesc csDx>|jD]2}y ||}Wntk r0w YnX||fVq WdS)z.Return an iterator over (key, message) tuples.N)r6r&)rr#r9rrr iteritemsys  zMailbox.iteritemscCs t|jS)z9Return a list of (key, message) tuples. Memory intensive.)r7r=)rrrritemssz Mailbox.itemscCs tddS)z9Return True if the keyed message exists, False otherwise.z&Method must be implemented by subclassN)r )rr#rrr __contains__szMailbox.__contains__cCs tddS)z*Return a count of messages in the mailbox.z&Method must be implemented by subclassN)r )rrrr__len__szMailbox.__len__cCs x|jD]}|j|q WdS)zDelete all messages.N)r8r')rr#rrrclearsz Mailbox.clearc Cs0y ||}Wntk r |SX|j||S)z3Delete the keyed message and return it, or default.)r&r')rr#r*resultrrrpops   z Mailbox.popcCs*x$|jD]}||j|fSWtddS)z6Delete an arbitrary (key, message) pair and return it.zNo messages in mailboxN)r6rCr&)rr#rrrpopitemszMailbox.popitemc Csxt|dr|j}nt|dr(|j}n|}d}x6|D].\}}y |||<Wq6tk rbd}Yq6Xq6W|rttddS)z4Change the messages that correspond to certain keys.r=r>FTzNo message with key(s)N)hasattrr=r>r&)rargsourceZbad_keyr#r!rrrupdates     zMailbox.updatecCs tddS)z&Write any pending changes to the disk.z&Method must be implemented by subclassN)r )rrrrflushsz Mailbox.flushcCs tddS)zLock the mailbox.z&Method must be implemented by subclassN)r )rrrrlocksz Mailbox.lockcCs tddS)z#Unlock the mailbox if it is locked.z&Method must be implemented by subclassN)r )rrrrunlockszMailbox.unlockcCs tddS)zFlush and close the mailbox.z&Method must be implemented by subclassN)r )rrrrclosesz Mailbox.closec Cs,y |jdStk r&tdYnXdS)Nrz?String input must be ASCII-only; use bytes or a Message instead)encode UnicodeError ValueError)rr!rrr_string_to_bytess zMailbox._string_to_bytesFc Cst|tjjrxtj}tjj||d}|j||j d|j }|j dt }|j ||jrt|jt  rt|j t nt|tttjfrt|tjrtjdtd|j}t|tr|j|}|r|j dd}|j dt }|j ||jo|jt  r|j t nt|drt|dr4tjd td|j}d }x|j}|jd r`|d dd}n|jd r||d dd}|sP|r|jdrd|dd }|j dt }|j ||}q:W|jr|r|jt  r|j t ntdt|d S)z%Dump message contents to target file.r z8Use of StringIO input is deprecated, use BytesIO insteads From s >From readbufferzDUse of text mode files is deprecated, use a binary mode file insteadNs  sFrom s>From zInvalid message type: %s) isinstancer1r!rioBytesIO generatorBytesGeneratorflattenseekrSreplacelinesepwrite_append_newlineendswithstrbytesStringIOwarningswarnDeprecationWarninggetvaluerPrErTreadline startswith TypeErrortype) rr!targetZ mangle_from_rTgendataZlastlinelinerrr _dump_messagesZ                   zMailbox._dump_message)NT)N)N)N)F)$__name__ __module__ __qualname____doc__rr"r$r%r'r(r+r)r,r5r3r/r6r8r:r;r<r=r>r?r@rArCrDrHrIrJrKrLrPrervrrrrr!sB       c@seZdZdZdZd6ddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd-Zd.d/Zd0d1Zd2d3Zd4d5ZdS)7rzA qmail-style Maildir mailbox.:NTcCstj||||tjj|jdtjj|jdtjj|jdd|_tjj|js|rtj|jdx*|jj D]}tj|dqnWn t |ji|_ ddd|_ d|_ d|_d S) zInitialize a Maildir instance.tmpnewcur)r|r}r~ir)r~r}g?N)rrrrjoinr_pathsexistsmkdirr<r_toc _toc_mtimes _last_read _skewfactor)rdirnamerrrrrrr s  zMaildir.__init__cCs~|j}y|j||Wn*tk rB|jtj|jYnXt|t|t r||j }|j |j }||j krd}nd}d}tj j|jj|j d}tj j|j|||}t|t rtj|jtj j|j|jfyLytj|j|Wn(ttfk rtj|j|YnXtj|jWnNtk rx}z0tj|j|jtjkrftd|nWYdd}~XnX|S)z$Add message and return assigned key.r}rz$Name clash with existing message: %sN) _create_tmprv BaseExceptionrLrr$name _sync_closer[r get_subdircolonget_inforbasenamesplitrrutimegetatimeget_datelinkAttributeErrorPermissionErrorrenameOSErrorerrnoZEEXISTr)rr!Ztmp_filesubdirsuffixuniqdesterrrr"!sB      z Maildir.addcCs tjtjj|j|j|dS)z=Remove the keyed message; raise KeyError if it doesn't exist.N)rr$rrr_lookup)rr#rrrr$KszMaildir.removec Cs,y|j|Wnttfk r&YnXdS)z'If the keyed message exists, remove it.N)r$r&FileNotFoundError)rr#rrrr'OszMaildir.discardc Cs|j|}|j|}|j|}t|tr.|}n|}tjj|}|j|kr`|j|j|jd}nd}|j |tjj |j |} tjj |j |||} t|trtj | tjj | |jftj| | dS)z>Replace the keyed message; raise KeyError if it doesn't exist.rWrNrZ)rr"r[r rrrrrr'rrrrrr) rr#r!Z old_subpathZtemp_keyZ temp_subpathZdominant_subpathrrZtmp_pathnew_pathrrrr(Ws"        zMaildir.__setitem__c Cs|j|}ttjj|j|d }|jr4|j|}nt|}WdQRXtjj|\}}|j ||j |kr|j |j|j d|j tjj tjj|j||S)z4Return a Message representation or raise a KeyError.rbNrWrZ)ropenrrrrrr r set_subdirrset_infoset_dategetmtime)rr#Zsubpathfmsgrrrrrr,rs    zMaildir.get_messagec Cs8ttjj|j|j|d}|jjtdSQRXdS)z2Return a bytes representation or raise a KeyError.rrQN) rrrrrrrSrbrc)rr#rrrrr3szMaildir.get_bytescCs$ttjj|j|j|d}t|S)z6Return a file-like representation or raise a KeyError.r)rrrrrr _ProxyFile)rr#rrrrr/szMaildir.get_filec csH|jx:|jD]0}y|j|Wntk r8wYnX|VqWdS)zReturn an iterator over keys.N)_refreshrrr&)rr#rrrr6s zMaildir.iterkeyscCs|j||jkS)z9Return True if the keyed message exists, False otherwise.)rr)rr#rrrr?szMaildir.__contains__cCs|jt|jS)z*Return a count of messages in the mailbox.)rlenr)rrrrr@szMaildir.__len__cCsdS)z"Write any pending changes to disk.Nr)rrrrrIsz Maildir.flushcCsdS)zLock the mailbox.Nr)rrrrrJsz Maildir.lockcCsdS)z#Unlock the mailbox if it is locked.Nr)rrrrrKszMaildir.unlockcCsdS)zFlush and close the mailbox.Nr)rrrrrLsz Maildir.closecCs`g}xVtj|jD]F}t|dkr|ddkrtjjtjj|j|r|j|ddqW|S)zReturn a list of folder names.rWr.N)rlistdirrrrisdirrappend)rrBentryrrr list_folderss zMaildir.list_folderscCs ttjj|jd||jddS)z/Return a Maildir instance for the named folder.rF)rr)rrrrrr)rfolderrrr get_folderszMaildir.get_foldercCs\tjj|jd|}t||jd}tjj|d}tjj|sXtjtj|tj tj Bd|S)z>Create a folder and return a Maildir instance representing it.r)rZ maildirfolderi) rrrrrrrrLrO_CREATO_WRONLY)rrrrBZmaildirfolder_pathrrr add_folders zMaildir.add_foldercCs,tjj|jd|}xTtjtjj|dtjtjj|dD](}t|dksZ|ddkr>td|q>WxPtj|D]B}|dkrv|dkrv|dkrvtjjtjj||rvtd||fqvWx`tj|d d D]N\}}}x |D]}tj tjj||qWx |D]}tj tjj||qWqWtj |d S) z-Delete the named folder, which must be empty.rr}r~rWrzFolder contains message(s): %sr|z%Folder contains subdirectory '%s': %sF)topdownN) rrrrrrrrwalkr$rmdir)rrrrrootdirsfilesrrr remove_folders   zMaildir.remove_foldercCs\tj}xNtjtjj|jdD]4}tjj|jd|}|tjj|dkr tj|q WdS)zDelete old files in "tmp".r|i@N)timerrrrrrr$)rnowrrrrrcleans z Maildir.cleanrWcCstj}tj}d|kr$|jdd}d|kr8|jdd}dt|t|ddtjtj|f}tj j |j d|}ytj |Wn@t k rtjd7_yt|Stk rYnXYnXtd |d S) z=Create a file in the tmp subdirectory and open and return it./z\057r{z\072z%s.M%sP%sQ%s.%srWg.Ar|z&Name clash prevented file creation: %sN)rsocket gethostnamerbintrgetpidr_countrrrstatr_create_carefullyFileExistsErrorr)rrZhostnamerrrrrrs&    zMaildir._create_tmpcCstj|jd|jkrbd}x<|jD]2}tjj|j|}||j|krLd}||j|<q$W|sbdSi|_xl|jD]b}|j|}xRtj |D]D}tjj ||}tjj |rq|j |j d}tjj |||j|<qWqpWtj|_dS)z!Update table of contents mapping.rUFTNr)rrrrrrrrrrrrrr)rZrefreshrmtimerrprrrrrs&    zMaildir._refreshcCszy,tjjtjj|j|j|r*|j|SWntk r@YnX|jy |j|Stk rttd|YnXdS)z=Use TOC to return subpath for given key, or raise a KeyError.zNo message with key: %sN)rrrrrrr&r)rr#rrrr#s zMaildir._lookupc CsVt|ds|j|_xReplace the keyed message; raise KeyError if it doesn't exist.TN)rrrr)rr#r!rrrr(hs z_singlefileMailbox.__setitem__ccs|j|jjEdHdS)zReturn an iterator over keys.N)rrr8)rrrrr6nsz_singlefileMailbox.iterkeyscCs|j||jkS)z9Return True if the keyed message exists, False otherwise.)rr)rr#rrrr?ssz_singlefileMailbox.__contains__cCs|jt|jS)z*Return a count of messages in the mailbox.)rrr)rrrrr@xsz_singlefileMailbox.__len__cCs|jst|jd|_dS)zLock the mailbox.TN)r _lock_filer)rrrrrJ}s z_singlefileMailbox.lockcCs|jrt|jd|_dS)z#Unlock the mailbox if it is locked.FN)r _unlock_filer)rrrrrKs z_singlefileMailbox.unlockc Cs|js |jrt|jd|_dS|jdk s.t|jjdd|jj}||jkrbt d|j|ft |j }yi}|j |xt |jjD]|}|j|\}}|jj||j||j}x0|jjtd||jj}|sP|j|qW||jf||<|j|qW|j|_Wn"|jtj|jYnXt||jjtj|j j} tj|j| ytj|j|j Wn2tk rtj|j tj|j|j YnXt|j d|_||_d|_d|_|jrt |jdddS) z"Write any pending changes to disk.FNrrUz4Size of mailbox file changed (expected %i, found %i)izrb+)dotlock)!rr _sync_flushrrAssertionErrorratellrr_create_temporaryr_pre_mailbox_hooksortedr8_pre_message_hookrSminrd_post_message_hookrLrr$rrrst_modechmodrrrrr) rZcur_lenZnew_fileZnew_tocr#startstopZ new_startrTmoderrrrIs`           z_singlefileMailbox.flushcCsdS)z,Called before writing the mailbox to file f.Nr)rrrrrrsz$_singlefileMailbox._pre_mailbox_hookcCsdS)z-Called before writing each message to file f.Nr)rrrrrrsz$_singlefileMailbox._pre_message_hookcCsdS)z,Called after writing each message to file f.Nr)rrrrrrsz%_singlefileMailbox._post_message_hookcCs4z |jWdz|jr|jWd|jjXXdS)zFlush and close the mailbox.N)rIrrKrrL)rrrrrLs   z_singlefileMailbox.closec CsJ|jdkr|j|dk rFy |j|Stk rDtd|YnXdS)z'Return (start, stop) or raise KeyError.NzNo message with key: %s)r _generate_tocr&)rr#rrrrs  z_singlefileMailbox._lookupc Cs|jjdd|jj}t|jdkr:|j r:|j|jy&|j|j|j|}|j |jWn"t k r|jj |YnX|jj |jj|_ |S)z;Append message to mailbox and return (start, stop) offsets.rrU)rrarrrrrr_install_messagerrtruncaterIr)rr!ZbeforeZoffsetsrrrrs       z"_singlefileMailbox._append_message)NT)N)rwrxryrzrr"r$r(r6r?r@rJrKrIrrrrLrrrrrrr>s"  @ rc@sBeZdZdZdZddZdddZddd Zdd d Zd d Z dS) _mboxMMDFzAn mbox or MMDF mailbox.TcCsp|j|\}}|jj||jjjtd}|jj||jj}|j|jtd}|j |ddj d|S)z4Return a Message representation or raise a KeyError.rQrXNr) rrrarnrbrcrSr_message_factoryset_fromdecode)rr#rr from_linestringrrrrr,s z_mboxMMDF.get_messageFcCstj|j|j|dS)z3Return a string representation or raise a KeyError.)unixfrom)r1r2r3r4)rr#from_rrrr5sz_mboxMMDF.get_stringcCsJ|j|\}}|jj||s(|jj|jj||jj}|jtdS)z3Return a string representation or raise a KeyError.rQ)rrrarnrSrrbrc)rr#rrrrrrrr3s   z_mboxMMDF.get_bytescCs<|j|\}}|jj||s(|jjt|j|jj|S)z6Return a file-like representation or raise a KeyError.)rrrarn _PartialFiler)rr#rrrrrrr/s   z_mboxMMDF.get_filecCs d}t|tr|j|}t|trf|jdrf|jd}|dkr\|d|}||dd}q|}d}nJt|tr|jjd}d|}n(t|t j j r|j }|dk r|jd}|dkrdt jt jj}|jj}|jj|t|j||j|j|jj}||fS) z1Format a message and blindly write to self._file.NsFrom rQrWrrsFrom MAILER-DAEMON rZ)r[rgrPrhrofind_mboxMMDFMessageget_fromrMr1r!r get_unixfromrasctimegmtimerrrdrcrv _mangle_from_)rr!rnewlineZauthorrrrrrr&s0         z_mboxMMDF._install_messageN)F)F)F) rwrxryrzrr,r5r3r/rrrrrrs  rc@s2eZdZdZdZdZd ddZddZdd ZdS) rzA classic mbox mailbox.TNcCst|_tj||||dS)zInitialize an mbox mailbox.N)r rrr)rrrrrrrrLsz mbox.__init__cCs|jtdS)z,Called after writing each message to file f.N)rdrc)rrrrrrQszmbox._post_message_hookcCsgg}}d}|jjdx|jj}|jj}|jdr|t|t|krl|rb|j|ttn |j||j|d}q|s|r|j|ttn |j|Pq|tkrd}qd}qWtt t |||_ t|j |_ |jj|_ dS)z0Generate key-to-(start, stop) table of contents.FrsFrom TN)rrarrnrorrrcdict enumerateziprrr)rstartsstopsZlast_was_emptyline_posrurrrrUs0         zmbox._generate_toc)NT) rwrxryrzrrerrrrrrrrCs  c@s2eZdZdZd ddZddZdd Zd d ZdS) rzAn MMDF mailbox.NTcCst|_tj||||dS)zInitialize an MMDF mailbox.N)r rrr)rrrrrrrrzsz MMDF.__init__cCs|jdtdS)z-Called before writing each message to file f.sN)rdrc)rrrrrrszMMDF._pre_message_hookcCs|jtdtdS)z,Called after writing each message to file f.sN)rdrc)rrrrrrszMMDF._post_message_hookcCsgg}}|jjdd}x|}|jj}|jj}|jdtr|j|xV|}|jj}|jj}|dtkr|j|ttPqN|sN|j|PqNWq|sPqWtt t |||_ t|j |_ |jjdd|jj|_ dS)z0Generate key-to-(start, stop) table of contents.rsrUN)rrarnrrorcrrrrrrrr)rrrnext_posrrurrrrs2          zMMDF._generate_toc)NT)rwrxryrzrrrrrrrrrws  c@seZdZdZd0ddZddZdd Zd d Zd d ZddZ ddZ ddZ ddZ ddZ ddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/ZdS)1rzAn MH mailbox.NTcCsttj||||tjj|jsj|r`tj|jdtjtjtjj |jdtj tj Btj Bdn t |jd|_dS)zInitialize an MH instance.iz .mh_sequencesiFN)rrrrrrrrLrrrO_EXCLrrr)rrrrrrrrs z MH.__init__cCs|j}t|dkrd}n t|d}tjj|jt|}t|}d}z|j rVt |zfy|j ||Wn:t k r|j rt |t|d}tj|YnXt|tr|j||Wd|j rt |XWd|st|X|S)z$Add message and return assigned key.rrWFTN)r8rmaxrrrrrgrrrrvrrrr$r[r _dump_sequences)rr!r8Znew_keyrrclosedrrrr"s6     zMH.addcCsxtjj|jt|}yt|d}Wn>tk r`}z"|jtjkrNt d|nWYdd}~XnX|j tj |dS)z=Remove the keyed message; raise KeyError if it doesn't exist.zrb+zNo message with key: %sN) rrrrrgrrrrr&rLr$)rr#rrrrrrr$s z MH.removecCstjj|jt|}yt|d}Wn>tk r`}z"|jtjkrNt d|nWYdd}~XnXzd|j rrt |z@tj tj|tj tjB|j||t|tr|j||Wd|j rt|XWdt|XdS)z>Replace the keyed message; raise KeyError if it doesn't exist.zrb+zNo message with key: %sN)rrrrrgrrrrr&rrrLrO_TRUNCrvr[r r rr)rr#r!rrrrrrr(s$   zMH.__setitem__c Csy@|jr$ttjj|jt|d}nttjj|jt|d}Wn>tk r~}z"|jtj krlt d|nWYdd}~XnX|2|jrt |z t |}Wd|jrt |XWdQRXx*|jjD]\}}||kr|j|qW|S)z4Return a Message representation or raise a KeyError.zrb+rzNo message with key: %sN)rrrrrrrgrrrr&rr r get_sequencesr> add_sequence)rr#rrrrkey_listrrrr,s&  zMH.get_messagec Csy@|jr$ttjj|jt|d}nttjj|jt|d}Wn>tk r~}z"|jtj krlt d|nWYdd}~XnX|6|jrt |z|j j tdS|jrt|XWdQRXdS)z2Return a bytes representation or raise a KeyError.zrb+rzNo message with key: %sNrQ)rrrrrrrgrrrr&rrSrbrcr)rr#rrrrrr3s z MH.get_bytescCsfyttjj|jt|d}Wn>tk r\}z"|jtjkrJt d|nWYdd}~XnXt |S)z6Return a file-like representation or raise a KeyError.rzNo message with key: %sN) rrrrrrgrrrr&r)rr#rrrrrr/)s z MH.get_filecCsttddtj|jDS)zReturn an iterator over keys.css|]}|jrt|VqdS)N)isdigitr).0rrrr 6szMH.iterkeys..)iterrrrr)rrrrr64sz MH.iterkeyscCstjjtjj|jt|S)z9Return True if the keyed message exists, False otherwise.)rrrrrrg)rr#rrrr?9szMH.__contains__cCstt|jS)z*Return a count of messages in the mailbox.)rr7r6)rrrrr@=sz MH.__len__cCs2|js.ttjj|jdd|_t|jd|_dS)zLock the mailbox.z .mh_sequenceszrb+TN)rrrrrrrr)rrrrrJAs zMH.lockcCs(|jr$t|jt|j|`d|_dS)z#Unlock the mailbox if it is locked.FN)rrrr)rrrrrKHs   z MH.unlockcCsdS)z&Write any pending changes to the disk.Nr)rrrrrIPszMH.flushcCs|jr|jdS)zFlush and close the mailbox.N)rrK)rrrrrLTszMH.closecCs@g}x6tj|jD]&}tjjtjj|j|r|j|qW|S)zReturn a list of folder names.)rrrrrrr)rrBrrrrrYs zMH.list_folderscCsttjj|j||jddS)z+Return an MH instance for the named folder.F)rr)rrrrrr)rrrrrrasz MH.get_foldercCsttjj|j||jdS)z:Create a folder and return an MH instance representing it.)r)rrrrrr)rrrrrrfsz MH.add_foldercCs`tjj|j|}tj|}|dgkr:tjtjj|dn|gkrDntd|jtj|dS)z-Delete the named folder, which must be empty.z .mh_sequenceszFolder not empty: %sN)rrrrrr$rr)rrrZentriesrrrrks  zMH.remove_folderc s i}ttjj|jdddd}t|jx|D]}y|jd\}}t}xT|jD]H}|jrr|j t |qVdd|jdD\}} |j t || d qVWfd d t |D||<t||d kr||=Wq2tk rtd |jYq2Xq2WWdQRX|S)z=Return a name-to-key-list dictionary to define each sequence.z .mh_sequencesrASCII)encodingr{css|]}t|VqdS)N)r)rxrrrrsz#MH.get_sequences..-rWcsg|]}|kr|qSrr)rr#)all_keysrr sz$MH.get_sequences..rz"Invalid sequence specification: %sN)rrrrrsetr8rrr"rrHrangerrrOrrstrip) rZresultsrrurcontentsr8specrrr)rrrws&    zMH.get_sequencesc Cs ttjj|jdddd}ztjtj|jtjtjBx|j D]\}}t |dkrXqB|j |dd}d}xbt t |D]R}|d |kr|sd }|j d n*|rd}|j d ||fn|j d ||}q|W|r|j t|dqB|j dqBWWdt|XdS)z:Set sequences using the given name-to-key-list dictionary.z .mh_sequenceszr+r)rrr{NFrWTrz%s %sz %s )rrrrrrLrrr r>rrdrrrgr)r sequencesrrr8prevZ completingr#rrr set_sequencess.   zMH.set_sequencesc CsL|j}d}g}x|jD]}|d|kr|j||dfy4tjtjj|jt|tjj|jt|dWnHt t fk rtj tjj|jt|tjj|jt|dYnXtj tjj|jt||d7}qW|d|_ t|dkrdSxB|jD]6\}}x*|D]"\}}||kr|||j|<qWqW|j|dS)z?Re-name messages to eliminate numbering gaps. Invalidates keys.rrWN)rr6rrrrrrrgrrrunlinkrrr>indexr$) rr"r#Zchangesr#rroldr}rrrpacks,      zMH.packcCs||j}|j}x<|jD]0\}}||kr6|j|q||kr||j|=qWx|D]}||krT|g||<qTW|j|dS)z;Inspect a new MHMessage and update sequences appropriately.N)rr>rr&r$)rr!r#Zpending_sequencesZ all_sequencesrrsequencerrrr s  zMH._dump_sequences)NT)rwrxryrzrr"r$r(r,r3r/r6r?r@rJrKrIrLrrrrrr$r(r rrrrrs. "  c@seZdZdZedddddddhZd%d d Zd dZddZddZ ddZ ddZ ddZ ddZ ddZddZdd Zd!d"Zd#d$Zd S)&rzAn Rmail-style Babyl mailbox.unseendeletedZfiledanswered forwardedZeditedresentNTcCstj||||i|_dS)zInitialize a Babyl mailbox.N)rr_labels)rrrrrrrrszBabyl.__init__cCs(tj||}t|tr$|j|j|<|S)z$Add message and return assigned key.)rr"r[r get_labelsr/)rr!r#rrrr"s  z Babyl.addcCs"tj||||jkr|j|=dS)z=Remove the keyed message; raise KeyError if it doesn't exist.N)rr$r/)rr#rrrr$s  z Babyl.removecCs*tj|||t|tr&|j|j|<dS)z>Replace the keyed message; raise KeyError if it doesn't exist.N)rr(r[r r0r/)rr#r!rrrr(s zBabyl.__setitem__c Cs |j|\}}|jj||jjtj}x4|jj}|dtksJ| rLP|j|jtdq.Wtj}x0|jj}|tks| rP|j|jtdqlW||jj }|dkst |jj |}|jtd}t |j |} | j|j ||jkr| j|j|| S)z4Return a Message representation or raise a KeyError.s *** EOOH ***rQr)rrrarnr\r]rcrdrbrrrSr rm set_visibler/ set_labels) rr#rroriginal_headersruZvisible_headersnZbodyrrrrr,s0        zBabyl.get_messagec Cs|j|\}}|jj||jjtj}x4|jj}|dtksJ| rLP|j|jtdq.Wx|jj}|tks|| rdPqdW|j }||jj }|dkst |jj |}|jtd}||S)z3Return a string representation or raise a KeyError.s *** EOOH ***rQr) rrrarnr\r]rcrdrbrmrrrS) rr#rrr3ruZheadersr4rtrrrr3s&       zBabyl.get_bytescCstj|j|jdtS)z6Return a file-like representation or raise a KeyError.rQ)r\r]r3rbrc)rr#rrrr/%szBabyl.get_filecCs@|jt}x|jjD]}|j|qW|j|jt|S)z4Return a list of user-defined labels in the mailbox.)rrr/r<rHdifference_update_special_labelsr7)rlabelsZ label_listrrrr0)s  zBabyl.get_labelscCs>gg}}|jjdd}g}x|}|jj}|jj}|dtkrt|t|krf|j|tt|j|dd|jjddjdD}|j|q |dks|dtkrt|t|kr|j|ttq |s |j|ttPq Wtt t |||_ tt ||_ t|j |_ |jjdd |jj|_dS) z0Generate key-to-(start, stop) table of contents.rs cSsg|]}|jr|jqSr)strip)rlabelrrrr@sz'Babyl._generate_toc..rWN,rU)rrarnrrcrrrrrrrr/rr)rrrrZ label_listsrrur7rrrr2s4        zBabyl._generate_toccCsVdt}|dt7}|j}dd|D}|ddj|t7}|d7}|j|dS) z,Called before writing the mailbox to file f.sBABYL OPTIONS:s Version: 5css|]}|jVqdS)N)rM)rr9rrrrUsz*Babyl._pre_mailbox_hook..sLabels:r:r;N)rcr0rrd)rrZbabylr7rrrrPs zBabyl._pre_mailbox_hookcCs|jdtdS)z-Called before writing each message to file f. N)rdrc)rrrrrrZszBabyl._pre_message_hookcCs|jtddS)z,Called after writing each message to file f.r;N)rdrc)rrrrrr^szBabyl._post_message_hookcCs|jj}t|trg}g}x0|jD]$}||jkr@|j|q&|j|q&W|jjdx |D]}|jjd|jq`W|jjdx$|D]}|jjd|jdqW|jjt n|jjdt t|t j j r0t j}t jj|dd}|j||jdx6|j}|jj|jd t |d ks8| r Pq W|jjd t t|trt j} t jj| dd} | j|jxz| j}|jj|jd t |d ks| rPqWnB|jdx6|j}|jj|jd t |d ks| rPqWx,|jd } | sP|jj| jd t qWnZt|ttt jfr,t|t jrhtjd td |j}t|tr~|j|}|jdd} | ddkr|jj|d| jd t |jjd t |jj|d| jd t |jj|| djd t n(|jjd t t |jj|jd t n^t |drzt |drXtjdtd |j!}|j} d}x|j}|j"dr|ddd }n|j"dr|ddd }|jj|jd t |d ks| rf|rd}|jjd t |j| nPqfWx|j}|sP|j"dr,|ddt }n:|j"drJ|ddt }n|j"d rf|ddt }|jj|qWnt#dt$||jj}||fS)z0Write message contents and return (start, stop).1s, s,, r:s1,,FrrQs *** EOOH ***iz8Use of StringIO input is deprecated, use BytesIO insteadrRs rUrWNrnrTzDUse of text mode files is deprecated, use a binary mode file insteadTs rVzInvalid message type: %srZrYrZrYrZrZ)%rrr[r r0r6rrdrMrcr1r!rr\r]r^r_r`rarnrb get_visiblerSrhrgrirjrkrlrmrPrrErTrfrprq)rr!rZspecial_labelsr7r9Z orig_bufferZorig_generatorruZ vis_bufferZ vis_generatorrTZ body_startZ original_posZ first_passrrrrrbs                         zBabyl._install_message)NT)rwrxryrz frozensetr6rr"r$r(r,r3r/r0rrrrrrrrrrs      c@s*eZdZdZd ddZddZddZdS) rz0Message with mailbox-format-specific properties.NcCst|tjjr4|jtj|t|tr|j|nt|trP|jtj |n~t|t rl|jtj |nbt|t j r|jtj|nDt|dr|jtj|n(|dkrtjjj|ntdt|dS)zInitialize a Message instance.rSNzInvalid message type: %s)r[r1r!r_become_messagecopydeepcopy _explain_torhr2rgZmessage_from_stringr\ TextIOWrapperZmessage_from_filerEZmessage_from_binary_filerrprq)rr!rrrrs      zMessage.__init__cCs8t|dg}x&|jD]}||kr|j||j|<qWdS)z0Assume the non-format-specific state of message._type_specific_attributesN)getattr__dict__)rr!Z type_specificrrrrrAs  zMessage._become_messagecCst|trdStddS)z:Copy format-specific state to message insofar as possible.Nz Cannot convert to specified type)r[rrp)rr!rrrrDs zMessage._explain_to)N)rwrxryrzrrArDrrrrrs c@s|eZdZdZdddgZdddZdd Zd d Zd d ZddZ ddZ ddZ ddZ ddZ ddZddZddZdS)r z)Message with Maildir-specific properties._subdir_info_dateNcCs&d|_d|_tj|_tj||dS)z%Initialize a MaildirMessage instance.r}rN)rIrJrrKrr)rr!rrrrs zMaildirMessage.__init__cCs|jS)zReturn 'new' or 'cur'.)rI)rrrrrszMaildirMessage.get_subdircCs(|dks|dkr||_n td|dS)zSet subdir to 'new' or 'cur'.r}r~z!subdir must be 'new' or 'cur': %sN)rIrO)rrrrrrszMaildirMessage.set_subdircCs"|jjdr|jddSdSdS)z*Return as a string the flags that are set.z2,rUNr)rJro)rrrr get_flags s zMaildirMessage.get_flagscCsddjt||_dS)z)Set the given flags and unset all others.z2,rN)rrrJ)rflagsrrr set_flagsszMaildirMessage.set_flagscCs$|jdjt|jt|BdS)z.Set the given flag(s) without changing others.rN)rNrrrL)rflagrrradd_flagszMaildirMessage.add_flagcCs,|jr(|jdjt|jt|dS)z7Unset the given string flag(s) without changing others.rN)rLrNrr)rrOrrr remove_flagszMaildirMessage.remove_flagcCs|jS)zSet "From " line, formatting and appending time_ if specified.NT )rrrr_)rrZtime_rrrrrs z_mboxMMDFMessage.set_fromcCs|jdd|jddS)z*Return as a string the flags that are set.StatusrzX-Status)r+)rrrrrLzsz_mboxMMDFMessage.get_flagscCst|}d \}}x&d D]}||kr||7}|j|qWx&d D]}||kr>||7}|j|q>W|djt|7}y|jd|Wn tk r|jd|YnXy|jd|Wn tk r|jd|YnXd S) z)Set the given flags and unset all others.rrUrVrXrYrZrazX-StatusN)rr)rUrV)rXrYrZ)rr$rrreplace_headerr&Z add_header)rrMZ status_flagsZ xstatus_flagsrOrrrrN~s&  z_mboxMMDFMessage.set_flagscCs$|jdjt|jt|BdS)z.Set the given flag(s) without changing others.rN)rNrrrL)rrOrrrrPsz_mboxMMDFMessage.add_flagcCs4d|ksd|kr0|jdjt|jt|dS)z7Unset the given string flag(s) without changing others.razX-StatusrN)rNrrrL)rrOrrrrQsz_mboxMMDFMessage.remove_flagc Cst|trt|j}d|kr(|jdd|kr:|jdd|krL|jdd|kr^|jdd|krp|jd|d =|d =d j|jjdd }y|j t j t j |dWnttfk rYnXn t|tr|j|j|j|jnt|trZt|j}d|kr$|jdd|kr8|jdd|krL|jd|d =|d =nt|trt|j}d|kr|jdd|kr|jdd|kr|jd|d =|d =nt|trntdt|d S)zACopy mbox- or MMDF-specific state to message insofar as possible.rVr~rYrZrUrTrXrWZstatuszx-statusr`rXNz%a %b %d %H:%M:%S %Yr*r[r\r+r,z$Cannot convert to specified type: %s)r[r rrLrrPrrrrcalendarZtimegmrZstrptimerO OverflowErrorrrNrr rr r^rrprq)rr!rMZ maybe_daterrrrDs^                          z_mboxMMDFMessage._explain_to)N)N) rwrxryrzrFrrrrLrNrPrQrDrrrrr`s  rc@seZdZdZdS)r z&Message with mbox-specific properties.N)rwrxryrzrrrrr sc@sHeZdZdZdgZdddZddZdd Zd d Zd d Z ddZ dS)r z$Message with MH-specific properties. _sequencesNcCsg|_tj||dS)z!Initialize an MHMessage instance.N)rfrr)rr!rrrrszMHMessage.__init__cCs|jddS)z4Return a list of sequences that include the message.N)rf)rrrrrszMHMessage.get_sequencescCst||_dS)z3Set the list of sequences that include the message.N)r7rf)rr"rrrr$szMHMessage.set_sequencescCs6t|tr"||jkr2|jj|ntdt|dS)z8Add sequence to list of sequences including the message.zsequence type must be str: %sN)r[rgrfrrprq)rr)rrrrs  zMHMessage.add_sequencec Cs*y|jj|Wntk r$YnXdS)zARemove sequence from the list of sequences including the message.N)rfr$rO)rr)rrrremove_sequenceszMHMessage.remove_sequencecCsJt|trdt|j}d|kr*|jdn|jd|jdd|krP|jdd|krb|jdnt|trt|j}d|kr|jdn |jd d|kr|jdd|kr|jd nt|trx||jD]}|j|qWn`t|t r(t|j}d|kr|j dd|krF|j d nt|t r6nt d t |d S)z6Copy MH-specific state to message insofar as possible.r*r~rTr\rYr[rUROrVrZr,z$Cannot convert to specified type: %sN)r[r rrrrPrr rr r^rrprq)rr!r"r)rrrrDs@                     zMHMessage._explain_to)N) rwrxryrzrFrrr$rrgrDrrrrr s c@sbeZdZdZddgZdddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ dS)r z'Message with Babyl-specific properties.r/_visibleNcCsg|_t|_tj||dS)z#Initialize a BabylMessage instance.N)r/rrir)rr!rrrr"szBabylMessage.__init__cCs|jddS)z'Return a list of labels on the message.N)r/)rrrrr0(szBabylMessage.get_labelscCst||_dS)z&Set the list of labels on the message.N)r7r/)rr7rrrr2,szBabylMessage.set_labelscCs6t|tr"||jkr2|jj|ntdt|dS)z+Add label to list of labels on the message.zlabel must be a string: %sN)r[rgr/rrprq)rr9rrrr^0s  zBabylMessage.add_labelc Cs*y|jj|Wntk r$YnXdS)z4Remove label from the list of labels on the message.N)r/r$rO)rr9rrr remove_label8szBabylMessage.remove_labelcCs t|jS)z3Return a Message representation of visible headers.)rri)rrrrr??szBabylMessage.get_visiblecCst||_dS)z2Set the Message representation of visible headers.N)rri)rZvisiblerrrr1CszBabylMessage.set_visiblecCsjx6|jjD](}||kr,|jj|||q |j|=q Wx,dD]$}||kr>||jkr>|||j|<q>WdS) z9Update and/or sensibly generate a set of visible headers.DateFromReply-ToToCCSubjectN)rkrlrmrnrorp)rir8rb)rheaderrrrupdate_visibleGs  zBabylMessage.update_visiblecCsvt|tr~t|j}d|kr*|jdn|jd|jdd|ksNd|krX|jdd|krj|jdd |kr||jd nt|trt|j}d|kr|jd n |jd d |kr|jd d|kr|jdnt|trt|j}d|kr|jdd|krr|jdnXt|t rT|j |j x<|jD]}|j |q>Wnt|t rbntdt|dS)z9Copy Babyl-specific state to message insofar as possible.r*r~rTr-r.r]r,rUr+rWrhrVrXrZr[z$Cannot convert to specified type: %sN)r[r rr0rrPrr rr r1r?r^rrprq)rr!r7r9rrrrDRsF                      zBabylMessage._explain_to)N)rwrxryrzrFrr0r2r^rjr?r1rrrDrrrrr s  c@seZdZdZdS)r z&Message with MMDF-specific properties.N)rwrxryrzrrrrr |sc@seZdZdZd&ddZd'ddZd(ddZd)d d Zd*d d Zd dZ ddZ d+ddZ ddZ ddZ ddZddZddZddZd d!Zd"d#Zed$d%ZdS),rzA read-only wrapper of a file.NcCs$||_|dkr|j|_n||_dS)zInitialize a _ProxyFile.N)rr_pos)rrposrrrrs z_ProxyFile.__init__cCs|j||jjS)z Read bytes.)_readrrS)rsizerrrrSsz_ProxyFile.readcCs|j||jjS)z Read bytes.)rurread1)rrvrrrrwsz_ProxyFile.read1cCs|j||jjS)z Read a line.)rurrn)rrvrrrrnsz_ProxyFile.readlinecCs>g}x4|D],}|j||dk r |t|8}|dkr Pq W|S)zRead multiple lines.Nr)rr)rsizehintrBrurrr readliness   z_ProxyFile.readlinesccs x|j}|sdS|VqWdS)zIterate over lines.N)rn)rrurrrr;s z_ProxyFile.__iter__cCs|jS)zReturn the position.)rs)rrrrrsz_ProxyFile.tellrcCs4|dkr|jj|j|jj|||jj|_dS)zChange position.rWN)rrarsr)roffsetwhencerrrrasz_ProxyFile.seekc Cs0t|dr,zt|jdr"|jjWd|`XdS)zClose the file.rrLN)rErrL)rrrrrLs   z_ProxyFile.closecCs2|dkr d}|jj|j||}|jj|_|S)z"Read size bytes using read_method.NrWrZ)rrarsr)rrv read_methodrBrrrrus  z_ProxyFile._readcCs|S)z$Context management protocol support.r)rrrr __enter__sz_ProxyFile.__enter__cGs |jdS)N)rL)rexcrrr__exit__sz_ProxyFile.__exit__cCs |jjS)N)rreadable)rrrrrsz_ProxyFile.readablecCs |jjS)N)rwritable)rrrrrsz_ProxyFile.writablecCs |jjS)N)rseekable)rrrrrsz_ProxyFile.seekablecCs |jjS)N)rrI)rrrrrIsz_ProxyFile.flushcCs&t|dsdSt|jdsdS|jjS)NrTr F)rErr )rrrrr s   z_ProxyFile.closed)N)N)N)N)N)r)rwrxryrzrrSrwrnryr;rrarLrur}rrrrrIpropertyr rrrrrs$        rc@s<eZdZdZdddZddZddd Zd d Zd d ZdS)rz&A read-only wrapper of part of a file.NcCstj|||||_||_dS)zInitialize a _PartialFile.N)rr_start_stop)rrrrrrrrsz_PartialFile.__init__cCstj||jS)z*Return the position with respect to start.)rrr)rrrrrsz_PartialFile.tellrcCs<|dkr|j|_d}n|dkr*|j|_d}tj|||dS)z8Change position, possibly with respect to start or stop.rrWrUN)rrsrrra)rrzr{rrrrasz_PartialFile.seekcCsB|j|j}|dkrdS|dks0|dks0||kr4|}tj|||S)z;Read size bytes using read_method, honoring start and stop.rrN)rrsrru)rrvr|Z remainingrrrrus  z_PartialFile._readcCst|dr|`dS)Nr)rEr)rrrrrLs z_PartialFile.close)NN)r) rwrxryrzrrrarurLrrrrrs    rTc4Csd}yZtrpytj|tjtjBWnJtk rn}z.|jtjtjtjfkr\t d|j nWYdd}~XnX|r^yt |j d}|j Wn:tk r}z|jtjtjfkrdSWYdd}~XnXy`yt j|j |j dd}Wn2ttfk rt j|j |j dd}YnXt j|j Wn0tk r\t j|j t d|j YnXWn8tr|tj|tj|rt j|j dYnXdS)z(Lock file f using lockf and dot locking.Fzlockf: lock unavailable: %sNz.lockTzdot lock unavailable: %s)fcntllockfZLOCK_EXZLOCK_NBrrZEAGAINrrrrrrLrrrrrr%rr$LOCK_UN)rrZ dotlock_donerZpre_lockrrrr sH    rcCs8trtj|tjtjj|jdr4tj|jddS)z*Unlock file f using lockf and dot locking.z.lockN)rrrrrrrr$)rrrrr4src Cs8tj|tjtjBtjBd}z t|dStj|XdS)zCCreate a file if it doesn't exist and open for reading and writing.izrb+N)rrrr O_RDWRrL)rfdrrrr;s rcCs$td|ttjtjtjfS)zBCreate a temp file based on path and open for reading and writing.z %s.%s.%s.%s)rrrrrrr)rrrrrCsrcCs$|jttdr tj|jdS)z0Ensure changes to file f are physically on disk.fsyncN)rIrErrfileno)rrrrrIs rcCst||jdS)z:Close file f, ensuring all changes are physically on disk.N)rrL)rrrrrOsrc@seZdZdZdS)rz"Raised for module-specific errors.N)rwrxryrzrrrrrUsc@seZdZdZdS)rz:The specified mailbox does not exist and won't be created.N)rwrxryrzrrrrrXsc@seZdZdZdS)rz>The specified mailbox is not empty and deletion was requested.N)rwrxryrzrrrrr[sc@seZdZdZdS)rz)Another process caused an action to fail.N)rwrxryrzrrrrr^sc@seZdZdZdS)rz)A file appears to have an invalid format.N)rwrxryrzrrrrras)T)0rzrrrdrrrBrjr1Z email.messageZemail.generatorr\r-r ImportError__all__rcrMrrrrrrrrr!rr rr r r r rrrrrrrr Exceptionrrrrrrrrrsp     h8DB4-3z%mqH_c' *