/opt/alt/python38/lib64/python3.8/__pycache__
NameSizeModeActions
abc.cpython-38.opt-1.pyc53490644editdlrm
abc.cpython-38.opt-2.pyc32270644editdlrm
abc.cpython-38.pyc53490644editdlrm
aifc.cpython-38.opt-1.pyc254890644editdlrm
aifc.cpython-38.opt-2.pyc202820644editdlrm
aifc.cpython-38.pyc254890644editdlrm
antigravity.cpython-38.opt-1.pyc8120644editdlrm
antigravity.cpython-38.opt-2.pyc6680644editdlrm
antigravity.cpython-38.pyc8120644editdlrm
argparse.cpython-38.opt-1.pyc621430644editdlrm
argparse.cpython-38.opt-2.pyc529020644editdlrm
argparse.cpython-38.pyc622920644editdlrm
ast.cpython-38.opt-1.pyc167430644editdlrm
ast.cpython-38.opt-2.pyc103480644editdlrm
ast.cpython-38.pyc167780644editdlrm
asynchat.cpython-38.opt-1.pyc68660644editdlrm
asynchat.cpython-38.opt-2.pyc54910644editdlrm
asynchat.cpython-38.pyc68660644editdlrm
asyncore.cpython-38.opt-1.pyc160430644editdlrm
asyncore.cpython-38.opt-2.pyc148390644editdlrm
asyncore.cpython-38.pyc160430644editdlrm
base64.cpython-38.opt-1.pyc169230644editdlrm
base64.cpython-38.opt-2.pyc113390644editdlrm
base64.cpython-38.pyc170860644editdlrm
bdb.cpython-38.opt-1.pyc249360644editdlrm
bdb.cpython-38.opt-2.pyc158980644editdlrm
bdb.cpython-38.pyc249360644editdlrm
binhex.cpython-38.opt-1.pyc121490644editdlrm
binhex.cpython-38.opt-2.pyc116160644editdlrm
binhex.cpython-38.pyc121490644editdlrm
bisect.cpython-38.opt-1.pyc23690644editdlrm
bisect.cpython-38.opt-2.pyc10570644editdlrm
bisect.cpython-38.pyc23690644editdlrm
bz2.cpython-38.opt-1.pyc114600644editdlrm
bz2.cpython-38.opt-2.pyc64020644editdlrm
bz2.cpython-38.pyc114600644editdlrm
calendar.cpython-38.opt-1.pyc270790644editdlrm
calendar.cpython-38.opt-2.pyc224870644editdlrm
calendar.cpython-38.pyc270790644editdlrm
cgi.cpython-38.opt-1.pyc265590644editdlrm
cgi.cpython-38.opt-2.pyc181330644editdlrm
cgi.cpython-38.pyc265590644editdlrm
cgitb.cpython-38.opt-1.pyc101650644editdlrm
cgitb.cpython-38.opt-2.pyc85660644editdlrm
cgitb.cpython-38.pyc101650644editdlrm
chunk.cpython-38.opt-1.pyc48540644editdlrm
chunk.cpython-38.opt-2.pyc27100644editdlrm
chunk.cpython-38.pyc48540644editdlrm
cmd.cpython-38.opt-1.pyc126410644editdlrm
cmd.cpython-38.opt-2.pyc72160644editdlrm
cmd.cpython-38.pyc126410644editdlrm
code.cpython-38.opt-1.pyc99280644editdlrm
code.cpython-38.opt-2.pyc46570644editdlrm
code.cpython-38.pyc99280644editdlrm
codecs.cpython-38.opt-1.pyc339710644editdlrm
codecs.cpython-38.opt-2.pyc184050644editdlrm
codecs.cpython-38.pyc339710644editdlrm
codeop.cpython-38.opt-1.pyc64320644editdlrm
codeop.cpython-38.opt-2.pyc23720644editdlrm
codeop.cpython-38.pyc64320644editdlrm
colorsys.cpython-38.opt-1.pyc32550644editdlrm
colorsys.cpython-38.opt-2.pyc26490644editdlrm
colorsys.cpython-38.pyc32550644editdlrm
compileall.cpython-38.opt-1.pyc94250644editdlrm
compileall.cpython-38.opt-2.pyc70500644editdlrm
compileall.cpython-38.pyc94250644editdlrm
configparser.cpython-38.opt-1.pyc457330644editdlrm
configparser.cpython-38.opt-2.pyc308070644editdlrm
configparser.cpython-38.pyc457330644editdlrm
contextlib.cpython-38.opt-1.pyc201910644editdlrm
contextlib.cpython-38.opt-2.pyc146110644editdlrm
contextlib.cpython-38.pyc202440644editdlrm
contextvars.cpython-38.opt-1.pyc2580644editdlrm
contextvars.cpython-38.opt-2.pyc2580644editdlrm
contextvars.cpython-38.pyc2580644editdlrm
copy.cpython-38.opt-1.pyc70020644editdlrm
copy.cpython-38.opt-2.pyc46880644editdlrm
copy.cpython-38.pyc70020644editdlrm
copyreg.cpython-38.opt-1.pyc42980644editdlrm
copyreg.cpython-38.opt-2.pyc34960644editdlrm
copyreg.cpython-38.pyc43330644editdlrm
cProfile.cpython-38.opt-1.pyc55160644editdlrm
cProfile.cpython-38.opt-2.pyc50550644editdlrm
cProfile.cpython-38.pyc55160644editdlrm
crypt.cpython-38.opt-1.pyc34020644editdlrm
crypt.cpython-38.opt-2.pyc27400644editdlrm
crypt.cpython-38.pyc34020644editdlrm
csv.cpython-38.opt-1.pyc119250644editdlrm
csv.cpython-38.opt-2.pyc98860644editdlrm
csv.cpython-38.pyc119250644editdlrm
dataclasses.cpython-38.opt-1.pyc236680644editdlrm
dataclasses.cpython-38.opt-2.pyc202280644editdlrm
dataclasses.cpython-38.pyc236680644editdlrm
datetime.cpython-38.opt-1.pyc559510644editdlrm
datetime.cpython-38.opt-2.pyc475110644editdlrm
datetime.cpython-38.pyc571880644editdlrm
decimal.cpython-38.opt-1.pyc3740644editdlrm
decimal.cpython-38.opt-2.pyc3740644editdlrm
decimal.cpython-38.pyc3740644editdlrm
difflib.cpython-38.opt-1.pyc594150644editdlrm
difflib.cpython-38.opt-2.pyc249360644editdlrm
difflib.cpython-38.pyc594530644editdlrm
dis.cpython-38.opt-1.pyc158230644editdlrm
dis.cpython-38.opt-2.pyc120160644editdlrm
dis.cpython-38.pyc158230644editdlrm
doctest.cpython-38.opt-1.pyc757460644editdlrm
doctest.cpython-38.opt-2.pyc404400644editdlrm
doctest.cpython-38.pyc759890644editdlrm
dummy_threading.cpython-38.opt-1.pyc11250644editdlrm
dummy_threading.cpython-38.opt-2.pyc7520644editdlrm
dummy_threading.cpython-38.pyc11250644editdlrm
enum.cpython-38.opt-1.pyc259770644editdlrm
enum.cpython-38.opt-2.pyc210550644editdlrm
enum.cpython-38.pyc259770644editdlrm
filecmp.cpython-38.opt-1.pyc84420644editdlrm
filecmp.cpython-38.opt-2.pyc60290644editdlrm
filecmp.cpython-38.pyc84420644editdlrm
fileinput.cpython-38.opt-1.pyc133880644editdlrm
fileinput.cpython-38.opt-2.pyc77800644editdlrm
fileinput.cpython-38.pyc133880644editdlrm
fnmatch.cpython-38.opt-1.pyc33700644editdlrm
fnmatch.cpython-38.opt-2.pyc21620644editdlrm
fnmatch.cpython-38.pyc33700644editdlrm
formatter.cpython-38.opt-1.pyc175600644editdlrm
formatter.cpython-38.opt-2.pyc151200644editdlrm
formatter.cpython-38.pyc175600644editdlrm
fractions.cpython-38.opt-1.pyc187540644editdlrm
fractions.cpython-38.opt-2.pyc113700644editdlrm
fractions.cpython-38.pyc187540644editdlrm
ftplib.cpython-38.opt-1.pyc280220644editdlrm
ftplib.cpython-38.opt-2.pyc182280644editdlrm
ftplib.cpython-38.pyc280220644editdlrm
functools.cpython-38.opt-1.pyc279160644editdlrm
functools.cpython-38.opt-2.pyc212630644editdlrm
functools.cpython-38.pyc279160644editdlrm
genericpath.cpython-38.opt-1.pyc40160644editdlrm
genericpath.cpython-38.opt-2.pyc28800644editdlrm
genericpath.cpython-38.pyc40160644editdlrm
getopt.cpython-38.opt-1.pyc62520644editdlrm
getopt.cpython-38.opt-2.pyc36980644editdlrm
getopt.cpython-38.pyc62860644editdlrm
getpass.cpython-38.opt-1.pyc41930644editdlrm
getpass.cpython-38.opt-2.pyc30080644editdlrm
getpass.cpython-38.pyc41930644editdlrm
gettext.cpython-38.opt-1.pyc178980644editdlrm
gettext.cpython-38.opt-2.pyc172070644editdlrm
gettext.cpython-38.pyc178980644editdlrm
glob.cpython-38.opt-1.pyc42930644editdlrm
glob.cpython-38.opt-2.pyc34330644editdlrm
glob.cpython-38.pyc43580644editdlrm
gzip.cpython-38.opt-1.pyc181990644editdlrm
gzip.cpython-38.opt-2.pyc143310644editdlrm
gzip.cpython-38.pyc181990644editdlrm
hashlib.cpython-38.opt-1.pyc67420644editdlrm
hashlib.cpython-38.opt-2.pyc61740644editdlrm
hashlib.cpython-38.pyc67420644editdlrm
heapq.cpython-38.opt-1.pyc140850644editdlrm
heapq.cpython-38.opt-2.pyc110690644editdlrm
heapq.cpython-38.pyc140850644editdlrm
hmac.cpython-38.opt-1.pyc64030644editdlrm
hmac.cpython-38.opt-2.pyc38860644editdlrm
hmac.cpython-38.pyc64030644editdlrm
imaplib.cpython-38.opt-1.pyc391740644editdlrm
imaplib.cpython-38.opt-2.pyc271970644editdlrm
imaplib.cpython-38.pyc413570644editdlrm
imghdr.cpython-38.opt-1.pyc41330644editdlrm
imghdr.cpython-38.opt-2.pyc38180644editdlrm
imghdr.cpython-38.pyc41330644editdlrm
imp.cpython-38.opt-1.pyc98240644editdlrm
imp.cpython-38.opt-2.pyc74590644editdlrm
imp.cpython-38.pyc98240644editdlrm
inspect.cpython-38.opt-1.pyc803230644editdlrm
inspect.cpython-38.opt-2.pyc552100644editdlrm
inspect.cpython-38.pyc806080644editdlrm
io.cpython-38.opt-1.pyc34690644editdlrm
io.cpython-38.opt-2.pyc19800644editdlrm
io.cpython-38.pyc34690644editdlrm
ipaddress.cpython-38.opt-1.pyc613510644editdlrm
ipaddress.cpython-38.opt-2.pyc367170644editdlrm
ipaddress.cpython-38.pyc613510644editdlrm
keyword.cpython-38.opt-1.pyc10130644editdlrm
keyword.cpython-38.opt-2.pyc5860644editdlrm
keyword.cpython-38.pyc10130644editdlrm
linecache.cpython-38.opt-1.pyc38820644editdlrm
linecache.cpython-38.opt-2.pyc27770644editdlrm
linecache.cpython-38.pyc38820644editdlrm
locale.cpython-38.opt-1.pyc347040644editdlrm
locale.cpython-38.opt-2.pyc300890644editdlrm
locale.cpython-38.pyc347040644editdlrm
lzma.cpython-38.opt-1.pyc120330644editdlrm
lzma.cpython-38.opt-2.pyc58640644editdlrm
lzma.cpython-38.pyc120330644editdlrm
mailbox.cpython-38.opt-1.pyc601990644editdlrm
mailbox.cpython-38.opt-2.pyc535970644editdlrm
mailbox.cpython-38.pyc602790644editdlrm
mailcap.cpython-38.opt-1.pyc72210644editdlrm
mailcap.cpython-38.opt-2.pyc56520644editdlrm
mailcap.cpython-38.pyc72210644editdlrm
mimetypes.cpython-38.opt-1.pyc160460644editdlrm
mimetypes.cpython-38.opt-2.pyc100310644editdlrm
mimetypes.cpython-38.pyc160460644editdlrm
modulefinder.cpython-38.opt-1.pyc160680644editdlrm
modulefinder.cpython-38.opt-2.pyc151590644editdlrm
modulefinder.cpython-38.pyc161300644editdlrm
netrc.cpython-38.opt-1.pyc37920644editdlrm
netrc.cpython-38.opt-2.pyc35540644editdlrm
netrc.cpython-38.pyc37920644editdlrm
nntplib.cpython-38.opt-1.pyc339890644editdlrm
nntplib.cpython-38.opt-2.pyc214790644editdlrm
nntplib.cpython-38.pyc339890644editdlrm
ntpath.cpython-38.opt-1.pyc146720644editdlrm
ntpath.cpython-38.opt-2.pyc126210644editdlrm
ntpath.cpython-38.pyc146720644editdlrm
nturl2path.cpython-38.opt-1.pyc17590644editdlrm
nturl2path.cpython-38.opt-2.pyc13400644editdlrm
nturl2path.cpython-38.pyc17590644editdlrm
numbers.cpython-38.opt-1.pyc122170644editdlrm
numbers.cpython-38.opt-2.pyc83540644editdlrm
numbers.cpython-38.pyc122170644editdlrm
opcode.cpython-38.opt-1.pyc54350644editdlrm
opcode.cpython-38.opt-2.pyc52950644editdlrm
opcode.cpython-38.pyc54350644editdlrm
operator.cpython-38.opt-1.pyc137060644editdlrm
operator.cpython-38.opt-2.pyc113370644editdlrm
operator.cpython-38.pyc137060644editdlrm
optparse.cpython-38.opt-1.pyc479890644editdlrm
optparse.cpython-38.opt-2.pyc356740644editdlrm
optparse.cpython-38.pyc480720644editdlrm
os.cpython-38.opt-1.pyc313800644editdlrm
os.cpython-38.opt-2.pyc191890644editdlrm
os.cpython-38.pyc314120644editdlrm
pathlib.cpython-38.opt-1.pyc442240644editdlrm
pathlib.cpython-38.opt-2.pyc355440644editdlrm
pathlib.cpython-38.pyc442240644editdlrm
pdb.cpython-38.opt-1.pyc471860644editdlrm
pdb.cpython-38.opt-2.pyc331150644editdlrm
pdb.cpython-38.pyc472410644editdlrm
pickle.cpython-38.opt-1.pyc468060644editdlrm
pickle.cpython-38.opt-2.pyc409340644editdlrm
pickle.cpython-38.pyc469230644editdlrm
pickletools.cpython-38.opt-1.pyc663290644editdlrm
pickletools.cpython-38.opt-2.pyc572360644editdlrm
pickletools.cpython-38.pyc672190644editdlrm
pipes.cpython-38.opt-1.pyc78100644editdlrm
pipes.cpython-38.opt-2.pyc49430644editdlrm
pipes.cpython-38.pyc78100644editdlrm
pkgutil.cpython-38.opt-1.pyc163510644editdlrm
pkgutil.cpython-38.opt-2.pyc110950644editdlrm
pkgutil.cpython-38.pyc163510644editdlrm
platform.cpython-38.opt-1.pyc243410644editdlrm
platform.cpython-38.opt-2.pyc164650644editdlrm
platform.cpython-38.pyc243410644editdlrm
plistlib.cpython-38.opt-1.pyc271130644editdlrm
plistlib.cpython-38.opt-2.pyc240640644editdlrm
plistlib.cpython-38.pyc271800644editdlrm
poplib.cpython-38.opt-1.pyc134740644editdlrm
poplib.cpython-38.opt-2.pyc85430644editdlrm
poplib.cpython-38.pyc134740644editdlrm
posixpath.cpython-38.opt-1.pyc104430644editdlrm
posixpath.cpython-38.opt-2.pyc87280644editdlrm
posixpath.cpython-38.pyc104430644editdlrm
pprint.cpython-38.opt-1.pyc162470644editdlrm
pprint.cpython-38.opt-2.pyc140920644editdlrm
pprint.cpython-38.pyc162960644editdlrm
profile.cpython-38.opt-1.pyc145810644editdlrm
profile.cpython-38.opt-2.pyc116030644editdlrm
profile.cpython-38.pyc147940644editdlrm
pstats.cpython-38.opt-1.pyc220810644editdlrm
pstats.cpython-38.opt-2.pyc195570644editdlrm
pstats.cpython-38.pyc220810644editdlrm
pty.cpython-38.opt-1.pyc39700644editdlrm
pty.cpython-38.opt-2.pyc31250644editdlrm
pty.cpython-38.pyc39700644editdlrm
pyclbr.cpython-38.opt-1.pyc104660644editdlrm
pyclbr.cpython-38.opt-2.pyc68650644editdlrm
pyclbr.cpython-38.pyc104660644editdlrm
pydoc.cpython-38.opt-1.pyc834470644editdlrm
pydoc.cpython-38.opt-2.pyc739020644editdlrm
pydoc.cpython-38.pyc835000644editdlrm
py_compile.cpython-38.opt-1.pyc73990644editdlrm
py_compile.cpython-38.opt-2.pyc36610644editdlrm
py_compile.cpython-38.pyc73990644editdlrm
queue.cpython-38.opt-1.pyc106410644editdlrm
queue.cpython-38.opt-2.pyc63040644editdlrm
queue.cpython-38.pyc106410644editdlrm
quopri.cpython-38.opt-1.pyc55880644editdlrm
quopri.cpython-38.opt-2.pyc45520644editdlrm
quopri.cpython-38.pyc57630644editdlrm
random.cpython-38.opt-1.pyc201230644editdlrm
random.cpython-38.opt-2.pyc131470644editdlrm
random.cpython-38.pyc201230644editdlrm
re.cpython-38.opt-1.pyc144370644editdlrm
re.cpython-38.opt-2.pyc60990644editdlrm
re.cpython-38.pyc144370644editdlrm
reprlib.cpython-38.opt-1.pyc53180644editdlrm
reprlib.cpython-38.opt-2.pyc51620644editdlrm
reprlib.cpython-38.pyc53180644editdlrm
rlcompleter.cpython-38.opt-1.pyc57700644editdlrm
rlcompleter.cpython-38.opt-2.pyc31070644editdlrm
rlcompleter.cpython-38.pyc57700644editdlrm
runpy.cpython-38.opt-1.pyc81960644editdlrm
runpy.cpython-38.opt-2.pyc66300644editdlrm
runpy.cpython-38.pyc81960644editdlrm
sched.cpython-38.opt-1.pyc65470644editdlrm
sched.cpython-38.opt-2.pyc35200644editdlrm
sched.cpython-38.pyc65470644editdlrm
secrets.cpython-38.opt-1.pyc22050644editdlrm
secrets.cpython-38.opt-2.pyc11470644editdlrm
secrets.cpython-38.pyc22050644editdlrm
selectors.cpython-38.opt-1.pyc169500644editdlrm
selectors.cpython-38.opt-2.pyc129150644editdlrm
selectors.cpython-38.pyc169500644editdlrm
shelve.cpython-38.opt-1.pyc95050644editdlrm
shelve.cpython-38.opt-2.pyc53540644editdlrm
shelve.cpython-38.pyc95050644editdlrm
shlex.cpython-38.opt-1.pyc75510644editdlrm
shlex.cpython-38.opt-2.pyc69940644editdlrm
shlex.cpython-38.pyc75510644editdlrm
shutil.cpython-38.opt-1.pyc374250644editdlrm
shutil.cpython-38.opt-2.pyc258870644editdlrm
shutil.cpython-38.pyc374250644editdlrm
signal.cpython-38.opt-1.pyc28580644editdlrm
signal.cpython-38.opt-2.pyc26340644editdlrm
signal.cpython-38.pyc28580644editdlrm
site.cpython-38.opt-1.pyc169920644editdlrm
site.cpython-38.opt-2.pyc114560644editdlrm
site.cpython-38.pyc169920644editdlrm
smtpd.cpython-38.opt-1.pyc264780644editdlrm
smtpd.cpython-38.opt-2.pyc238580644editdlrm
smtpd.cpython-38.pyc264780644editdlrm
smtplib.cpython-38.opt-1.pyc356250644editdlrm
smtplib.cpython-38.opt-2.pyc192630644editdlrm
smtplib.cpython-38.pyc356860644editdlrm
sndhdr.cpython-38.opt-1.pyc70040644editdlrm
sndhdr.cpython-38.opt-2.pyc57290644editdlrm
sndhdr.cpython-38.pyc70040644editdlrm
socket.cpython-38.opt-1.pyc275890644editdlrm
socket.cpython-38.opt-2.pyc196220644editdlrm
socket.cpython-38.pyc276290644editdlrm
socketserver.cpython-38.opt-1.pyc253760644editdlrm
socketserver.cpython-38.opt-2.pyc146600644editdlrm
socketserver.cpython-38.pyc253760644editdlrm
sre_compile.cpython-38.opt-1.pyc149310644editdlrm
sre_compile.cpython-38.opt-2.pyc145170644editdlrm
sre_compile.cpython-38.pyc151570644editdlrm
sre_constants.cpython-38.opt-1.pyc63740644editdlrm
sre_constants.cpython-38.opt-2.pyc59490644editdlrm
sre_constants.cpython-38.pyc63740644editdlrm
sre_parse.cpython-38.opt-1.pyc216150644editdlrm
sre_parse.cpython-38.opt-2.pyc215670644editdlrm
sre_parse.cpython-38.pyc216620644editdlrm
ssl.cpython-38.opt-1.pyc450680644editdlrm
ssl.cpython-38.opt-2.pyc340900644editdlrm
ssl.cpython-38.pyc450680644editdlrm
stat.cpython-38.opt-1.pyc43870644editdlrm
stat.cpython-38.opt-2.pyc36040644editdlrm
stat.cpython-38.pyc43870644editdlrm
statistics.cpython-38.opt-1.pyc332700644editdlrm
statistics.cpython-38.opt-2.pyc175830644editdlrm
statistics.cpython-38.pyc336680644editdlrm
string.cpython-38.opt-1.pyc73150644editdlrm
string.cpython-38.opt-2.pyc62090644editdlrm
string.cpython-38.pyc73150644editdlrm
stringprep.cpython-38.opt-1.pyc109740644editdlrm
stringprep.cpython-38.opt-2.pyc107540644editdlrm
stringprep.cpython-38.pyc110320644editdlrm
struct.cpython-38.opt-1.pyc3450644editdlrm
struct.cpython-38.opt-2.pyc3450644editdlrm
struct.cpython-38.pyc3450644editdlrm
subprocess.cpython-38.opt-1.pyc421250644editdlrm
subprocess.cpython-38.opt-2.pyc301950644editdlrm
subprocess.cpython-38.pyc422220644editdlrm
sunau.cpython-38.opt-1.pyc170950644editdlrm
sunau.cpython-38.opt-2.pyc125050644editdlrm
sunau.cpython-38.pyc170950644editdlrm
symbol.cpython-38.opt-1.pyc24190644editdlrm
symbol.cpython-38.opt-2.pyc23430644editdlrm
symbol.cpython-38.pyc24190644editdlrm
symtable.cpython-38.opt-1.pyc112430644editdlrm
symtable.cpython-38.opt-2.pyc104580644editdlrm
symtable.cpython-38.pyc113370644editdlrm
sysconfig.cpython-38.opt-1.pyc158590644editdlrm
sysconfig.cpython-38.opt-2.pyc134810644editdlrm
sysconfig.cpython-38.pyc158590644editdlrm
tabnanny.cpython-38.opt-1.pyc70450644editdlrm
tabnanny.cpython-38.opt-2.pyc61120644editdlrm
tabnanny.cpython-38.pyc70450644editdlrm
tarfile.cpython-38.opt-1.pyc700430644editdlrm
tarfile.cpython-38.opt-2.pyc554280644editdlrm
tarfile.cpython-38.pyc700740644editdlrm
telnetlib.cpython-38.opt-1.pyc182520644editdlrm
telnetlib.cpython-38.opt-2.pyc107500644editdlrm
telnetlib.cpython-38.pyc182520644editdlrm
tempfile.cpython-38.opt-1.pyc236490644editdlrm
tempfile.cpython-38.opt-2.pyc171230644editdlrm
tempfile.cpython-38.pyc236490644editdlrm
textwrap.cpython-38.opt-1.pyc134600644editdlrm
textwrap.cpython-38.opt-2.pyc62510644editdlrm
textwrap.cpython-38.pyc135340644editdlrm
this.cpython-38.opt-1.pyc12760644editdlrm
this.cpython-38.opt-2.pyc12760644editdlrm
this.cpython-38.pyc12760644editdlrm
threading.cpython-38.opt-1.pyc394400644editdlrm
threading.cpython-38.opt-2.pyc228630644editdlrm
threading.cpython-38.pyc399910644editdlrm
timeit.cpython-38.opt-1.pyc117920644editdlrm
timeit.cpython-38.opt-2.pyc59380644editdlrm
timeit.cpython-38.pyc117920644editdlrm
token.cpython-38.opt-1.pyc25000644editdlrm
token.cpython-38.opt-2.pyc24670644editdlrm
token.cpython-38.pyc25000644editdlrm
tokenize.cpython-38.opt-1.pyc171310644editdlrm
tokenize.cpython-38.opt-2.pyc133670644editdlrm
tokenize.cpython-38.pyc171750644editdlrm
trace.cpython-38.opt-1.pyc200610644editdlrm
trace.cpython-38.opt-2.pyc170470644editdlrm
trace.cpython-38.pyc200610644editdlrm
traceback.cpython-38.opt-1.pyc199530644editdlrm
traceback.cpython-38.opt-2.pyc110500644editdlrm
traceback.cpython-38.pyc199530644editdlrm
tracemalloc.cpython-38.opt-1.pyc173780644editdlrm
tracemalloc.cpython-38.opt-2.pyc159650644editdlrm
tracemalloc.cpython-38.pyc173780644editdlrm
tty.cpython-38.opt-1.pyc10910644editdlrm
tty.cpython-38.opt-2.pyc9820644editdlrm
tty.cpython-38.pyc10910644editdlrm
types.cpython-38.opt-1.pyc91920644editdlrm
types.cpython-38.opt-2.pyc79700644editdlrm
types.cpython-38.pyc91920644editdlrm
typing.cpython-38.opt-1.pyc623860644editdlrm
typing.cpython-38.opt-2.pyc456380644editdlrm
typing.cpython-38.pyc624350644editdlrm
uu.cpython-38.opt-1.pyc38010644editdlrm
uu.cpython-38.opt-2.pyc35570644editdlrm
uu.cpython-38.pyc38010644editdlrm
uuid.cpython-38.opt-1.pyc235640644editdlrm
uuid.cpython-38.opt-2.pyc164080644editdlrm
uuid.cpython-38.pyc236980644editdlrm
warnings.cpython-38.opt-1.pyc132070644editdlrm
warnings.cpython-38.opt-2.pyc109320644editdlrm
warnings.cpython-38.pyc136670644editdlrm
wave.cpython-38.opt-1.pyc181140644editdlrm
wave.cpython-38.opt-2.pyc121220644editdlrm
wave.cpython-38.pyc181640644editdlrm
weakref.cpython-38.opt-1.pyc195030644editdlrm
weakref.cpython-38.opt-2.pyc162190644editdlrm
weakref.cpython-38.pyc195330644editdlrm
webbrowser.cpython-38.opt-1.pyc171020644editdlrm
webbrowser.cpython-38.opt-2.pyc146920644editdlrm
webbrowser.cpython-38.pyc171350644editdlrm
xdrlib.cpython-38.opt-1.pyc82360644editdlrm
xdrlib.cpython-38.opt-2.pyc77510644editdlrm
xdrlib.cpython-38.pyc82360644editdlrm
zipapp.cpython-38.opt-1.pyc58690644editdlrm
zipapp.cpython-38.opt-2.pyc46930644editdlrm
zipapp.cpython-38.pyc58690644editdlrm
zipfile.cpython-38.opt-1.pyc589970644editdlrm
zipfile.cpython-38.opt-2.pyc501780644editdlrm
zipfile.cpython-38.pyc590340644editdlrm
zipimport.cpython-38.opt-1.pyc171860644editdlrm
zipimport.cpython-38.opt-2.pyc136680644editdlrm
zipimport.cpython-38.pyc172900644editdlrm
_bootlocale.cpython-38.opt-1.pyc12320644editdlrm
_bootlocale.cpython-38.opt-2.pyc10070644editdlrm
_bootlocale.cpython-38.pyc12580644editdlrm
_collections_abc.cpython-38.opt-1.pyc287560644editdlrm
_collections_abc.cpython-38.opt-2.pyc236970644editdlrm
_collections_abc.cpython-38.pyc287560644editdlrm
_compat_pickle.cpython-38.opt-1.pyc54580644editdlrm
_compat_pickle.cpython-38.opt-2.pyc54580644editdlrm
_compat_pickle.cpython-38.pyc55160644editdlrm
_compression.cpython-38.opt-1.pyc41610644editdlrm
_compression.cpython-38.opt-2.pyc39470644editdlrm
_compression.cpython-38.pyc41610644editdlrm
_dummy_thread.cpython-38.opt-1.pyc60520644editdlrm
_dummy_thread.cpython-38.opt-2.pyc34070644editdlrm
_dummy_thread.cpython-38.pyc60520644editdlrm
_markupbase.cpython-38.opt-1.pyc76330644editdlrm
_markupbase.cpython-38.opt-2.pyc72550644editdlrm
_markupbase.cpython-38.pyc78050644editdlrm
_osx_support.cpython-38.opt-1.pyc116080644editdlrm
_osx_support.cpython-38.opt-2.pyc89170644editdlrm
_osx_support.cpython-38.pyc116080644editdlrm
_pydecimal.cpython-38.opt-1.pyc1607500644editdlrm
_pydecimal.cpython-38.opt-2.pyc791330644editdlrm
_pydecimal.cpython-38.pyc1607500644editdlrm
_pyio.cpython-38.opt-1.pyc740740644editdlrm
_pyio.cpython-38.opt-2.pyc511810644editdlrm
_pyio.cpython-38.pyc740940644editdlrm
_py_abc.cpython-38.opt-1.pyc46470644editdlrm
_py_abc.cpython-38.opt-2.pyc34340644editdlrm
_py_abc.cpython-38.pyc46850644editdlrm
_sitebuiltins.cpython-38.opt-1.pyc34960644editdlrm
_sitebuiltins.cpython-38.opt-2.pyc29720644editdlrm
_sitebuiltins.cpython-38.pyc34960644editdlrm
_strptime.cpython-38.opt-1.pyc160590644editdlrm
_strptime.cpython-38.opt-2.pyc123310644editdlrm
_strptime.cpython-38.pyc160590644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-38.opt-1.pyc296270644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-38.opt-2.pyc296270644editdlrm
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-38.pyc296270644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.opt-1.pyc297650644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.opt-2.pyc297650644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc297650644editdlrm
_threading_local.cpython-38.opt-1.pyc64610644editdlrm
_threading_local.cpython-38.opt-2.pyc31410644editdlrm
_threading_local.cpython-38.pyc64610644editdlrm
_weakrefset.cpython-38.opt-1.pyc76150644editdlrm
_weakrefset.cpython-38.opt-2.pyc76150644editdlrm
_weakrefset.cpython-38.pyc76150644editdlrm
__future__.cpython-38.opt-1.pyc41730644editdlrm
__future__.cpython-38.opt-2.pyc22010644editdlrm
__future__.cpython-38.pyc41730644editdlrm
__phello__.foo.cpython-38.opt-1.pyc1420644editdlrm
__phello__.foo.cpython-38.opt-2.pyc1420644editdlrm
__phello__.foo.cpython-38.pyc1420644editdlrm
Edit: /opt/alt/python38/lib64/python3.8/__pycache__/tarfile.cpython-38.opt-1.pyc (70043B)
U iÛf/žã@sdZdZdZdZddlmZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZz ddlZWnek rdZYnXz ddlZWnek r¶dZYnXeefZzeef7ZWnek râYnXddd d d d d ddddddddgZdZdZedZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%d Z&d!Z'd"Z(d#Z)d$Z*d%Z+d&Z,d'Z-d(Z.d)Z/d*Z0dZ1d+Z2d,Z3e3Z4e"e#e$e%e(e)e*e&e'e+e,e-f Z5e"e#e*e-fZ6e+e,e-fZ7d-Z8d.d/d0d1hZ9e:e:e:e;e;e;d2œZne ?¡Z>d5d6„Z@d7d8„ZAd9d:„ZBd;e4fdd?„ZDdedfd@dA„ZEdBdC„ZFGdDd „d eGƒZHGdEd„deHƒZIGdFd „d eHƒZJGdGd „d eHƒZKGdHd „d eHƒZLGdId„deHƒZMGdJdK„dKeMƒZNGdLdM„dMeMƒZOGdNdO„dOeMƒZPGdPdQ„dQeMƒZQGdRdS„dSeMƒZRGdTdU„dUƒZSGdVdW„dWƒZTGdXdY„dYeUƒZVGdZd[„d[eUƒZWGd\d]„d]e jXƒZYGd^d_„d_eHƒZZGd`da„daeZƒZ[Gdbdc„dceZƒZ\Gddde„deeZƒZ]Gdfdg„dgeZƒZ^Gdhdi„dieZƒZ_d{dkdl„Z`dmdn„Zadodp„Zbdqdr„ZceaebecdsœZdeUƒZee fdt¡ZgGdud„deUƒZhGdvd„deUƒZidwd „ZjeijZdxdy„Zkeldzkr ekƒdS)|z,Read from and write to tar format archives. z0.9.0u"Lars Gustäbel (lars@gustaebel.de)u4Gustavo Niemeyer, Niels Gustäbel, Richard Townsend.é)ÚopenNÚTarFileÚTarInfoÚ is_tarfileÚTarErrorÚ ReadErrorÚCompressionErrorÚ StreamErrorÚ ExtractErrorÚ HeaderErrorÚENCODINGÚ USTAR_FORMATÚ GNU_FORMATÚ PAX_FORMATÚDEFAULT_FORMATróiésustar sustar00édé›ó0ó1ó2ó3ó4ó5ó6ó7óLóKóSóxógóXéé)ÚpathÚlinkpathÚsizeÚmtimeÚuidÚgidÚunameÚgnamer%r&r+r,)ZatimeÚctimer(r)r*r'Úntúutf-8cCs8|dkrtdƒ‚| ||¡}|d|…|t|ƒtS)z8Convert a string to a null-terminated bytes object. Nzmetadata cannot contain None)Ú ValueErrorÚencodeÚlenÚNUL)ÚsÚlengthÚencodingÚerrors©r8ú,/opt/alt/python38/lib64/python3.8/tarfile.pyÚstn s r:cCs*| d¡}|dkr|d|…}| ||¡S)z8Convert a null-terminated bytes object to a string. réÿÿÿÿN)ÚfindÚdecode)r4r6r7Úpr8r8r9Únts¨s  r?cCs¦|ddkrbd}tt|ƒdƒD]}|dK}|||d7}q |ddkr¢dt|ƒd| }n@z"t|ddƒ}t| ¡p|d dƒ}Wntk r td ƒ‚YnX|S) z/Convert a number field to a python number. r)é€éÿr#érAéÚasciiÚstrictÚ0úinvalid header)Úranger2r?ÚintÚstripr0ÚInvalidHeaderError)r4ÚnÚir8r8r9Únti°s   rNrBcCsØt|ƒ}d|kr$d|dkrDnntd|d|fdƒt}n|tkrÌd|d |krrd|dkrÌnnV|dkrŠtdgƒ}ntdgƒ}d||}t|dƒD]}| d|d@¡|dL}q¬ntd ƒ‚|S) z/Convert a python number to a number field. rrBr#z%0*orDrCr@rAzoverflow in number field)rIÚbytesr3rÚ bytearrayrHÚinsertr0)rLÚdigitsÚformatr4rMr8r8r9ÚitnÄs  2    rTcCs0dtt d|¡ƒ}dtt d|¡ƒ}||fS)a¨Calculate the checksum for a member's header by summing up all characters except for the chksum field which is treated as if it was filled with spaces. According to the GNU tar sources, some tars (Sun and NeXT) calculate chksum with signed char, which will be different if there are chars in the buffer with the high bit set. So we calculate two checksums, unsigned and signed. rCZ 148B8x356BZ 148b8x356b)ÚsumÚstructZ unpack_from)ÚbufZunsigned_chksumZ signed_chksumr8r8r9Ú calc_chksumsás rXc Cs¦|pd}|dkrdS|dkr.t |||¡dSt||ƒ\}}t|ƒD],}| |¡}t|ƒ|krf|dƒ‚| |¡qD|dkr¢| |¡}t|ƒ|kr˜|dƒ‚| |¡dS)zjCopy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. i@rNúunexpected end of data)ÚshutilÚ copyfileobjÚdivmodrHÚreadr2Úwrite) ÚsrcZdstr5Ú exceptionÚbufsizeÚblocksÚ remainderÚbrWr8r8r9r[îs$       r[cCs8ttjddƒ}|dk r(| |d¡ |¡}t|dddS)Nr6Úbackslashreplaceú )Úend)ÚgetattrÚsysÚstdoutr1r=Úprint)r4r6r8r8r9Ú _safe_printsrlc@seZdZdZdS)rzBase exception.N©Ú__name__Ú __module__Ú __qualname__Ú__doc__r8r8r8r9rsc@seZdZdZdS)r z%General exception for extract errors.Nrmr8r8r8r9r sc@seZdZdZdS)rz&Exception for unreadable tar archives.Nrmr8r8r8r9rsc@seZdZdZdS)rz.Exception for unavailable compression methods.Nrmr8r8r8r9rsc@seZdZdZdS)r z=Exception for unsupported operations on stream-like TarFiles.Nrmr8r8r8r9r sc@seZdZdZdS)r z!Base exception for header errors.Nrmr8r8r8r9r sc@seZdZdZdS)ÚEmptyHeaderErrorzException for empty headers.Nrmr8r8r8r9rr srrc@seZdZdZdS)ÚTruncatedHeaderErrorz Exception for truncated headers.Nrmr8r8r8r9rs#srsc@seZdZdZdS)ÚEOFHeaderErrorz"Exception for end of file headers.Nrmr8r8r8r9rt&srtc@seZdZdZdS)rKzException for invalid headers.Nrmr8r8r8r9rK)srKc@seZdZdZdS)ÚSubsequentHeaderErrorz3Exception for missing and invalid extended headers.Nrmr8r8r8r9ru,sruc@s0eZdZdZdd„Zdd„Zdd„Zdd „Zd S) Ú _LowLevelFilez‰Low-level file object. Supports reading and writing. It is used instead of a regular file object for streaming access. cCsFtjtjtjBtjBdœ|}ttdƒr2|tjO}t ||d¡|_dS)N©ÚrÚwÚO_BINARYi¶) ÚosÚO_RDONLYÚO_WRONLYÚO_CREATÚO_TRUNCÚhasattrrzrÚfd)ÚselfÚnameÚmoder8r8r9Ú__init__9sþý  z_LowLevelFile.__init__cCst |j¡dS©N)r{Úcloser©r‚r8r8r9r‡Bsz_LowLevelFile.closecCst |j|¡Sr†)r{r]r©r‚r'r8r8r9r]Esz_LowLevelFile.readcCst |j|¡dSr†)r{r^r©r‚r4r8r8r9r^Hsz_LowLevelFile.writeN)rnrorprqr…r‡r]r^r8r8r8r9rv3s  rvc@sreZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z ddd„Z dd„Z dd„Zdd„ZdS)Ú_Streama˜Class that serves as an adapter between TarFile and a stream-like object. The stream-like object only needs to have a read() or write() method and is accessed blockwise. Use of gzip or bzip2 compression is possible. A stream-like object could be for example: sys.stdin, sys.stdout, a socket, a tape device etc. _Stream is intended to be used only internally. c Csäd|_|dkrt||ƒ}d|_|dkr6t|ƒ}| ¡}|pd|fg}d|_g|_d}|j}|D]L\}}||kr||j  d||df¡|j  d||||f¡||7}||}qX||jkrÆ|j  d||jdf¡dS)NrrƒFT) ršÚoffsetr'ÚpositionrhrƒrœÚ map_indexÚmaprÃ)r‚ršrÍr'Z blockinfoZlastposZrealposr8r8r9r…as(    z_FileInFile.__init__cCsdSr†r8rˆr8r8r9r¶zsz_FileInFile.flushcCsdS©NTr8rˆr8r8r9Úreadable}sz_FileInFile.readablecCsdS)NFr8rˆr8r8r9Úwritable€sz_FileInFile.writablecCs |j ¡Sr†)ršÚseekablerˆr8r8r9rÔƒsz_FileInFile.seekablecCs|jS)z*Return the current file position. )rÎrˆr8r8r9r¿†sz_FileInFile.tellcCs|tjkr tt|dƒ|jƒ|_nj|tjkr\|dkrFt|j|dƒ|_qŠt|j||jƒ|_n.|tjkr‚tt|j||jƒdƒ|_ntdƒ‚|jS)z(Seek to a position in the file. rzInvalid argument) ÚioÚSEEK_SETÚminÚmaxr'rÎÚSEEK_CURÚSEEK_ENDr0)r‚rÎÚwhencer8r8r9rÀ‹s   z_FileInFile.seekc Cs |dkr|j|j}nt||j|jƒ}d}|dkr|j|j\}}}}||jkr`|krhqŽnqŽq6|jd7_|jt|jƒkr6d|_q6t|||jƒ}|râ|j ||j|¡|j |¡}t|ƒ|krØt dƒ‚||7}n |t |7}||8}|j|7_q,|S)z!Read data from the file. NrŽrr#rY) r'rÎr×rÐrÏr2ršrÀr]rr3) r‚r'rWÚdataÚstartÚstoprÍr5rdr8r8r9r]›s,     z_FileInFile.readcCs&| t|ƒ¡}||dt|ƒ…<t|ƒSr†)r]r2)r‚rdrWr8r8r9Úreadintoºsz_FileInFile.readintocCs d|_dSrÑ)rœrˆr8r8r9r‡¿sz_FileInFile.close)N)N)rnrorprqr…r¶rÒrÓrÔr¿rÕrÖrÀr]rßr‡r8r8r8r9rÌ[s  rÌcseZdZ‡fdd„Z‡ZS)Ú ExFileObjectcs&t|j|j|j|jƒ}tƒ |¡dSr†)rÌršÚ offset_datar'ÚsparseÚsuperr…)r‚ÚtarfileÚtarinforš©Ú __class__r8r9r…Ås  ÿzExFileObject.__init__©rnrorpr…Ú __classcell__r8r8rær9ràÃsràc@s eZdZdS)Ú FilterErrorN)rnrorpr8r8r8r9rêÐsrêcseZdZ‡fdd„Z‡ZS)ÚAbsolutePathErrorcs ||_tƒ d|j›d¡dS)Nzmember z has an absolute path©rårãr…rƒ©r‚rårær8r9r…ÔszAbsolutePathError.__init__rèr8r8rær9rëÓsrëcseZdZ‡fdd„Z‡ZS)ÚOutsideDestinationErrorcs.||_||_tƒ |j›d|›dd¡dS)Nz would be extracted to ú, ú which is outside the destination©råÚ_pathrãr…rƒ©r‚rår%rær8r9r…Ùs ÿz OutsideDestinationError.__init__rèr8r8rær9rîØsrîcseZdZ‡fdd„Z‡ZS)ÚSpecialFileErrorcs||_tƒ |j›d¡dS)Nz is a special filerìrírær8r9r…àszSpecialFileError.__init__rèr8r8rær9rôßsrôcseZdZ‡fdd„Z‡ZS)ÚAbsoluteLinkErrorcs||_tƒ |j›d¡dS)Nz is a link to an absolute pathrìrírær8r9r…åszAbsoluteLinkError.__init__rèr8r8rær9rõäsrõcseZdZ‡fdd„Z‡ZS)ÚLinkOutsideDestinationErrorcs.||_||_tƒ |j›d|›dd¡dS)Nz would link to rïrðrñrórær8r9r…ês ÿz$LinkOutsideDestinationError.__init__rèr8r8rær9röésröTcCsäi}|j}tj |¡}| dtjf¡r@|j dtj¡}|d<tj |¡rTt|ƒ‚tj tj  ||¡¡}tj  ||g¡|krˆt ||ƒ‚|j }|dk rü|d@}|rê|  ¡s²| ¡rÌ|d@sÂ|dM}|dO}n| ¡sÜ| ¡râd}nt|ƒ‚||j krü||d<|rà|jdk rd|d<|jdk r*d|d <|jdk r>d|d <|jdk rRd|d <| ¡sf| ¡ràtj |j¡r~t|ƒ‚| ¡r¤tj  |tj |¡|j¡}ntj  ||j¡}tj |¡}tj  ||g¡|kràt||ƒ‚|S) Nú/rƒiíé@i¶ÿÿÿé€r„r)r*r+r,)rƒr{r%ÚrealpathrËÚsepÚlstripÚisabsrërÄÚ commonpathrîr„ÚisregÚislnkÚisdirÚissymrôr)r*r+r,ÚlinknamerõÚdirnamerö)ÚmemberÚ dest_pathZfor_dataÚ new_attrsrƒZ target_pathr„r8r8r9Ú_get_filtered_attrsðs^           þÿ  rcCs|Sr†r8)rrr8r8r9Úfully_trusted_filter/sr cCs(t||dƒ}|r$|jf|ddi—ŽS|S)NFÚdeep©rr®©rrrr8r8r9Ú tar_filter2s r cCs(t||dƒ}|r$|jf|ddi—ŽS|S)NTr Fr r r8r8r9Ú data_filter8s r)Z fully_trustedr”rÜs([0-9]{1,20}) c@sÚeZdZdZedddddddd d d d d dddddddddZdidd„Zedd„ƒZej dd„ƒZedd„ƒZ e j dd„ƒZ dd„Z e e e e e e e e d e d!œ d"d#„Z d$d%„Zeed&fd'd(„Zd)d*„Zd+d,„Zd-d.„Zed/d0„ƒZd1d2„Zed3d4„ƒZed5d6„ƒZed7d8„ƒZed9d:„ƒZed;d<„ƒZed=d>„ƒZd?d@„ZdAdB„Z dCdD„Z!dEdF„Z"dGdH„Z#dIdJ„Z$dKdL„Z%dMdN„Z&dOdP„Z'dQdR„Z(dSdT„Z)dUdV„Z*dWdX„Z+dYdZ„Z,d[d\„Z-d]d^„Z.d_d`„Z/dadb„Z0dcdd„Z1dedf„Z2dgdh„Z3dS)jraInformational class which holds the details about an archive member given by a tar header block. TarInfo objects are returned by TarFile.getmember(), TarFile.getmembers() and TarFile.gettarinfo() and are usually created internally. zName of the archive member.zPermission bits.z6User ID of the user who originally stored this member.z7Group ID of the user who originally stored this member.zSize in bytes.zTime of last modification.zHeader checksum.z–File type. type is usually one of these constants: REGTYPE, AREGTYPE, LNKTYPE, SYMTYPE, DIRTYPE, FIFOTYPE, CONTTYPE, CHRTYPE, BLKTYPE, GNUTYPE_SPARSE.zcName of the target file name, which is only present in TarInfo objects of type LNKTYPE and SYMTYPE.z User name.z Group name.zDevice major number.zDevice minor number.zThe tar header starts here.zThe file's data starts here.zMA dictionary containing key-value pairs of an associated pax extended header.zSparse member information.N)rƒr„r)r*r'r(ÚchksumÚtyperr+r,ÚdevmajorÚdevminorrÍráÚ pax_headersrâräÚ_sparse_structsÚ _link_targetrcCsj||_d|_d|_d|_d|_d|_d|_t|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_i|_dS)zXConstruct a TarInfo object. name is the optional name of the member. i¤rrN)rƒr„r)r*r'r(rÚREGTYPErrr+r,rrrÍrárâr©r‚rƒr8r8r9r…qs"zTarInfo.__init__cCs|jS)z(In pax headers, "name" is called "path".©rƒrˆr8r8r9r%‰sz TarInfo.pathcCs ||_dSr†rrr8r8r9r%ŽscCs|jS)z0In pax headers, "linkname" is called "linkpath".©rrˆr8r8r9r&’szTarInfo.linkpathcCs ||_dSr†r)r‚rr8r8r9r&—scCsd|jj|jt|ƒfS)Nz<%s %r at %#x>)rçrnrƒÚidrˆr8r8r9Ú__repr__›szTarInfo.__repr__T) rƒr(r„rr)r*r+r,r Ú_KEEPc CsŽ| rt |¡} n t |¡} || k r(|| _|| k r6|| _|| k rD|| _|| k rR|| _|| k r`|| _|| k rn|| _|| k r||| _|| k rŠ|| _ | S)zGReturn a deep copy of self with the given attributes replaced. ) ÚcopyZdeepcopyrƒr(r„rr)r*r+r,) r‚rƒr(r„rr)r*r+r,r rÚresultr8r8r9r®žs(  zTarInfo.replacecCs€|jdkrd}n |jd@}|j||j|j|j|j|j|j|j|j |j |j |j dœ }|dt kr||d d¡s||dd7<|S)z9Return the TarInfo's attributes as a dictionary. Néÿ) rƒr„r)r*r'r(rrrr+r,rrrrƒr÷)r„rƒr)r*r'r(rrrr+r,rrÚDIRTYPEr³)r‚r„Úinfor8r8r9Úget_infoºs(  ózTarInfo.get_infoÚsurrogateescapecCsz| ¡}| ¡D]\}}|dkrtd|ƒ‚q|tkrD| |||¡S|tkrZ| |||¡S|tkrn| ||¡Stdƒ‚dS)zq*z|| dd ¡Wn$tk rv||||<Yq*YnXt||ƒ|kr*||||<q*d D]`\}}||kr´d ||<qš||}d |krØd |d krænn t|t ƒršt |ƒ||<d ||<qš|r|  |t |¡} nd} | |  |tdd¡S)z³Return the object as a ustar header block. If it cannot be represented this way, prepend a pax extended header sequence with supplement information. r*rƒr%rr&)r+r+é )r,r,r5rDrE))r)rB)r*rB)r'é )r(r6rrBr#rŽr®)r,rrr.r-r1ÚUnicodeEncodeErrorr2Ú isinstanceÚfloatÚstrÚ_create_pax_generic_headerÚXHDTYPEr0r ) r‚r!r6rrƒZhnamer5rRÚvalrWr8r8r9r's8 þ   *  zTarInfo.create_pax_headercCs| |td¡S)zAReturn the object as a pax global header block sequence. r/)r;ÚXGLTYPE)Úclsrr8r8r9Úcreate_pax_global_header3sz TarInfo.create_pax_global_headercCs~| d¡}tdt|ƒƒD]T}d |d|…¡}d ||d…¡}t| ||¡ƒtkrt| ||¡ƒtkrqvqtdƒ‚||fS)zUSplit a name longer than 100 chars into a prefix and a name part. r÷r#Nzname is too long)ÚsplitrHr2rÄr1Ú LENGTH_PREFIXr.r0)r‚rƒr6r7Z componentsrMr+r8r8r9r/9s ÿzTarInfo._posix_split_namec CsÆ| d¡ttfk}|r@t| dd¡d|ƒ}t| dd¡d|ƒ}ntdd||ƒ}tdd||ƒ}| dt¡}|dkrxtdƒ‚t| d d¡d ||ƒt| d d¡d @d|ƒt| d d¡d|ƒt| dd¡d|ƒt| dd¡d|ƒt| dd¡d|ƒd|t| dd¡d ||ƒ| dt¡t| dd¡d||ƒt| dd¡d||ƒt| dd¡d|ƒt| dd¡d|ƒt| dd¡d||ƒg}t  dt d  |¡¡} t | t d…ƒd} | dd…t d| dƒ| dd…} | S) z„Return a header block. info is a dictionary with file information, format must be one of the *_FORMAT constants. rrrrBrrNzTarInfo.type must not be Nonerƒrr„rr)r*r'r6r(s rr*r+r5r,r+rz%dsrŽi”þÿÿz%06orDi›þÿÿ)ÚgetÚCHRTYPEÚBLKTYPErTr:rr0r,rVr°rÈrÄrXrO) r!rSr6r7Zhas_device_fieldsrrZfiletypeÚpartsrWrr8r8r9r0Is:  ñ&zTarInfo._create_headercCs.tt|ƒtƒ\}}|dkr*|t|t7}|S)zdReturn the string payload filled with zero bytes up to the next 512 byte border. r)r\r2rÈr3)Zpayloadrbrcr8r8r9Ú_create_payloadsszTarInfo._create_payloadcCsR| ||¡t}i}d|d<||d<t|ƒ|d<t|d<| |t||¡| |¡S)zTReturn a GNUTYPE_LONGNAME or GNUTYPE_LONGLINK sequence for name. z ././@LongLinkrƒrr'r*)r1r3r2r1r0r rG)r?rƒrr6r7r!r8r8r9r2}s ÿzTarInfo._create_gnu_long_headerc Cs2d}| ¡D]8\}}z| dd¡Wq tk rBd}YqFYq Xq d}|rV|d7}| ¡D]\}}| d¡}|r‚| |d¡}n | d¡}t|ƒt|ƒd}d } } |tt| ƒƒ} | | krÂqÈ| } q¨|tt| ƒd ƒd |d |d 7}q^i} d| d<|| d<t|ƒ| d<t| d<| | td d¡|  |¡S)z¡Return a POSIX.1-2008 extended or global header sequence that contains a list of keyword, value pairs. The values must be strings. Fr/rETrŽs21 hdrcharset=BINARY r#rÉrrDó ó=ó z././@PaxHeaderrƒrr'r*r®) r$r1r7r2r:rOr,r0r rG) r?rrr6ZbinaryÚkeywordr(ZrecordsÚlrLr>r!r8r8r9r;Žs<  ( ÿz"TarInfo._create_pax_generic_headerc Csvt|ƒdkrtdƒ‚t|ƒtkr(tdƒ‚| t¡tkr>tdƒ‚t|dd…ƒ}|t|ƒkrbt dƒ‚|ƒ}t |dd…||ƒ|_ t|dd …ƒ|_ t|d d …ƒ|_ t|d d …ƒ|_t|d d …ƒ|_t|d d…ƒ|_||_|dd …|_t |d d…||ƒ|_t |dd…||ƒ|_t |dd…||ƒ|_t|dd…ƒ|_t|dd…ƒ|_t |dd…||ƒ}|jtkr†|j  d¡r†t|_|jtkr8d}g}tdƒD]l} z0t|||d…ƒ} t||d|d…ƒ} Wntk rôYqYnX| | | f¡|d7}q¢t|dƒ} t|dd…ƒ} || | f|_ | !¡rP|j  "d¡|_ |rr|jt#krr|d|j |_ |S)zAConstruct a TarInfo object from a 512 byte bytes object. rz empty headerztruncated headerzend of file headeré”éœz bad checksumrélété|éˆéii i)iIiQiYiôr÷i‚rºr6éiâiãiï)$r2rrrÈrsÚcountr3rtrNrXrKr?rƒr„r)r*r'r(rrrr+r,rrÚAREGTYPEr³r ÚGNUTYPE_SPARSErHr0rÃÚboolrrÚrstripÚ GNU_TYPES)r?rWr6r7rÚobjr+r›ÚstructsrMrÍÚnumbytesÚ isextendedÚorigsizer8r8r9ÚfrombufÁsZ         zTarInfo.frombufcCs8|j t¡}| ||j|j¡}|j ¡t|_| |¡S)zOReturn the next TarInfo object from TarFile object tarfile. ) ršr]rÈr`r6r7r¿rÍÚ _proc_member)r?rärWr[r8r8r9Ú fromtarfiles zTarInfo.fromtarfilecCsT|jttfkr| |¡S|jtkr,| |¡S|jtttfkrF|  |¡S|  |¡SdS)zYChoose the right processing method depending on the type and call it. N) rr4r3Ú _proc_gnulongrWÚ _proc_sparser<r>ÚSOLARIS_XHDTYPEÚ _proc_paxÚ _proc_builtin)r‚rär8r8r9ras    zTarInfo._proc_membercCsR|j ¡|_|j}| ¡s$|jtkr4|| |j¡7}||_|  |j |j |j ¡|S)zfProcess a builtin type or an unknown type which will be treated as a regular file. ) ršr¿rárÿrÚSUPPORTED_TYPESÚ_blockr'rÍÚ_apply_pax_inforr6r7)r‚rärÍr8r8r9rg"s zTarInfo._proc_builtincCs†|j | |j¡¡}z| |¡}Wntk r>tdƒ‚YnX|j|_|jt krft ||j |j ƒ|_ n|jtkr‚t ||j |j ƒ|_|S)zSProcess the blocks that hold a GNU longname or longlink member. ú missing or bad subsequent header)ršr]rir'rbr rurÍrr4r?r6r7rƒr3r)r‚rärWÚnextr8r8r9rc3s  zTarInfo._proc_gnulongc CsÚ|j\}}}|`|rª|j t¡}d}tdƒD]n}z0t|||d…ƒ}t||d|d…ƒ} Wntk rzYqœYnX|r’| r’| || f¡|d7}q,t|dƒ}q||_ |j  ¡|_ |j |  |j ¡|_||_ |S)z8Process a GNU sparse header plus extra headers. rér6rTiø)rršr]rÈrHrNr0rÃrXrâr¿rárir'rÍ) r‚rär\r^r_rWr›rMrÍr]r8r8r9rdIs(      zTarInfo._proc_sparsecCsÌ|j | |j¡¡}|jtkr&|j}n |j ¡}d}d}g}t|ƒ|krj||dkrjt   ||¡}spt dƒ‚zt |  d¡ƒ}Wntk ržt dƒ‚YnX|dkr°t dƒ‚||t|ƒkrÈt dƒ‚| d¡|d} || d¡d| …} |  d¡\} } } | r| dks|| dkr&t dƒ‚| || | f¡| dkr`|dkr`| d kr\|j}nd }||7}q<|dkrxd }|D]X\}} } | | d d |j¡}|tkr¸| | ||j|j¡}n| | d d |j¡}|||<q|z| |¡}Wntk rtd ƒ‚YnXd |kr| ||¡nFd |kr4| ||¡n.| d¡dkrb| d¡dkrb| |||¡|jttfkrÈ|  ||j|j¡|j!|_!d|krÈ|j"}| #¡s²|jt$krÂ|| |j¡7}||_!|S)zVProcess an extended or global header as described in POSIX.1-2008. rNrGr#érIrÊs hdrcharsetsBINARYr/rkúGNU.sparse.mapúGNU.sparse.sizezGNU.sparse.majorÚ1zGNU.sparse.minorrFr')%ršr]rir'rr>rrr2Ú_header_length_prefix_reÚmatchrKrIÚgroupr0rÝrgÚ partitionrÃr6Ú_decode_pax_fieldr7ÚPAX_NAME_FIELDSrbr ruÚ_proc_gnusparse_01Ú_proc_gnusparse_00rCÚ_proc_gnusparse_10r<rerjrÍrárÿrh)r‚rärWrr›r6Ú raw_headersrsr5Zheader_value_end_offsetZkeyword_and_valueZ raw_keywordZequalsZ raw_valuerKr(rlrÍr8r8r9rfes|       ÿ  ÿ ÿ     zTarInfo._proc_paxc Cs¦g}g}|D]„\}}}|dkrTz| t| ¡ƒ¡Wqtk rPtdƒ‚YqXq |dkr z| t| ¡ƒ¡Wq tk rŽtdƒ‚Yq Xq tt||ƒƒ|_dS)z?Process a GNU tar extended sparse header, version 0.0. sGNU.sparse.offsetrGsGNU.sparse.numbytesN)rÃrIr=r0rKÚlistÚziprâ)r‚rlr{Zoffsetsr]Ú_rKr(r8r8r9ryÞszTarInfo._proc_gnusparse_00cCs@dd„|d d¡Dƒ}tt|ddd…|ddd…ƒƒ|_dS)z?Process a GNU tar extended sparse header, version 0.1. cSsg|] }t|ƒ‘qSr8)rI)Ú.0Úxr8r8r9Ú õsz.TarInfo._proc_gnusparse_01..roú,Nr$r#)rAr|r}râ)r‚rlrrâr8r8r9rxòszTarInfo._proc_gnusparse_01cCs¨d}g}|j t¡}| dd¡\}}t|ƒ}t|ƒ|dkrtd|krT||j t¡7}| dd¡\}}| t|ƒ¡q,|j ¡|_t t |ddd…|ddd…ƒƒ|_ dS)z?Process a GNU tar extended sparse header, version 1.0. NrJr#r$) ršr]rÈrArIr2rÃr¿rár|r}râ)r‚rlrräZfieldsrârWZnumberr8r8r9rzøs  zTarInfo._proc_gnusparse_10c CsÂ| ¡D]ª\}}|dkr&t|d|ƒq|dkr@t|dt|ƒƒq|dkrZt|dt|ƒƒq|tkr|tkr”zt||ƒ}Wntk r’d}YnX|dkr¦| d¡}t|||ƒq| ¡|_dS) zoReplace fields with supplemental information from a previous pax extended or global header. zGNU.sparse.namer%rpr'zGNU.sparse.realsizerr÷N) r$ÚsetattrrIÚ PAX_FIELDSÚPAX_NUMBER_FIELDSr0rYrr)r‚rr6r7rKr(r8r8r9rjs"  zTarInfo._apply_pax_infocCs4z| |d¡WStk r.| ||¡YSXdS)z1Decode a single field from a pax record. rEN)r=ÚUnicodeDecodeError)r‚r(r6Zfallback_encodingZfallback_errorsr8r8r9rvszTarInfo._decode_pax_fieldcCs"t|tƒ\}}|r|d7}|tS)z_Round up a byte count by BLOCKSIZE and return it, e.g. _block(834) => 1024. r#)r\rÈ)r‚rUrbrcr8r8r9ri'szTarInfo._blockcCs |jtkS©z4Return True if the Tarinfo object is a regular file.)rÚ REGULAR_TYPESrˆr8r8r9rÿ0sz TarInfo.isregcCs| ¡Sr‡)rÿrˆr8r8r9Úisfile4szTarInfo.isfilecCs |jtkS)z!Return True if it is a directory.)rr rˆr8r8r9r8sz TarInfo.isdircCs |jtkS)z%Return True if it is a symbolic link.)rÚSYMTYPErˆr8r8r9r<sz TarInfo.issymcCs |jtkS)z!Return True if it is a hard link.)rÚLNKTYPErˆr8r8r9r@sz TarInfo.islnkcCs |jtkS)z(Return True if it is a character device.)rrDrˆr8r8r9ÚischrDsz TarInfo.ischrcCs |jtkS)z$Return True if it is a block device.)rrErˆr8r8r9ÚisblkHsz TarInfo.isblkcCs |jtkS)zReturn True if it is a FIFO.)rÚFIFOTYPErˆr8r8r9ÚisfifoLszTarInfo.isfifocCs |jdk Sr†)rârˆr8r8r9ÚissparsePszTarInfo.issparsecCs|jtttfkS)zCReturn True if it is one of character device, block device or FIFO.)rrDrErŽrˆr8r8r9ÚisdevSsz TarInfo.isdev)r)4rnrorprqÚdictÚ __slots__r…Úpropertyr%Úsetterr&rrr®r"rr r)r%r&r'Ú classmethodr@r/Ú staticmethodr0rGr2r;r`rbrargrcrdrfryrxrzrjrvrirÿr‰rrrrŒrrrr‘r8r8r8r9rNsªè     ý  1  )   2 >  y c @säeZdZdZdZdZdZdZeZ e Z dZ e ZeZdZdfdd „Zedddefd d „ƒZedgd d „ƒZedhdd„ƒZedidd„ƒZedjdd„ƒZdddddœZdd„Zdd„Zdd„Zd d!„Zdkd"d#„Zdldd%œd&d'„Z dmdd(œd)d*„Z!dnd+d,„Z"d-d.„Z#doddd0œd1d2„Z$dpddd0œd4d5„Z%d6d7„Z&d8d9„Z'd:d;„Z(dd?„Z*dqd@dA„Z+dBdC„Z,dDdE„Z-dFdG„Z.dHdI„Z/dJdK„Z0dLdM„Z1dNdO„Z2dPdQ„Z3dRdS„Z4dTdU„Z5drdVdW„Z6dXdY„Z7dsdZd[„Z8d\d]„Z9d^d_„Z:d`da„Z;dbdc„Z.not_compressed)ÚkeyNrxz%file could not be opened successfullyú:r#r”r•ú|rwzmode must be 'r' or 'w'Frzundiscernible mode) r0Úsortedr®rhr¿rrrÀrAr‹r‡r–r­) r?rƒr„ršraÚkwargsr°r™ÚfuncZ saved_posÚfilemodeÚstreamrÇr8r¯r9rãsP%            z TarFile.opencKs |dkrtdƒ‚||||f|ŽS)zCOpen uncompressed tar archive name for reading or writing. ršrœ)r0)r?rƒr„ršrµr8r8r9r­>szTarFile.taropenrªcKsè|dkrtdƒ‚zddlm}Wntk r<tdƒ‚YnXz|||d||ƒ}Wn.tk r‚|dk r||dkr|td ƒ‚‚YnXz|j|||f|Ž}WnBtk rÈ| ¡|dkrÂtd ƒ‚‚Yn| ¡‚YnXd |_ |S) zkOpen gzip compressed tar archive name for reading or writing. Appending is not allowed. ©rxryr€úmode must be 'r', 'w' or 'x'r)ÚGzipFilezgzip module is not availablerdNrxr·F) r0Zgzipr»ržrr¦rr­r‡r–)r?rƒr„ršÚ compresslevelrµr»rÇr8r8r9ÚgzopenFs0zTarFile.gzopenc Ks¸|dkrtdƒ‚zddlm}Wntk r<tdƒ‚YnX||pF|||d}z|j|||f|Ž}WnFttfk r˜| ¡|dkr’t dƒ‚‚Yn| ¡‚YnXd |_ |S) zlOpen bzip2 compressed tar archive name for reading or writing. Appending is not allowed. r¹rºr)ÚBZ2Filer‘)r¼rxznot a bzip2 fileF) r0rr¾ržrr­r¦ÚEOFErrorr‡rr–)r?rƒr„ršr¼rµr¾rÇr8r8r9Úbz2opengs&zTarFile.bz2openc Ks¼|dkrtdƒ‚zddlm}m}Wntk r@tdƒ‚YnX||pJ|||d}z|j|||f|Ž}WnF|tfk rœ| ¡|dkr–t dƒ‚‚Yn| ¡‚YnXd |_ |S) zkOpen lzma compressed tar archive name for reading or writing. Appending is not allowed. r¹rºr)ÚLZMAFiler¨r“)Úpresetrxznot an lzma fileF) r0r§rÁr¨ržrr­r¿r‡rr–) r?rƒr„ršrÂrµrÁr¨rÇr8r8r9Úxzopenƒs&zTarFile.xzopenr­r½rÀrÃ)r”rrr’cCsˆ|jr dSd|_z`|jdkrn|j ttd¡|jtd7_t |jt ƒ\}}|dkrn|j tt |¡W5|js‚|j ¡XdS)zlClose the TarFile. In write-mode, two finishing zero blocks are appended to the archive. NTrr$r) rœr–ršr‡r„r^r3rÈrÍr\Ú RECORDSIZE)r‚rbrcr8r8r9r‡ªs z TarFile.closecCs"| |¡}|dkrtd|ƒ‚|S)aReturn a TarInfo object for member `name'. If `name' can not be found in the archive, KeyError is raised. If a member occurs more than once in the archive, its last occurrence is assumed to be the most up-to-date version. Nzfilename %r not found)Ú _getmemberÚKeyError)r‚rƒrår8r8r9Ú getmember¿s  zTarFile.getmembercCs| ¡|js| ¡|jS)zŽReturn the members of the archive as a list of TarInfo objects. The list has the same order as the members in the archive. )Ú_checkr¨Ú_loadr§rˆr8r8r9Ú getmembersÊszTarFile.getmemberscCsdd„| ¡DƒS)z‹Return the members of the archive as a list of their names. It has the same order as the list returned by getmembers(). cSsg|] }|j‘qSr8r)rrår8r8r9rØsz$TarFile.getnames..)rÊrˆr8r8r9ÚgetnamesÔszTarFile.getnamesc Cs^| d¡|dk r|j}|dkr$|}tj |¡\}}| tjd¡}| d¡}| ¡}||_ |dkr€|j stt  |¡}qŽt  |¡}nt  | ¡¡}d}|j}t  |¡rþ|j|jf} |j sæ|jdkræ| |jkræ||j| kræt} |j| }nt} | drü||j| <nht  |¡rt} nVt  |¡r"t} nDt  |¡r>t} t |¡}n(t  |¡rPt} nt   |¡rbt!} ndS||_||_"|j#|_$|j%|_&| tkr–|j'|_(nd|_(|j)|_*| |_+||_,t-räzt- .|j$¡d|_/Wnt0k râYnXt1rzt1 2|j&¡d|_3Wnt0k rYnX| tt!fkrZt4tdƒrZt4tdƒrZt 5|j6¡|_7t 8|j6¡|_9|S) aÒCreate a TarInfo object from the result of os.stat or equivalent on an existing file. The file is either named by `name', or specified as a file object `fileobj' with a file descriptor. If given, `arcname' specifies an alternative name for the file in the archive, otherwise, the name is taken from the 'name' attribute of 'fileobj', or the 'name' argument. The name should be a text string. ÚawxNr÷rr#rÚmajorÚminor):rÈrƒr{r%Ú splitdriver®rûrürårär¢ÚlstatÚstatÚfstatÚfilenoÚst_modeÚS_ISREGÚst_inoÚst_devÚst_nlinkr©r‹rÚS_ISDIRr ÚS_ISFIFOrŽÚS_ISLNKrŠÚreadlinkÚS_ISCHRrDÚS_ISBLKrEr„Úst_uidr)Úst_gidr*Úst_sizer'Úst_mtimer(rrÚpwdÚgetpwuidr+rÆÚgrpZgetgrgidr,r€rÍÚst_rdevrrÎr) r‚rƒÚarcnameršZdrvråZstatresrZstmdÚinoderr8r8r9Ú gettarinfoÚs„      ÿ ÿ          zTarFile.gettarinfoT)r§cCs*| ¡|dkr|}|D] }|rÎ|jdkr6tdƒntt |j¡ƒtd|jpT|j|jp^|jfƒ|  ¡sv|  ¡rtdd|j |j fƒntd|j ƒ|jdkr²tdƒntdt |j¡dd …ƒt|j| ¡ràd nd ƒ|r| ¡rtd |jƒ| ¡rtd |jƒtƒqdS)aPrint a table of contents to sys.stdout. If `verbose' is False, only the names of the members are printed. If it is True, an `ls -l'-like output is produced. `members' is optional and must be a subset of the list returned by getmembers(). Nz ??????????z%s/%sz%10sz%d,%dz%10dz????-??-?? ??:??:??z%d-%02d-%02d %02d:%02d:%02dr¹r÷rz-> zlink to )rÈr„rlrÑr·r+r)r,r*rŒrrrr'r(r±Ú localtimerƒrrrrrk)r‚Úverboser§rår8r8r9r|=s8    ÿÿ  ÿ  z TarFile.list©Úfilterc Cs6| d¡|dkr|}|jdk rFtj |¡|jkrF| dd|¡dS| d|¡| ||¡}|dkrz| dd|¡dS|dk r¦||ƒ}|dkr¦| dd|¡dS| ¡rÒt|dƒ}|  ||¡W5QRXn`|  ¡r(|  |¡|r2t t  |¡ƒD]*}|j tj ||¡tj ||¡||d qún |  |¡dS) a!Add the file `name' to the archive. `name' may be any type of file (directory, fifo, symbolic link, etc.). If given, `arcname' specifies an alternative name for the file in the archive. Directories are added recursively by default. This can be avoided by setting `recursive' to False. `filter' is a function that expects a TarInfo object argument and returns the changed TarInfo object, if it returns None the TarInfo object will be excluded from the archive. rÌNr$ztarfile: Skipped %rr#ztarfile: Unsupported type %rútarfile: Excluded %rr˜rì)rÈrƒr{r%r¡Ú_dbgrérÿr Úaddfilerr´ÚlistdirÚaddrÄ)r‚rƒrçÚ recursiveríråÚfr8r8r9ròcs8      ÿ z TarFile.addcCs¾| d¡t |¡}| |j|j|j¡}|j |¡|jt |ƒ7_|j }|dk r®t ||j|j |dt |j tƒ\}}|dkrœ|j tt|¡|d7}|j|t7_|j |¡dS)aAdd the TarInfo object `tarinfo' to the archive. If `fileobj' is given, it should be a binary file, and tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects directly, or by using gettarinfo(). rÌN)rarr#)rÈrr)rSr6r7ršr^rÍr2r¦r[r'r\rÈr3r§rÃ)r‚råršrWrarbrcr8r8r9rð–s   zTarFile.addfilecCsr|dkr0|j}|dkrtSt|tƒr,tdƒ‚|St|ƒr<|Sz t|WStk rltd|›dƒd‚YnXdS)NzrString names are not supported for TarFile.extraction_filter. Use a function such as tarfile.data_filter directly.zfilter z not found) Úextraction_filterr r8r:Ú TypeErrorÚcallableÚ_NAMED_FILTERSrÆr0)r‚rír8r8r9Ú_get_filter_function¯s ÿ zTarFile._get_filter_functionÚ.)Ú numeric_ownerríc Csðg}| |¡}|dkr|}|D]F}| |||¡}|dkr:q| ¡rL| |¡|j||| ¡ |dq|jdd„dd|D]n}tj ||j ¡} z,|j || |d|  || ¡|  || ¡Wq|t k rè} z| | ¡W5d} ~ XYq|Xq|dS)a˜Extract all members from the archive to the current working directory and set owner, modification time and permissions on directories afterwards. `path' specifies a different directory to extract to. `members' is optional and must be a subset of the list returned by getmembers(). If `numeric_owner` is True, only the numbers for user/group names are used and not the names. The `filter` function will be called on each member just before extraction. It can return a changed TarInfo or None to skip the member. String names of common filters are accepted. N©Ú set_attrsrûcSs|jSr†r)r›r8r8r9ÚârŽz$TarFile.extractall..T)r±Úreverse)rû)rùÚ_get_extract_tarinforrÃÚ _extract_oneÚsortr{r%rÄrƒÚchownÚutimeÚchmodr Ú_handle_nonfatal_error) r‚r%r§rûríZ directoriesÚfilter_functionrråÚdirpathr«r8r8r9Ú extractallÁs,  ÿ zTarFile.extractallrcCs4| |¡}| |||¡}|dk r0| ||||¡dS)a¯Extract a member from the archive to the current working directory, using its full name. Its file information is extracted as accurately as possible. `member' may be a filename or a TarInfo object. You can specify a different directory using `path'. File attributes (owner, mtime, mode) are set unless `set_attrs' is False. If `numeric_owner` is True, only the numbers for user/group names are used and not the names. The `filter` function will be called before extraction. It can return a changed TarInfo or None to skip the member. String names of common filters are accepted. N)rùrr)r‚rr%rýrûrírrår8r8r9Úextractîs zTarFile.extractc CsÎt|tƒr| |¡}n|}|}z|||ƒ}WnZttfk r\}z| |¡W5d}~XYn,tk r†}z| |¡W5d}~XYnX|dkr¦| dd|j ¡dS|  ¡rÊt   |¡}t j  ||j¡|_|S)z@Get filtered TarInfo (or None) from member, which might be a strNr$rî)r8r:rÇr¦rêÚ_handle_fatal_errorr rrïrƒrrr{r%rÄrr)r‚rrr%råZ unfilteredr«r8r8r9r s"   zTarFile._get_extract_tarinfoc Csˆ| d¡z"|j|tj ||j¡||dWnVtk rX}z| |¡W5d}~XYn,tk r‚}z|  |¡W5d}~XYnXdS)z%Extract from filtered tarinfo to diskrxrüN) rÈÚ_extract_memberr{r%rÄrƒr¦r r r)r‚rår%rýrûr«r8r8r9r s þ zTarFile._extract_onecCs"|jdkr‚n| dd|¡dS)z=Handle non-fatal error (ExtractError) according to errorlevelr#ú tarfile: %sN)r¥rï©r‚r«r8r8r9r% s zTarFile._handle_nonfatal_errorcCsn|jdkr‚n\t|tƒrP|jdkr6| dd|j¡qj| dd|j|jf¡n| ddt|ƒj|f¡dS)z1Handle "fatal" error according to self.errorlevelrNr#r ztarfile: %s %rztarfile: %s %s)r¥r8r¦ÚfilenamerïÚstrerrorrrnrr8r8r9r , s   zTarFile._handle_fatal_errorcCs‚| d¡t|tƒr | |¡}n|}| ¡s6|jtkrB| ||¡S| ¡sR|  ¡rzt|j t ƒrht dƒ‚q~|  | |¡¡SndSdS)züExtract a member from the archive as a file object. `member' may be a filename or a TarInfo object. If `member' is a regular file or a link, an io.BufferedReader object is returned. Otherwise, None is returned. rxz'cannot extract (sym)link as file objectN)rÈr8r:rÇrÿrrhÚ fileobjectrrršr‹r Ú extractfileÚ_find_link_target)r‚rrår8r8r9r8 s      zTarFile.extractfilecCsT| d¡}| dtj¡}tj |¡}|r>tj |¡s>t |¡| ¡sN|  ¡rh|  dd|j |j f¡n|  d|j ¡|  ¡rŒ| ||¡nŽ| ¡r¢| ||¡nx| ¡r¸| ||¡nb| ¡sÈ| ¡rÖ| ||¡nD| ¡sæ|  ¡rô| ||¡n&|jtkr| ||¡n | ||¡|rP| |||¡|  ¡sP| ||¡| ||¡dS)z\Extract the TarInfo object tarinfo to a physical file called targetpath. r÷r#z%s -> %sN)rYr®r{rûr%rrŸÚmakedirsrrrïrƒrrÿÚmakefilerÚmakedirrÚmakefiforŒrÚmakedevÚmakelinkrrhÚ makeunknownrrr)r‚råÚ targetpathrýrûZ upperdirsr8r8r9r W s4       zTarFile._extract_membercCs@z&|jdkrt |¡n t |d¡Wntk r:YnXdS)z,Make a directory called targetpath. NiÀ)r„r{ÚmkdirÚFileExistsError©r‚rårr8r8r9rˆ s   zTarFile.makedirc CsŽ|j}| |j¡|j}t|dƒb}|jdk rn|jD]"\}}| |¡t|||t|ƒq4| |j¡|  ¡nt|||jt|ƒW5QRXdS)z'Make a file called targetpath. r™N) ršrÀrár¦r râr[rr'Útruncate)r‚rårÚsourceraÚtargetrÍr'r8r8r9r– s      zTarFile.makefilecCs"| ||¡| dd|j¡dS)zYMake a file from a TarInfo object with an unknown type at targetpath. r#z9tarfile: Unknown file type %r, extracted as regular file.N)rrïrrr8r8r9r¦ s ÿzTarFile.makeunknowncCs"ttdƒrt |¡ntdƒ‚dS)z'Make a fifo called targetpath. Úmkfifozfifo not supported by systemN)r€r{r"r rr8r8r9r® s  zTarFile.makefifocCsjttdƒrttdƒstdƒ‚|j}|dkr.d}| ¡rB|tjO}n |tjO}t ||t  |j |j ¡¡dS)zrnrorprqr¤r¢r£r¥rrSr r6r7rråràrrõr…r–rÄrr­r½rÀrÃr®r‡rÇrÊrËrér|ròrðrùr r rrrr rr rrrrrrrrrrlrÅrÉrÈrr7rïr=r?r8r8r8r9rXsœý oZ    ü    c&3 ÿ -ÿ   ÿ 1! 6 ( cCs2zt|ƒ}| ¡WdStk r,YdSXdS)zfReturn True if name points to a tar archive that we are able to handle, else return False. TFN)rr‡r)rƒrÇr8r8r9rÕ s c Csddl}d}|j|d}|jdddddd |jd d td d |jdd}|jddddd|jdddddd|jdddddd|jdd dd!d| ¡}|jrº|jdkrº| d"d#¡|j dk r4|j }t |ƒrt |d$ƒ }|  ¡t |  ¡tjd%W5QRX|jr0t d& |¡ƒn| d"d' |¡¡nÐ|jdk rŽ|j}t |ƒrxt  |d(¡}|j|jd)W5QRXn| d"d' |¡¡nv|jdk rbt|jƒd"kr¼|jd}tj}n,t|jƒd*krØ|j\}}n| d"| ¡¡t |ƒrNt  |d(¡}|j||jd+W5QRX|jr`|d,kr8d- |¡} n d. ||¡} t | ƒn| d"d' |¡¡n¢|jdk r|j d¡} tj | ¡\} } d/d/d0d0d1d1d1d1d2œ} | | kr¶d3| | nd4}|j}t  | |¡}|D]}| |¡qÒW5QRX|jrt d5 | ¡ƒdS)6Nrz3A simple command-line interface for tarfile module.)Ú descriptionz-vz --verboseÚ store_trueFzVerbose output)ÚactionÚdefaultÚhelpz--filterz zFilter for extraction)ÚmetavarÚchoicesrDT)Zrequiredz-lz--listú zShow listing of a tarfile)rErDz-ez --extractú+)rGz zExtract tarfile into target dir)ÚnargsrErDz-cz--create)zzzCreate tarfile from sourcesz-tz--testzTest if a tarfile is validr#z&--filter is only valid for extraction rxr8z{!r} is a tar archive.z{!r} is not a tar archive. r¬)rër$)r%rírúz{!r} file is extracted.z+{!r} file is extracted into {!r} directory.rr’r)r¬z.tgzz.xzz.txzz.bz2z.tbzz.tbz2z.tb2zw:ryz{!r} file created.)ÚargparseÚArgumentParserÚ add_argumentrøZadd_mutually_exclusive_groupÚ parse_argsrír ÚexitZtestrrrÊrkrir:rërSr|rr2r{ÚcurdirZ format_helpr ZcreateÚpopr%Úsplitextrò)rJr@ÚparserrtÚargsr_r”ZtfrOr<Ztar_namer~ZextZ compressionsZtar_modeZ tar_filesÚ file_namer8r8r9Úmainã s¢  ÿþ  ÿ þ þ ÿ            ÿ   õ rUÚ__main__)T)mrqÚversionÚ __author__Ú __credits__Úbuiltinsrr rir{rÕrZrÑr±rVrÚreÚwarningsrãržråÚAttributeErrorÚNotImplementedErrorr*r¦Ú NameErrorÚ__all__r3rÈrÄr1r,r.r-rBrrVr‹rŠrDrEr rŽZCONTTYPEr4r3rWr<r>rer rrrrhrˆrZr„rwr9rIr…rƒr Úgetfilesystemencodingr:r?rNrTrXr[rlÚ Exceptionrr rrr r rrrsrtrKrurvr‹Úobjectr—rÌÚBufferedReaderràrêrërîrôrõrörr r rrørÚcompilerrrrrrUrnr8r8r8r9Ús<      ý üÿÿ ú  sh  ?ý   _