/usr/lib64/python3.9/__pycache__
NameSizeModeActions
abc.cpython-39.opt-1.pyc57750644editdlrm
abc.cpython-39.opt-2.pyc32160644editdlrm
abc.cpython-39.pyc57750644editdlrm
aifc.cpython-39.opt-1.pyc252660644editdlrm
aifc.cpython-39.opt-2.pyc200590644editdlrm
aifc.cpython-39.pyc252660644editdlrm
antigravity.cpython-39.opt-1.pyc8190644editdlrm
antigravity.cpython-39.opt-2.pyc6750644editdlrm
antigravity.cpython-39.pyc8190644editdlrm
argparse.cpython-39.opt-1.pyc635430644editdlrm
argparse.cpython-39.opt-2.pyc541790644editdlrm
argparse.cpython-39.pyc636540644editdlrm
ast.cpython-39.opt-1.pyc523320644editdlrm
ast.cpython-39.opt-2.pyc437870644editdlrm
ast.cpython-39.pyc523830644editdlrm
asynchat.cpython-39.opt-1.pyc68220644editdlrm
asynchat.cpython-39.opt-2.pyc54470644editdlrm
asynchat.cpython-39.pyc68220644editdlrm
asyncore.cpython-39.opt-1.pyc160360644editdlrm
asyncore.cpython-39.opt-2.pyc148320644editdlrm
asyncore.cpython-39.pyc160360644editdlrm
base64.cpython-39.opt-1.pyc163230644editdlrm
base64.cpython-39.opt-2.pyc108030644editdlrm
base64.cpython-39.pyc164550644editdlrm
bdb.cpython-39.opt-1.pyc245400644editdlrm
bdb.cpython-39.opt-2.pyc155030644editdlrm
bdb.cpython-39.pyc245400644editdlrm
binhex.cpython-39.opt-1.pyc129650644editdlrm
binhex.cpython-39.opt-2.pyc124310644editdlrm
binhex.cpython-39.pyc129650644editdlrm
bisect.cpython-39.opt-1.pyc23500644editdlrm
bisect.cpython-39.opt-2.pyc10380644editdlrm
bisect.cpython-39.pyc23500644editdlrm
bz2.cpython-39.opt-1.pyc115450644editdlrm
bz2.cpython-39.opt-2.pyc65290644editdlrm
bz2.cpython-39.pyc115450644editdlrm
calendar.cpython-39.opt-1.pyc270310644editdlrm
calendar.cpython-39.opt-2.pyc224390644editdlrm
calendar.cpython-39.pyc270310644editdlrm
cgi.cpython-39.opt-1.pyc264820644editdlrm
cgi.cpython-39.opt-2.pyc180560644editdlrm
cgi.cpython-39.pyc264820644editdlrm
cgitb.cpython-39.opt-1.pyc101860644editdlrm
cgitb.cpython-39.opt-2.pyc85870644editdlrm
cgitb.cpython-39.pyc101860644editdlrm
chunk.cpython-39.opt-1.pyc48410644editdlrm
chunk.cpython-39.opt-2.pyc26970644editdlrm
chunk.cpython-39.pyc48410644editdlrm
cmd.cpython-39.opt-1.pyc126760644editdlrm
cmd.cpython-39.opt-2.pyc72510644editdlrm
cmd.cpython-39.pyc126760644editdlrm
code.cpython-39.opt-1.pyc99160644editdlrm
code.cpython-39.opt-2.pyc46450644editdlrm
code.cpython-39.pyc99160644editdlrm
codecs.cpython-39.opt-1.pyc338880644editdlrm
codecs.cpython-39.opt-2.pyc183160644editdlrm
codecs.cpython-39.pyc338880644editdlrm
codeop.cpython-39.opt-1.pyc64580644editdlrm
codeop.cpython-39.opt-2.pyc23980644editdlrm
codeop.cpython-39.pyc64580644editdlrm
colorsys.cpython-39.opt-1.pyc32600644editdlrm
colorsys.cpython-39.opt-2.pyc26540644editdlrm
colorsys.cpython-39.pyc32600644editdlrm
compileall.cpython-39.opt-1.pyc125890644editdlrm
compileall.cpython-39.opt-2.pyc93300644editdlrm
compileall.cpython-39.pyc125890644editdlrm
configparser.cpython-39.opt-1.pyc458690644editdlrm
configparser.cpython-39.opt-2.pyc307290644editdlrm
configparser.cpython-39.pyc458690644editdlrm
contextlib.cpython-39.opt-1.pyc195280644editdlrm
contextlib.cpython-39.opt-2.pyc139430644editdlrm
contextlib.cpython-39.pyc195380644editdlrm
contextvars.cpython-39.opt-1.pyc2450644editdlrm
contextvars.cpython-39.opt-2.pyc2450644editdlrm
contextvars.cpython-39.pyc2450644editdlrm
copy.cpython-39.opt-1.pyc69630644editdlrm
copy.cpython-39.opt-2.pyc46600644editdlrm
copy.cpython-39.pyc69630644editdlrm
copyreg.cpython-39.opt-1.pyc44110644editdlrm
copyreg.cpython-39.opt-2.pyc36090644editdlrm
copyreg.cpython-39.pyc44300644editdlrm
cProfile.cpython-39.opt-1.pyc51160644editdlrm
cProfile.cpython-39.opt-2.pyc46550644editdlrm
cProfile.cpython-39.pyc51160644editdlrm
crypt.cpython-39.opt-1.pyc35130644editdlrm
crypt.cpython-39.opt-2.pyc28510644editdlrm
crypt.cpython-39.pyc35130644editdlrm
csv.cpython-39.opt-1.pyc118490644editdlrm
csv.cpython-39.opt-2.pyc98080644editdlrm
csv.cpython-39.pyc118490644editdlrm
dataclasses.cpython-39.opt-1.pyc232170644editdlrm
dataclasses.cpython-39.opt-2.pyc197780644editdlrm
dataclasses.cpython-39.pyc232170644editdlrm
datetime.cpython-39.opt-1.pyc569740644editdlrm
datetime.cpython-39.opt-2.pyc485300644editdlrm
datetime.cpython-39.pyc581150644editdlrm
decimal.cpython-39.opt-1.pyc3590644editdlrm
decimal.cpython-39.opt-2.pyc3590644editdlrm
decimal.cpython-39.pyc3590644editdlrm
difflib.cpython-39.opt-1.pyc585580644editdlrm
difflib.cpython-39.opt-2.pyc250240644editdlrm
difflib.cpython-39.pyc585800644editdlrm
dis.cpython-39.opt-1.pyc158200644editdlrm
dis.cpython-39.opt-2.pyc120130644editdlrm
dis.cpython-39.pyc158200644editdlrm
doctest.cpython-39.opt-1.pyc758320644editdlrm
doctest.cpython-39.opt-2.pyc405260644editdlrm
doctest.cpython-39.pyc760390644editdlrm
enum.cpython-39.opt-1.pyc260200644editdlrm
enum.cpython-39.opt-2.pyc210980644editdlrm
enum.cpython-39.pyc260200644editdlrm
filecmp.cpython-39.opt-1.pyc86220644editdlrm
filecmp.cpython-39.opt-2.pyc60840644editdlrm
filecmp.cpython-39.pyc86220644editdlrm
fileinput.cpython-39.opt-1.pyc137900644editdlrm
fileinput.cpython-39.opt-2.pyc81820644editdlrm
fileinput.cpython-39.pyc137900644editdlrm
fnmatch.cpython-39.opt-1.pyc38700644editdlrm
fnmatch.cpython-39.opt-2.pyc26620644editdlrm
fnmatch.cpython-39.pyc39420644editdlrm
formatter.cpython-39.opt-1.pyc175390644editdlrm
formatter.cpython-39.opt-2.pyc150990644editdlrm
formatter.cpython-39.pyc175390644editdlrm
fractions.cpython-39.opt-1.pyc180490644editdlrm
fractions.cpython-39.opt-2.pyc108490644editdlrm
fractions.cpython-39.pyc180490644editdlrm
ftplib.cpython-39.opt-1.pyc286940644editdlrm
ftplib.cpython-39.opt-2.pyc185500644editdlrm
ftplib.cpython-39.pyc286940644editdlrm
functools.cpython-39.opt-1.pyc287230644editdlrm
functools.cpython-39.opt-2.pyc220020644editdlrm
functools.cpython-39.pyc287230644editdlrm
genericpath.cpython-39.opt-1.pyc45410644editdlrm
genericpath.cpython-39.opt-2.pyc33580644editdlrm
genericpath.cpython-39.pyc45410644editdlrm
getopt.cpython-39.opt-1.pyc62420644editdlrm
getopt.cpython-39.opt-2.pyc36880644editdlrm
getopt.cpython-39.pyc62600644editdlrm
getpass.cpython-39.opt-1.pyc42000644editdlrm
getpass.cpython-39.opt-2.pyc30140644editdlrm
getpass.cpython-39.pyc42000644editdlrm
gettext.cpython-39.opt-1.pyc180730644editdlrm
gettext.cpython-39.opt-2.pyc173820644editdlrm
gettext.cpython-39.pyc180730644editdlrm
glob.cpython-39.opt-1.pyc45050644editdlrm
glob.cpython-39.opt-2.pyc36450644editdlrm
glob.cpython-39.pyc45440644editdlrm
graphlib.cpython-39.opt-1.pyc75220644editdlrm
graphlib.cpython-39.opt-2.pyc40860644editdlrm
graphlib.cpython-39.pyc75680644editdlrm
gzip.cpython-39.opt-1.pyc184940644editdlrm
gzip.cpython-39.opt-2.pyc146270644editdlrm
gzip.cpython-39.pyc184940644editdlrm
hashlib.cpython-39.opt-1.pyc52050644editdlrm
hashlib.cpython-39.opt-2.pyc48800644editdlrm
hashlib.cpython-39.pyc52050644editdlrm
heapq.cpython-39.opt-1.pyc140400644editdlrm
heapq.cpython-39.opt-2.pyc110240644editdlrm
heapq.cpython-39.pyc140400644editdlrm
hmac.cpython-39.opt-1.pyc71230644editdlrm
hmac.cpython-39.opt-2.pyc46040644editdlrm
hmac.cpython-39.pyc71230644editdlrm
imaplib.cpython-39.opt-1.pyc405070644editdlrm
imaplib.cpython-39.opt-2.pyc278240644editdlrm
imaplib.cpython-39.pyc426880644editdlrm
imghdr.cpython-39.opt-1.pyc41400644editdlrm
imghdr.cpython-39.opt-2.pyc38250644editdlrm
imghdr.cpython-39.pyc41400644editdlrm
imp.cpython-39.opt-1.pyc98510644editdlrm
imp.cpython-39.opt-2.pyc74860644editdlrm
imp.cpython-39.pyc98510644editdlrm
inspect.cpython-39.opt-1.pyc812300644editdlrm
inspect.cpython-39.opt-2.pyc561020644editdlrm
inspect.cpython-39.pyc814720644editdlrm
io.cpython-39.opt-1.pyc34080644editdlrm
io.cpython-39.opt-2.pyc19190644editdlrm
io.cpython-39.pyc34080644editdlrm
ipaddress.cpython-39.opt-1.pyc656820644editdlrm
ipaddress.cpython-39.opt-2.pyc397020644editdlrm
ipaddress.cpython-39.pyc656820644editdlrm
keyword.cpython-39.opt-1.pyc9160644editdlrm
keyword.cpython-39.opt-2.pyc5120644editdlrm
keyword.cpython-39.pyc9160644editdlrm
linecache.cpython-39.opt-1.pyc40280644editdlrm
linecache.cpython-39.opt-2.pyc27950644editdlrm
linecache.cpython-39.pyc40280644editdlrm
locale.cpython-39.opt-1.pyc346960644editdlrm
locale.cpython-39.opt-2.pyc300780644editdlrm
locale.cpython-39.pyc346960644editdlrm
lzma.cpython-39.opt-1.pyc120940644editdlrm
lzma.cpython-39.opt-2.pyc58960644editdlrm
lzma.cpython-39.pyc120940644editdlrm
mailbox.cpython-39.opt-1.pyc605460644editdlrm
mailbox.cpython-39.opt-2.pyc539420644editdlrm
mailbox.cpython-39.pyc606000644editdlrm
mailcap.cpython-39.opt-1.pyc72390644editdlrm
mailcap.cpython-39.opt-2.pyc56690644editdlrm
mailcap.cpython-39.pyc72390644editdlrm
mimetypes.cpython-39.opt-1.pyc160150644editdlrm
mimetypes.cpython-39.opt-2.pyc100000644editdlrm
mimetypes.cpython-39.pyc160150644editdlrm
modulefinder.cpython-39.opt-1.pyc160820644editdlrm
modulefinder.cpython-39.opt-2.pyc151730644editdlrm
modulefinder.cpython-39.pyc161280644editdlrm
netrc.cpython-39.opt-1.pyc37830644editdlrm
netrc.cpython-39.opt-2.pyc35450644editdlrm
netrc.cpython-39.pyc37830644editdlrm
nntplib.cpython-39.opt-1.pyc317630644editdlrm
nntplib.cpython-39.opt-2.pyc201630644editdlrm
nntplib.cpython-39.pyc317630644editdlrm
ntpath.cpython-39.opt-1.pyc142710644editdlrm
ntpath.cpython-39.opt-2.pyc122200644editdlrm
ntpath.cpython-39.pyc142710644editdlrm
nturl2path.cpython-39.opt-1.pyc17460644editdlrm
nturl2path.cpython-39.opt-2.pyc13270644editdlrm
nturl2path.cpython-39.pyc17460644editdlrm
numbers.cpython-39.opt-1.pyc123190644editdlrm
numbers.cpython-39.opt-2.pyc83620644editdlrm
numbers.cpython-39.pyc123190644editdlrm
opcode.cpython-39.opt-1.pyc52230644editdlrm
opcode.cpython-39.opt-2.pyc50820644editdlrm
opcode.cpython-39.pyc52230644editdlrm
operator.cpython-39.opt-1.pyc137840644editdlrm
operator.cpython-39.opt-2.pyc113950644editdlrm
operator.cpython-39.pyc137840644editdlrm
optparse.cpython-39.opt-1.pyc478880644editdlrm
optparse.cpython-39.opt-2.pyc355730644editdlrm
optparse.cpython-39.pyc479430644editdlrm
os.cpython-39.opt-1.pyc316300644editdlrm
os.cpython-39.opt-2.pyc194400644editdlrm
os.cpython-39.pyc316460644editdlrm
pathlib.cpython-39.opt-1.pyc435280644editdlrm
pathlib.cpython-39.opt-2.pyc346680644editdlrm
pathlib.cpython-39.pyc435280644editdlrm
pdb.cpython-39.opt-1.pyc475470644editdlrm
pdb.cpython-39.opt-2.pyc334760644editdlrm
pdb.cpython-39.pyc475860644editdlrm
pickle.cpython-39.opt-1.pyc470120644editdlrm
pickle.cpython-39.opt-2.pyc411420644editdlrm
pickle.cpython-39.pyc470980644editdlrm
pickletools.cpython-39.opt-1.pyc662930644editdlrm
pickletools.cpython-39.opt-2.pyc572000644editdlrm
pickletools.cpython-39.pyc671070644editdlrm
pipes.cpython-39.opt-1.pyc77950644editdlrm
pipes.cpython-39.opt-2.pyc49280644editdlrm
pipes.cpython-39.pyc77950644editdlrm
pkgutil.cpython-39.opt-1.pyc185660644editdlrm
pkgutil.cpython-39.opt-2.pyc118670644editdlrm
pkgutil.cpython-39.pyc185660644editdlrm
platform.cpython-39.opt-1.pyc264160644editdlrm
platform.cpython-39.opt-2.pyc183480644editdlrm
platform.cpython-39.pyc264160644editdlrm
plistlib.cpython-39.opt-1.pyc234960644editdlrm
plistlib.cpython-39.opt-2.pyc211370644editdlrm
plistlib.cpython-39.pyc235470644editdlrm
poplib.cpython-39.opt-1.pyc137540644editdlrm
poplib.cpython-39.opt-2.pyc88240644editdlrm
poplib.cpython-39.pyc137540644editdlrm
posixpath.cpython-39.opt-1.pyc106420644editdlrm
posixpath.cpython-39.opt-2.pyc89270644editdlrm
posixpath.cpython-39.pyc106420644editdlrm
pprint.cpython-39.opt-1.pyc167970644editdlrm
pprint.cpython-39.opt-2.pyc146400644editdlrm
pprint.cpython-39.pyc168300644editdlrm
profile.cpython-39.opt-1.pyc142230644editdlrm
profile.cpython-39.opt-2.pyc112450644editdlrm
profile.cpython-39.pyc144110644editdlrm
pstats.cpython-39.opt-1.pyc237520644editdlrm
pstats.cpython-39.opt-2.pyc208430644editdlrm
pstats.cpython-39.pyc237520644editdlrm
pty.cpython-39.opt-1.pyc39560644editdlrm
pty.cpython-39.opt-2.pyc31110644editdlrm
pty.cpython-39.pyc39560644editdlrm
pyclbr.cpython-39.opt-1.pyc104490644editdlrm
pyclbr.cpython-39.opt-2.pyc68480644editdlrm
pyclbr.cpython-39.pyc104490644editdlrm
pydoc.cpython-39.opt-1.pyc854280644editdlrm
pydoc.cpython-39.opt-2.pyc755460644editdlrm
pydoc.cpython-39.pyc854600644editdlrm
py_compile.cpython-39.opt-1.pyc73960644editdlrm
py_compile.cpython-39.opt-2.pyc36580644editdlrm
py_compile.cpython-39.pyc73960644editdlrm
queue.cpython-39.opt-1.pyc108760644editdlrm
queue.cpython-39.opt-2.pyc65260644editdlrm
queue.cpython-39.pyc108760644editdlrm
quopri.cpython-39.opt-1.pyc56030644editdlrm
quopri.cpython-39.opt-2.pyc45670644editdlrm
quopri.cpython-39.pyc57470644editdlrm
random.cpython-39.opt-1.pyc220430644editdlrm
random.cpython-39.opt-2.pyc145960644editdlrm
random.cpython-39.pyc220430644editdlrm
re.cpython-39.opt-1.pyc143620644editdlrm
re.cpython-39.opt-2.pyc60240644editdlrm
re.cpython-39.pyc143620644editdlrm
reprlib.cpython-39.opt-1.pyc53070644editdlrm
reprlib.cpython-39.opt-2.pyc51510644editdlrm
reprlib.cpython-39.pyc53070644editdlrm
rlcompleter.cpython-39.opt-1.pyc58060644editdlrm
rlcompleter.cpython-39.opt-2.pyc31430644editdlrm
rlcompleter.cpython-39.pyc58060644editdlrm
runpy.cpython-39.opt-1.pyc93850644editdlrm
runpy.cpython-39.opt-2.pyc69430644editdlrm
runpy.cpython-39.pyc93850644editdlrm
sched.cpython-39.opt-1.pyc66330644editdlrm
sched.cpython-39.opt-2.pyc36050644editdlrm
sched.cpython-39.pyc66330644editdlrm
secrets.cpython-39.opt-1.pyc21800644editdlrm
secrets.cpython-39.opt-2.pyc11220644editdlrm
secrets.cpython-39.pyc21800644editdlrm
selectors.cpython-39.opt-1.pyc172450644editdlrm
selectors.cpython-39.opt-2.pyc131360644editdlrm
selectors.cpython-39.pyc172450644editdlrm
shelve.cpython-39.opt-1.pyc95440644editdlrm
shelve.cpython-39.opt-2.pyc53930644editdlrm
shelve.cpython-39.pyc95440644editdlrm
shlex.cpython-39.opt-1.pyc77340644editdlrm
shlex.cpython-39.opt-2.pyc71760644editdlrm
shlex.cpython-39.pyc77340644editdlrm
shutil.cpython-39.opt-1.pyc384970644editdlrm
shutil.cpython-39.opt-2.pyc264290644editdlrm
shutil.cpython-39.pyc384970644editdlrm
signal.cpython-39.opt-1.pyc30060644editdlrm
signal.cpython-39.opt-2.pyc27820644editdlrm
signal.cpython-39.pyc30060644editdlrm
site.cpython-39.opt-1.pyc172290644editdlrm
site.cpython-39.opt-2.pyc115550644editdlrm
site.cpython-39.pyc172290644editdlrm
smtpd.cpython-39.opt-1.pyc265240644editdlrm
smtpd.cpython-39.opt-2.pyc239040644editdlrm
smtpd.cpython-39.pyc265240644editdlrm
smtplib.cpython-39.opt-1.pyc358850644editdlrm
smtplib.cpython-39.opt-2.pyc195230644editdlrm
smtplib.cpython-39.pyc359300644editdlrm
sndhdr.cpython-39.opt-1.pyc69930644editdlrm
sndhdr.cpython-39.opt-2.pyc57180644editdlrm
sndhdr.cpython-39.pyc69930644editdlrm
socket.cpython-39.opt-1.pyc289760644editdlrm
socket.cpython-39.opt-2.pyc204370644editdlrm
socket.cpython-39.pyc290000644editdlrm
socketserver.cpython-39.opt-1.pyc255150644editdlrm
socketserver.cpython-39.opt-2.pyc147990644editdlrm
socketserver.cpython-39.pyc255150644editdlrm
sre_compile.cpython-39.opt-1.pyc149590644editdlrm
sre_compile.cpython-39.opt-2.pyc145450644editdlrm
sre_compile.cpython-39.pyc151540644editdlrm
sre_constants.cpython-39.opt-1.pyc63360644editdlrm
sre_constants.cpython-39.opt-2.pyc59110644editdlrm
sre_constants.cpython-39.pyc63360644editdlrm
sre_parse.cpython-39.opt-1.pyc217720644editdlrm
sre_parse.cpython-39.opt-2.pyc217240644editdlrm
sre_parse.cpython-39.pyc218090644editdlrm
ssl.cpython-39.opt-1.pyc451060644editdlrm
ssl.cpython-39.opt-2.pyc341220644editdlrm
ssl.cpython-39.pyc451060644editdlrm
stat.cpython-39.opt-1.pyc43720644editdlrm
stat.cpython-39.opt-2.pyc35890644editdlrm
stat.cpython-39.pyc43720644editdlrm
statistics.cpython-39.opt-1.pyc317840644editdlrm
statistics.cpython-39.opt-2.pyc159110644editdlrm
statistics.cpython-39.pyc319780644editdlrm
string.cpython-39.opt-1.pyc71650644editdlrm
string.cpython-39.opt-2.pyc60590644editdlrm
string.cpython-39.pyc71650644editdlrm
stringprep.cpython-39.opt-1.pyc99460644editdlrm
stringprep.cpython-39.opt-2.pyc97280644editdlrm
stringprep.cpython-39.pyc99860644editdlrm
struct.cpython-39.opt-1.pyc3060644editdlrm
struct.cpython-39.opt-2.pyc3060644editdlrm
struct.cpython-39.pyc3060644editdlrm
subprocess.cpython-39.opt-1.pyc443100644editdlrm
subprocess.cpython-39.opt-2.pyc322720644editdlrm
subprocess.cpython-39.pyc443860644editdlrm
sunau.cpython-39.opt-1.pyc168170644editdlrm
sunau.cpython-39.opt-2.pyc122270644editdlrm
sunau.cpython-39.pyc168170644editdlrm
symbol.cpython-39.opt-1.pyc25790644editdlrm
symbol.cpython-39.opt-2.pyc25030644editdlrm
symbol.cpython-39.pyc25790644editdlrm
symtable.cpython-39.opt-1.pyc110880644editdlrm
symtable.cpython-39.opt-2.pyc103590644editdlrm
symtable.cpython-39.pyc111660644editdlrm
sysconfig.cpython-39.opt-1.pyc162040644editdlrm
sysconfig.cpython-39.opt-2.pyc138260644editdlrm
sysconfig.cpython-39.pyc162040644editdlrm
tabnanny.cpython-39.opt-1.pyc70650644editdlrm
tabnanny.cpython-39.opt-2.pyc61320644editdlrm
tabnanny.cpython-39.pyc70650644editdlrm
tarfile.cpython-39.opt-1.pyc737630644editdlrm
tarfile.cpython-39.opt-2.pyc585050644editdlrm
tarfile.cpython-39.pyc737780644editdlrm
telnetlib.cpython-39.opt-1.pyc183310644editdlrm
telnetlib.cpython-39.opt-2.pyc108290644editdlrm
telnetlib.cpython-39.pyc183310644editdlrm
tempfile.cpython-39.opt-1.pyc236560644editdlrm
tempfile.cpython-39.opt-2.pyc171300644editdlrm
tempfile.cpython-39.pyc236560644editdlrm
textwrap.cpython-39.opt-1.pyc134630644editdlrm
textwrap.cpython-39.opt-2.pyc62540644editdlrm
textwrap.cpython-39.pyc135210644editdlrm
this.cpython-39.opt-1.pyc12590644editdlrm
this.cpython-39.opt-2.pyc12590644editdlrm
this.cpython-39.pyc12590644editdlrm
threading.cpython-39.opt-1.pyc417160644editdlrm
threading.cpython-39.opt-2.pyc245290644editdlrm
threading.cpython-39.pyc421810644editdlrm
timeit.cpython-39.opt-1.pyc117560644editdlrm
timeit.cpython-39.opt-2.pyc59020644editdlrm
timeit.cpython-39.pyc117560644editdlrm
token.cpython-39.opt-1.pyc24960644editdlrm
token.cpython-39.opt-2.pyc24630644editdlrm
token.cpython-39.pyc24960644editdlrm
tokenize.cpython-39.opt-1.pyc171370644editdlrm
tokenize.cpython-39.opt-2.pyc133730644editdlrm
tokenize.cpython-39.pyc171650644editdlrm
trace.cpython-39.opt-1.pyc197590644editdlrm
trace.cpython-39.opt-2.pyc167440644editdlrm
trace.cpython-39.pyc197590644editdlrm
traceback.cpython-39.opt-1.pyc204400644editdlrm
traceback.cpython-39.opt-2.pyc114870644editdlrm
traceback.cpython-39.pyc204400644editdlrm
tracemalloc.cpython-39.opt-1.pyc179350644editdlrm
tracemalloc.cpython-39.opt-2.pyc165220644editdlrm
tracemalloc.cpython-39.pyc179350644editdlrm
tty.cpython-39.opt-1.pyc10780644editdlrm
tty.cpython-39.opt-2.pyc9690644editdlrm
tty.cpython-39.pyc10780644editdlrm
types.cpython-39.opt-1.pyc92360644editdlrm
types.cpython-39.opt-2.pyc80140644editdlrm
types.cpython-39.pyc92360644editdlrm
typing.cpython-39.opt-1.pyc718050644editdlrm
typing.cpython-39.opt-2.pyc505570644editdlrm
typing.cpython-39.pyc719350644editdlrm
uu.cpython-39.opt-1.pyc38470644editdlrm
uu.cpython-39.opt-2.pyc36030644editdlrm
uu.cpython-39.pyc38470644editdlrm
uuid.cpython-39.opt-1.pyc223970644editdlrm
uuid.cpython-39.opt-2.pyc146840644editdlrm
uuid.cpython-39.pyc225100644editdlrm
warnings.cpython-39.opt-1.pyc131660644editdlrm
warnings.cpython-39.opt-2.pyc108910644editdlrm
warnings.cpython-39.pyc136050644editdlrm
wave.cpython-39.opt-1.pyc178440644editdlrm
wave.cpython-39.opt-2.pyc118520644editdlrm
wave.cpython-39.pyc178730644editdlrm
weakref.cpython-39.opt-1.pyc202710644editdlrm
weakref.cpython-39.opt-2.pyc169860644editdlrm
weakref.cpython-39.pyc202850644editdlrm
webbrowser.cpython-39.opt-1.pyc175650644editdlrm
webbrowser.cpython-39.opt-2.pyc150860644editdlrm
webbrowser.cpython-39.pyc175820644editdlrm
xdrlib.cpython-39.opt-1.pyc82430644editdlrm
xdrlib.cpython-39.opt-2.pyc77580644editdlrm
xdrlib.cpython-39.pyc82430644editdlrm
zipapp.cpython-39.opt-1.pyc59850644editdlrm
zipapp.cpython-39.opt-2.pyc48090644editdlrm
zipapp.cpython-39.pyc59850644editdlrm
zipfile.cpython-39.opt-1.pyc598670644editdlrm
zipfile.cpython-39.opt-2.pyc508790644editdlrm
zipfile.cpython-39.pyc598880644editdlrm
zipimport.cpython-39.opt-1.pyc171590644editdlrm
zipimport.cpython-39.opt-2.pyc136410644editdlrm
zipimport.cpython-39.pyc172370644editdlrm
_aix_support.cpython-39.opt-1.pyc30460644editdlrm
_aix_support.cpython-39.opt-2.pyc16910644editdlrm
_aix_support.cpython-39.pyc30460644editdlrm
_bootlocale.cpython-39.opt-1.pyc12170644editdlrm
_bootlocale.cpython-39.opt-2.pyc9920644editdlrm
_bootlocale.cpython-39.pyc12270644editdlrm
_bootsubprocess.cpython-39.opt-1.pyc22450644editdlrm
_bootsubprocess.cpython-39.opt-2.pyc20160644editdlrm
_bootsubprocess.cpython-39.pyc22450644editdlrm
_collections_abc.cpython-39.opt-1.pyc317310644editdlrm
_collections_abc.cpython-39.opt-2.pyc262410644editdlrm
_collections_abc.cpython-39.pyc317310644editdlrm
_compat_pickle.cpython-39.opt-1.pyc54350644editdlrm
_compat_pickle.cpython-39.opt-2.pyc54350644editdlrm
_compat_pickle.cpython-39.pyc54880644editdlrm
_compression.cpython-39.opt-1.pyc41980644editdlrm
_compression.cpython-39.opt-2.pyc39840644editdlrm
_compression.cpython-39.pyc41980644editdlrm
_markupbase.cpython-39.opt-1.pyc76260644editdlrm
_markupbase.cpython-39.opt-2.pyc72480644editdlrm
_markupbase.cpython-39.pyc77770644editdlrm
_osx_support.cpython-39.opt-1.pyc115820644editdlrm
_osx_support.cpython-39.opt-2.pyc88920644editdlrm
_osx_support.cpython-39.pyc115820644editdlrm
_pydecimal.cpython-39.opt-1.pyc1606130644editdlrm
_pydecimal.cpython-39.opt-2.pyc789960644editdlrm
_pydecimal.cpython-39.pyc1606130644editdlrm
_pyio.cpython-39.opt-1.pyc743670644editdlrm
_pyio.cpython-39.opt-2.pyc515700644editdlrm
_pyio.cpython-39.pyc743870644editdlrm
_py_abc.cpython-39.opt-1.pyc46340644editdlrm
_py_abc.cpython-39.opt-2.pyc34210644editdlrm
_py_abc.cpython-39.pyc46560644editdlrm
_sitebuiltins.cpython-39.opt-1.pyc35010644editdlrm
_sitebuiltins.cpython-39.opt-2.pyc29770644editdlrm
_sitebuiltins.cpython-39.pyc35010644editdlrm
_strptime.cpython-39.opt-1.pyc160150644editdlrm
_strptime.cpython-39.opt-2.pyc122870644editdlrm
_strptime.cpython-39.pyc160150644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-1.pyc307880644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-2.pyc307880644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.pyc307880644editdlrm
_threading_local.cpython-39.opt-1.pyc65060644editdlrm
_threading_local.cpython-39.opt-2.pyc31860644editdlrm
_threading_local.cpython-39.pyc65060644editdlrm
_weakrefset.cpython-39.opt-1.pyc77240644editdlrm
_weakrefset.cpython-39.opt-2.pyc77240644editdlrm
_weakrefset.cpython-39.pyc77240644editdlrm
__future__.cpython-39.opt-1.pyc41260644editdlrm
__future__.cpython-39.opt-2.pyc21540644editdlrm
__future__.cpython-39.pyc41260644editdlrm
__phello__.foo.cpython-39.opt-1.pyc1290644editdlrm
__phello__.foo.cpython-39.opt-2.pyc1290644editdlrm
__phello__.foo.cpython-39.pyc1290644editdlrm
Edit: /usr/lib64/python3.9/__pycache__/nntplib.cpython-39.pyc (31763B)
a i? @s>dZddlZddlZddlZddlZddlZz ddlZWneyNdZYn0dZddl m Z ddlm Z gdZ dZGd d d eZGd d d eZGd ddeZGdddeZGdddeZGdddeZdZdZhdZgdZdddZdZedgdZedgd Zd!d"Z d#d$ZdZd%d&Z d[d'd(Z!d\d)d*Z"erZd+d,Z#Gd-d.d.Z$erGd/d0d0e$Z%e &d0e'd1kr:ddl(Z(e(j)d2d3Z*e*j+d4d5d6d7d8e*j+d9d:d;dd?e,d@eefdAe*j+dBdCdDe,dEdAe*j+dFdGdHddIdJe*-Z.e.j/Z/e.jsBe/d?kr2eZ/e$e.j0e/dKZ1ne/d?krPeZ/e%e.j0e/dKZ1e12Z3dLe3vrxe14e15e.j5\Z6Z7Z8Z9Z:e;dMe:dNe7dOe8dPe9dQdRZdSZ8e1?e8e9\Z6Z@e@D]Z\ZAZBe eBdTCdUdSdZDe eBdVZEe,eBdZFe;dWGeAe>> from nntplib import NNTP >>> s = NNTP('news') >>> resp, count, first, last, name = s.group('comp.lang.python') >>> print('Group', name, 'has', count, 'articles, range', first, 'to', last) Group comp.lang.python has 51 articles, range 5770 to 5821 >>> resp, subs = s.xhdr('subject', '{0}-{1}'.format(first, last)) >>> resp = s.quit() >>> Here 'resp' is the server response line. Error responses are turned into exceptions. To post an article from a file: >>> f = open(filename, 'rb') # file containing article, including header >>> resp = s.post(f) >>> For descriptions of all methods, read the comments in the code below. Note that all arguments and return values representing article numbers are strings, not numbers, since they are rarely used for calculations. NFT) decode_header)_GLOBAL_DEFAULT_TIMEOUT)NNTP NNTPErrorNNTPReplyErrorNNTPTemporaryErrorNNTPPermanentErrorNNTPProtocolError NNTPDataErrorric@seZdZdZddZdS)rz%Base class for all nntplib exceptionscGs>tj|g|Rz|d|_Wnty8d|_Yn0dS)NrzNo response given) Exception__init__response IndexError)selfargsr/usr/lib64/python3.9/nntplib.pyr bs  zNNTPError.__init__N)__name__ __module__ __qualname____doc__r rrrrr`src@seZdZdZdS)rzUnexpected [123]xx replyNrrrrrrrrrisrc@seZdZdZdS)rz 4xx errorsNrrrrrrmsrc@seZdZdZdS)rz 5xx errorsNrrrrrrqsrc@seZdZdZdS)r z"Response does not begin with [1-5]Nrrrrrr usr c@seZdZdZdS)r zError in response dataNrrrrrr ysr wi3> Z101Z220Z282Z230Z100215Z231Z225Z224Z221Z222211)subjectfromdatez message-idZ references:bytes:linesrr)byteslines GroupInfo)grouplastfirstflag ArticleInfo)number message_idr!cCsJg}t|D]2\}}t|tr4|||p,dq ||q d|S)zvTakes a unicode string representing a munged header value and decodes it as a (possibly non-ASCII) readable value.ascii)_email_decode_header isinstancer appenddecodejoin)Z header_strpartsvencrrrrs   rcCsg}|D]`}|ddkr:|ddd\}}}d|}n|d\}}}|}t||}||qt}t|t|krtd|dt||krtd|S)zParse a list of string representing the response to LIST OVERVIEW.FMT and return a list of header/metadata names. Raises NNTPDataError if the response is not compliant (cf. RFC 3977, section 8.4).r:Nz$LIST OVERVIEW.FMT response too shortz*LIST OVERVIEW.FMT redefines default fields) partitionlower_OVERVIEW_FMT_ALTERNATIVESgetr/_DEFAULT_OVERVIEW_FMTlenr )r!fmtlinename_suffixdefaultsrrr_parse_overview_fmts    rCcCstt}g}|D]}i}|d^}}t|}t|D]\} } | t|krLq6|| } | d} | |kr| s| d} | r| dt| | krtd| r| t| dnd} | ||| <q6|||fq|S)zZParse the response to an OVER or XOVER command according to the overview format `fmt`. r5z: Nz?OVER/XOVER response doesn't include names of additional headers) r<r;splitint enumerate startswithr8r r/)r!r=Zdata_process_funcZ n_defaultsZoverviewr>fieldsZarticle_numbertokensitoken field_nameZ is_metadatahrrr_parse_overviews&   rOcCs|dur |dd}|dd}t|dd}t|dd}t|dd}t|dd}t|dd}t|dd}|dkr|d7}n|d kr|d 7}t||||||S) zParse a pair of (date, time) strings, and return a datetime object. If only the date is given, it is assumed to be date and time concatenated together (e.g. response to the DATE command). NiFidil)rFdatetime)date_strtime_strZhoursZminutesZsecondsyearZmonthZdayrrr_parse_datetimes   rZcCsPt|tjsd}n d|}|j}|r<|d}d||}n d||}||fS)aPFormat a date or datetime object as a pair of (date, time) strings in the format required by the NEWNEWS and NEWGROUPS commands. If a date object is passed, the time is assumed to be midnight (00h00). The returned representation depends on the legacy flag: * if legacy is False (the default): date has the YYYYMMDD format and time the HHMMSS format * if legacy is True: date has the YYMMDD format and time the HHMMSS format. RFC 3977 compliant servers should understand both formats; therefore, legacy is only needed when talking to old servers. Z000000z({0.hour:02d}{0.minute:02d}{0.second:02d}rUz{0:02d}{1.month:02d}{1.day:02d}z{0:04d}{1.month:02d}{1.day:02d})r.rVformatrY)ZdtlegacyrXyrWrrr_unparse_datetimes   r^cCs|durt}|j||dS)zWrap a socket in SSL/TLS. Arguments: - sock: Socket to wrap - context: SSL context to use for the encrypted connection Returns: - sock: New, encrypted socket. N)Zserver_hostname)sslZ_create_stdlib_contextZ wrap_socket)sockcontexthostnamerrr _encrypt_onsrcc@seZdZdZdZeddddefddZddZd d Z d d Z d dZ ddZ ddZ ddZeZddZddZdiddZddZdjddZd d!Zdkd"d#Zdld$d%Zd&d'Zd(d)Zd*d+Zdd,d-d.Zdd,d/d0Zdmdd,d1d2Zd3d4Zd5d6Zd7d8Z d9d:Z!dd,d;d<Z"d=d>Z#d?d@Z$dndAdBZ%dCdDZ&dEdFZ'dodGdHZ(dpdd,dIdJZ)dqdd,dKdLZ*drdd,dMdNZ+dOdPZ,dd,dQdRZ-dd,dSdTZ.dd,dUdVZ/dWdXZ0dYdZZ1d[d\Z2d]d^Z3d_d`Z4dadbZ5dsdcddZ6dedfZ7e8rdtdgdhZ9dS)urzutf-8surrogateescapeNFcCs~||_||_|||_d|_z2|jd|_|||s@|rN||||Wn(|jrh|j|jYn0dS)a,Initialize an instance. Arguments: - host: hostname to connect to - port: port to connect to (default the standard NNTP port) - user: username to authenticate with - password: password to use with username - readermode: if true, send 'mode reader' command after connecting. - usenetrc: allow loading username and password from ~/.netrc file if not specified explicitly - timeout: timeout (in seconds) used for socket connections readermode is sometimes necessary if you are connecting to an NNTP server on the local machine and intend to call reader-specific commands, such as `group'. If you get unexpected NNTPPermanentErrors, you might need to set readermode. Nrwb) hostport_create_socketr`filemakefile _base_initloginclose)rrfrguserpassword readermodeusenetrctimeoutrrrr 8s    z NNTP.__init__cCs^d|_||_d|_|d|_|rNd|jvrN||jsNd|_|d|_d|_dS)z~Partial initialization for the NNTP protocol. This instance method is extracted for supporting the test code. rNFREADER) debugging_getrespwelcome_capsgetcapabilitiesreadermode_afterauth_setreadermodetls_on authenticated)rrprrrrk[s  zNNTP._base_initcCs|SNrrrrr __enter__}szNNTP.__enter__c s^fdd}|rZz6z Wnttfy6Yn0W|rZn|rX0dS)Ncs tdS)Nri)hasattrrr~rrzNNTP.__exit__..)quitOSErrorEOFError_close)rrZ is_connectedrr~r__exit__s   z NNTP.__exit__cCs<|dur|stdtd||j|jt|j|jf|S)Nz0Non-blocking socket (timeout=0) is not supportedznntplib.connect) ValueErrorsysauditrfrgsocketcreate_connection)rrrrrrrhs zNNTP._create_socketcCs|jrtdt|j|jS)zGet the welcome message from the server (this is read and squirreled away by __init__()). If the response code is 200, posting is allowed; if it 201, posting is not allowed.z *welcome*)rtprintreprrvr~rrr getwelcomeszNNTP.getwelcomec Cs|jdur~d|_d|_z|\}}WnttfyBi|_Yn<0||_d|vrfttt|d|_d|vr~d |d|_|jS)zGet the server capabilities, as read by __init__(). If the CAPABILITIES command is not supported, an empty dict is returned.Nr6VERSIONZIMPLEMENTATION ) rw nntp_versionZnntp_implementation capabilitiesrrmaxmaprFr1)rrespcapsrrrrxs  zNNTP.getcapabilitiescCs ||_dS)zSet the debugging level. Argument 'level' means: 0: no debugging output (default) 1: print commands and responses but not body text etc. 2: also print raw lines read and sent before stripping CR/LFN)rt)rlevelrrrset_debuglevelszNNTP.set_debuglevelcCsHtd|||t}|jdkr.tdt||j||jdS)zfInternal: send one line to the server, appending CRLF. The `line` must be a bytes-like object.znntplib.putliner6z*put*N) rr_CRLFrtrrriwriteflushrr>rrr_putlines  z NNTP._putlinecCs2|jrtdt|||j|j}||dS)zkInternal: send one command to the server (through _putline()). The `line` must be a unicode string.z*cmd*N)rtrrencodeencodingerrorsrrrrr_putcmdsz NNTP._putcmdTcCs|jtd}t|tkr$td|jdkrrrr_getlines   z NNTP._getlinecCsl|}|jrtdt|||j|j}|dd}|dkrHt||dkrXt||dvrht ||S)zInternal: get a response from the server. Raise various errors if the response indicates an error. Returns a unicode string.z*resp*Nr645Z123) rrtrrr0rrrrr )rrcrrrrus z NNTP._getrespcCsd}zt|ttfr"t|d}}|}|ddtvrBt|g}|durdtdf}|d}||vrnq| dr|dd}| |qZn8d}|}||krq| dr|dd}| |qW|r| n|r| 0||fS) aPInternal: get a response plus following text from the server. Raise various errors if the response indicates an error. Returns a (response, lines) tuple where `response` is a unicode string and `lines` is a list of bytes objects. If `file` is a file-like object, it must be open in binary mode. Nwb.s. Fs..r6) r.strr openru _LONGRESPrrrrHrr/rm)rriZ openedFilerr!Z terminatorsr> terminatorrrr _getlongresps8         zNNTP._getlongrespcCs|||S)zWInternal: send a command and get the response. Same return value as _getresp().)rrurrrr _shortcmds zNNTP._shortcmdcCs||||S)zoInternal: send a command and get the response plus following text. Same return value as _getlongresp().rr)rr>rirrr_longcmds z NNTP._longcmdcs.||\}}|fdd|DfS)zInternal: send a command and get the response plus following text. Same as _longcmd() and _getlongresp(), except that the returned `lines` are unicode strings rather than bytes objects. csg|]}|jjqSr)r0rr.0r>r~rr +sz'NNTP._longcmdstring..r)rr>rirlistrr~r_longcmdstring$s   zNNTP._longcmdstringcCs`z|jWStyYn0z|d\}}WntyLtdd}Yn 0t|}||_|S)zqInternal: get the overview format. Queries the server if not already done, else returns the cached value.zLIST OVERVIEW.FMTN)Z_cachedoverviewfmtAttributeErrorrrr;rC)rrr!r=rrr_getoverviewfmt.s  zNNTP._getoverviewfmtcCsdd|DS)NcSsg|]}t|qSr)r#rErrrrrArz#NNTP._grouplist..r)rr!rrr _grouplist?szNNTP._grouplistcCs8i}|d\}}|D]}|^}}|||<q||fS)a!Process a CAPABILITIES command. Not supported by all servers. Return: - resp: server response if successful - caps: a dictionary mapping capability names to lists of tokens (for example {'VERSION': ['2'], 'OVER': [], LIST: ['ACTIVE', 'HEADERS'] }) Z CAPABILITIES)rrE)rrrr!r>r?rJrrrrCs   zNNTP.capabilities)ricCsbt|tjtjfs$td|jjt||jdk\}}d||}| ||\}}|| |fS)zProcess a NEWGROUPS command. Arguments: - date: a date or datetime object Return: - resp: server response if successful - list: list of newsgroup names Athe date parameter must be a date or datetime object, not '{:40}'rPzNEWGROUPS {0} {1}) r.rVr TypeErrorr[ __class__rr^rrr)rrrirWrXcmdrr!rrr newgroupsQs zNNTP.newgroupscCsRt|tjtjfs$td|jjt||jdk\}}d|||}| ||S)zProcess a NEWNEWS command. Arguments: - group: group name or '*' - date: a date or datetime object Return: - resp: server response if successful - list: list of message ids rrPzNEWNEWS {0} {1} {2}) r.rVrrr[rrr^rr)rr$rrirWrXrrrrnewnewsasz NNTP.newnewscCs4|durd|}nd}|||\}}|||fS)a@Process a LIST or LIST ACTIVE command. Arguments: - group_pattern: a pattern indicating which groups to query - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of (group, last, first, flag) (strings) Nz LIST ACTIVE LIST)rr)r group_patternricommandrr!rrrrqs  z NNTP.listc Cstd}|d|\}}|ds8|d|\}}i}|D]:}||}|r@|dd\} } |sr| S| || <q@|r||fSdSdS)Nz^(?P[^ ]+)[ ]+(.*)$zLIST NEWSGROUPS rzXGTITLE r6rPr,)recompilerrHsearchstripr$) rrZ return_allZline_patrr!groupsZraw_linematchr?Zdescrrr_getdescriptionss   zNNTP._getdescriptionscCs ||dS)aGet a description for a single group. If more than one group matches ('group' is a pattern), return the first. If no group matches, return an empty string. This elides the response code from the server, since it can only be '215' or '285' (for xgtitle) anyway. If the response code is needed, use the 'descriptions' method. NOTE: This neither checks for a wildcard in 'group' nor does it check whether the group actually exists.Fr)rr$rrr descriptions zNNTP.descriptioncCs ||dS)z'Get descriptions for a range of groups.Tr)rrrrr descriptionsszNNTP.descriptionscCs|d|}|ds t||}d}}}t|}|dkr|d}|dkr|d}|dkr|d}|dkr|d}|t|t|t||fS)aProcess a GROUP command. Argument: - group: the group name Returns: - resp: server response if successful - count: number of articles - first: first article number - last: last article number - name: the group name zGROUP rrr6rPrrQ)rrHrrEr<r8rF)rr?rwordscountr&r%nrrrr$s    z NNTP.groupcCs |d|S)aProcess a HELP command. Argument: - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of strings returned by the server in response to the HELP command ZHELP)r)rrirrrhelpsz NNTP.helpcCs8|dst||}t|d}|d}|||fS)z_Internal: parse the response line of a STAT, NEXT, LAST, ARTICLE, HEAD or BODY command.Z22r6rP)rHrrErF)rrrart_numr*rrr _statparses   zNNTP._statparsecCs||}||S)z/Internal: process a STAT, NEXT or LAST command.)rr)rr>rrrr_statcmds z NNTP._statcmdcCs"|r|d|S|dSdS)a(Process a STAT command. Argument: - message_spec: article number or message id (if not specified, the current article is selected) Returns: - resp: server response if successful - art_num: the article number - message_id: the message id zSTAT {0}ZSTATN)rr[)r message_specrrrstats z NNTP.statcCs |dS)z;Process a NEXT command. No arguments. Return as for STAT.ZNEXTrr~rrrnextsz NNTP.nextcCs |dS)z;Process a LAST command. No arguments. Return as for STAT.ZLASTrr~rrrr%sz NNTP.lastcCs0|||\}}||\}}}|t|||fS)z2Internal: process a HEAD, BODY or ARTICLE command.)rrr()rr>rirr!rr*rrr_artcmdsz NNTP._artcmdcCs$|durd|}nd}|||S)a0Process a HEAD command. Argument: - message_spec: article number or message id - file: filename string or file object to store the headers in Returns: - resp: server response if successful - ArticleInfo: (article number, message id, list of header lines) NzHEAD {0}ZHEADr[rrrrirrrrheads z NNTP.headcCs$|durd|}nd}|||S)a+Process a BODY command. Argument: - message_spec: article number or message id - file: filename string or file object to store the body in Returns: - resp: server response if successful - ArticleInfo: (article number, message id, list of body lines) NzBODY {0}ZBODYrrrrrbodys z NNTP.bodycCs$|durd|}nd}|||S)a5Process an ARTICLE command. Argument: - message_spec: article number or message id - file: filename string or file object to store the article in Returns: - resp: server response if successful - ArticleInfo: (article number, message id, list of article lines) Nz ARTICLE {0}ZARTICLErrrrrarticles z NNTP.articlecCs |dS)zYProcess a SLAVE command. Returns: - resp: server response if successful ZSLAVE)rr~rrrslave!sz NNTP.slavecsDtd|d|||\}}fdd|fdd|DfS)aiProcess an XHDR command (optional server extension). Arguments: - hdr: the header type (e.g. 'subject') - str: an article nr, a message id, or a range nr1-nr2 - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of (nr, value) strings z^([0-9]+) ?(.*) ?z XHDR {0} {1}cs|}|r|ddS|S)Nr6rP)rr$)r>m)patrr remove_number2s z NNTP.xhdr..remove_numbercsg|] }|qSrrr)rrrr5rzNNTP.xhdr..)rrrr[)rZhdrrrirr!r)rrrxhdr's  z NNTP.xhdrcCs.|d|||\}}|}|t||fS)aFProcess an XOVER command (optional server extension) Arguments: - start: start of range - end: end of range - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of dicts containing the response fields z XOVER {0}-{1})rr[rrO)rstartendrirr!r=rrrxover7s z NNTP.xoverc Csxd|jvrdnd}t|ttfr>|\}}|d||p6d7}n|durR|d|}|||\}}|}|t||fS)aProcess an OVER command. If the command isn't supported, fall back to XOVER. Arguments: - message_spec: - either a message id, indicating the article to fetch information about - or a (start, end) tuple, indicating a range of article numbers; if end is None, information up to the newest message will be retrieved - or None, indicating the current article number must be used - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of dicts containing the response fields NOTE: the "message id" form isn't supported by XOVER ZOVERZXOVERz {0}-{1}r,Nr)rwr.tuplerr[rrrO) rrrirrrrr!r=rrroverEs z NNTP.overcCsb|d}|dst||}t|dkr8t||d}t|dkrTt||t|dfS)zProcess the DATE command. Returns: - resp: server response if successful - date: datetime object ZDATEZ111rPr6N)rrHrrEr<r rZ)rrelemrrrrr`s    z NNTP.datecCs||}|dst|t|ttfr2|}|D]:}|tsR| dt}|drdd|}|j |q6|j d|j | S)N3r"rs. )rrHrr.r bytearray splitlinesendswithrrstriprirrru)rrfrr>rrr_postqs      z NNTP._postcCs |d|S)zProcess a POST command. Arguments: - data: bytes object, iterable or file containing the article Returns: - resp: server response if successfulZPOST)r)rdatarrrpostsz NNTP.postcCs|d||S)a Process an IHAVE command. Arguments: - message_id: message-id of the article - data: file containing the article Returns: - resp: server response if successful Note that if the server refuses the article an exception is raised.z IHAVE {0})rr[)rr*rrrrihavesz NNTP.ihavecCs4z"|jr|j|`W|jn |j0dSr})rirmr`r~rrrrs  z NNTP._closecCs&z|d}W|n |0|S)zdProcess a QUIT command and close the socket. Returns: - resp: server response if successfulZQUIT)rr)rrrrrrs z NNTP.quitcCs|jrtd|s|stdz<|rX|sXddl}|}||j}|rX|d}|d}WntylYn0|svdS|d|}|dr|st|n |d|}|dst |d|_ | |j rd |j vr| d|_ | dS) NzAlready logged in.z7At least one of `user` and `usenetrc` must be specifiedrrPzauthinfo user Z381zauthinfo pass Z281rs)r|rnetrcZauthenticatorsrfrrrHrrrwrxryrz)rrnrorqrZ credentialsZauthrrrrrls>      z NNTP.loginc Cs`z|d|_WnJty"Yn:tyZ}z"|jdrDd|_nWYd}~n d}~00dS)Nz mode readerZ480T)rrvrrr rHry)rerrrrzs  zNNTP._setreadermodecCs||jrtd|jrtd|d}|drp|jt|j||j |_|j d|_d|_d|_ | nt ddS) zzProcess a STARTTLS command. Arguments: - context: SSL context to use for the encrypted connection zTLS is already enabled.z+TLS cannot be started after authentication.STARTTLSZ382reTNzTLS failed to start.)r{rr|rrHrirmrcr`rfrjrwrxr)rrarrrrstarttlss    z NNTP.starttls)T)N)N)N)N)N)N)N)N)N)NNT)N):rrrrr NNTP_PORTrr rkrrrhrrxrdebugrrrrurrrrrrrrrrrrrr$rrrrrr%rrrrrrrrrrrrrrrlrz _have_sslrrrrrr(sp  #"     .         ) rcs8eZdZedddddeffdd ZfddZZS)NNTP_SSLNFc s"||_t|||||||dS)zThis works identically to NNTP.__init__, except for the change in default port and the `ssl_context` argument for SSL connections. N) ssl_contextsuperr ) rrfrgrnrorrprqrrrrrr szNNTP_SSL.__init__cs@t|}zt||j|j}Wn|Yn0|SdSr})rrhrcrrfrm)rrrr`rrrrhs zNNTP_SSL._create_socket)rrr NNTP_SSL_PORTrr rh __classcell__rrrrrs  r__main__zJ nntplib built-in demo - display the latest articles in a newsgroup)rz-gz--groupzgmane.comp.python.generalz3group to fetch messages from (default: %(default)s))defaultrz-sz--serverz news.gmane.ioz+NNTP server hostname (default: %(default)s)z-pz--portrz#NNTP port number (default: %s / %s))rtyperz-nz --nb-articles z2number of articles to fetch (default: %(default)s)z-Sz--ssl store_truezuse NNTP over SSL)actionrr)rfrgrZGroupZhaszarticles, rangetocCs$t||kr |d|dd}|S)NrQz...)r<)sZlimrrrcut3s r r6rsA           S