/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__/tarfile.cpython-39.pyc (73778B)
a ä”|j¸¹ã @sdZdZdZdZddlmZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZz ddlZWneyŽdZYn0z ddlZWney²dZYn0eefZzeef7ZWneyÜYn0gd¢ZdZd Zd Zd Zed Zd ZdZ dZ!dZ"dZ#dZ$d Z%dZ&dZ'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2dZ3dZ4d Z5e5Z6e$e%e&e'e*e+e,e(e)e-e.e/f Z7e$e%e,e/fZ8e-e.e/fZ9d!Z:hd"£Z;eej?d$k�rÀd%Z@ne A¡Z@d&d'„ZBd(d)„ZCd*d+„ZDd,e6fd-d.„ZEd/d0„ZFdedfd1d2„ZGd3d4„ZHGd5d6„d6eIƒZJGd7d8„d8eJƒZKGd9d:„d:eJƒZLGd;d<„d„d>eJƒZNGd?d@„d@eJƒZOGdAdB„dBeOƒZPGdCdD„dDeOƒZQGdEdF„dFeOƒZRGdGdH„dHeOƒZSGdIdJ„dJeOƒZTGdKdL„dLƒZUGdMdN„dNƒZVGdOdP„dPeWƒZXGdQdR„dReWƒZYGdSdT„dTe jZƒZ[GdUdV„dVeJƒZ\GdWdX„dXe\ƒZ]GdYdZ„dZe\ƒZ^Gd[d\„d\e\ƒZ_Gd]d^„d^e\ƒZ`Gd_d`„d`e\ƒZaGdadb„dbe\ƒZbe\eeKfZcdvdcdd„Zddedf„Zedgdh„Zfdidj„ZgeeefegdkœZheWƒZie jdl¡ZkGdmdn„dneWƒZlGdodp„dpeWƒZmdqdr„ZnemjZdsdt„Zoepduk�r eoƒdS)wz,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_FORMATrTz/etc/python/tarfile.cfgó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Úgname>r&r,r+r%)ZatimeÚctimer(r)r*r'Úntúutf-8cCs8|durtdƒ‚| ||¡}|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ú/usr/lib64/python3.9/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¤|ddvrbd}tt|ƒdƒD]}|dK}|||d7}q |ddkr dt|ƒd| }n>z"t|ddƒ}t| ¡p|d dƒ}Wntyžtd ƒ‚Yn0|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ÚstructÚ unpack_from)ÚbufZunsigned_chksumZ signed_chksumr8r8r9Ú calc_chksumsès rYc Cs¦|pd}|dkrdS|dur.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) ÚsrcÚdstr5Ú exceptionÚbufsizeÚblocksÚ remainderÚbrXr8r8r9r\õs$       r\cCs8ttjddƒ}|dur(| |d¡ |¡}t|dd�dS)Nr6Úbackslashreplaceú )Úend)ÚgetattrÚsysÚstdoutr1r=Úprint)r4r6r8r8r9Ú _safe_printsrnc@seZdZdZdS)rzBase exception.N©Ú__name__Ú __module__Ú __qualname__Ú__doc__r8r8r8r9rsrc@seZdZdZdS)r z%General exception for extract errors.Nror8r8r8r9r sr c@seZdZdZdS)rz&Exception for unreadable tar archives.Nror8r8r8r9rsrc@seZdZdZdS)rz.Exception for unavailable compression methods.Nror8r8r8r9rsrc@seZdZdZdS)r z=Exception for unsupported operations on stream-like TarFiles.Nror8r8r8r9r !sr c@seZdZdZdS)r z!Base exception for header errors.Nror8r8r8r9r $sr c@seZdZdZdS)ÚEmptyHeaderErrorzException for empty headers.Nror8r8r8r9rt'srtc@seZdZdZdS)ÚTruncatedHeaderErrorz Exception for truncated headers.Nror8r8r8r9ru*sruc@seZdZdZdS)ÚEOFHeaderErrorz"Exception for end of file headers.Nror8r8r8r9rv-srvc@seZdZdZdS)rKzException for invalid headers.Nror8r8r8r9rK0srKc@seZdZdZdS)ÚSubsequentHeaderErrorz3Exception for missing and invalid extended headers.Nror8r8r8r9rw3srwc@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Úhasattrr|rÚfd)ÚselfÚnameÚmoder8r8r9Ú__init__@sþý  z_LowLevelFile.__init__cCst |j¡dS©N)r}Úcloserƒ©r„r8r8r9r‰Isz_LowLevelFile.closecCst |j|¡Srˆ)r}r^rƒ©r„r'r8r8r9r^Lsz_LowLevelFile.readcCst |j|¡dSrˆ)r}r_rƒ©r„r4r8r8r9r_Osz_LowLevelFile.writeN)rprqrrrsr‡r‰r^r_r8r8r8r9rx:s  rxc@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|_|durt||ƒ}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'Úpositionrjr…ržÚ map_indexÚmaprÍ)r„rœr×r'Z blockinfoZlastposZrealposr8r8r9r‡hs(    z_FileInFile.__init__cCsdSrˆr8rŠr8r8r9r¿�sz_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 |dur|j|j}nt||j|jƒ}d}|dk�r|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#rZ) r'rØrárÚrÙr2rœrÊr^rr3) r„r'rXÚdataÚstartÚstopr×r5rfr8r8r9r^¢s,     z_FileInFile.readcCs&| t|ƒ¡}||dt|ƒ…<t|ƒSrˆ)r^r2)r„rfrXr8r8r9ÚreadintoÁsz_FileInFile.readintocCs d|_dSrÛ)ržrŠr8r8r9r‰Æsz_FileInFile.close)N)N)rprqrrrsr‡r¿rÜrÝrÞrÉrßràrÊr^rér‰r8r8r8r9rÖbs  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__©rprqrrr‡Ú __classcell__r8r8rðr9rêÊsrêc@s eZdZdS)Ú FilterErrorN)rprqrrr8r8r8r9rô×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|›d�d¡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|›d�d¡dS)Nz would link to rùrúrûrýrðr8r9r‡ñs ÿz$LinkOutsideDestinationError.__init__ròr8r8rðr9rðsrcseZdZ‡fdd„Z‡ZS)ÚLinkFallbackErrorcs2||_||_tƒ d|j›d�d|›d�¡dS)Nzlink z would be extracted as a zcopy of z, which was rejectedrûrýrðr8r9r‡øs  ÿzLinkFallbackError.__init__ròr8r8rðr9r÷srcCs"i}|j}tjj|tjjd�}| dtjf¡rH|j dtj¡}|d<tj |¡r\t |ƒ‚tjjtj  ||¡tjjd�}tj  ||g¡|kr˜t ||ƒ‚|j }|du�r|d@}|rü| ¡sÄ| ¡rÞ|d@sÔ|dM}|dO}n| ¡sî| ¡rôd}nt|ƒ‚||j k�r||d<|�r|jdu�r*d|d <|jdu�r>d|d <|jdu�rRd|d <|jdu�rfd|d <| ¡�sz| ¡�rtj |j¡�r’t|ƒ‚tj |j¡}||jk�r´||d <| ¡�rÚtj  |tj |¡|j¡}ntj  ||j¡}tjj|tjjd�}tj  ||g¡|k�rt||ƒ‚|S)N)rEú/r…iíé@i¶ÿÿÿé€r†r)r*r+r,Úlinkname)r…r}r%ÚrealpathÚ ALLOW_MISSINGrÕÚsepÚlstripÚisabsrõrÎÚ commonpathrør†ÚisregÚislnkÚisdirÚissymrþr)r*r+r,rrÿÚnormpathÚdirnamer)ÚmemberÚ dest_pathZfor_dataÚ new_attrsr…Z target_pathr†Z normalizedr8r8r9Ú_get_filtered_attrssl ÿ           þÿÿ rcCs|Srˆr8)rrr8r8r9Úfully_trusted_filterGsrcCs,t||dƒ}|r(|jfi|¤ddi¤ŽS|S)NFÚdeep©rr´©rrrr8r8r9Ú tar_filterJs rcCs,t||dƒ}|r(|jfi|¤ddi¤ŽS|S)NTrFrrr8r8r9Ú data_filterPs r)Z fully_trustedr–ræs([0-9]{1,20}) c@sÚeZdZdZedddddddd d d d d ddddddddd�Zdidd„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_targetr�cCsj||_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¤rr�N)r…r†r)r*r'r(rÚREGTYPErrr+r,rrr×rërìr ©r„r…r8r8r9r‡‰s"zTarInfo.__init__cCs|jS)z(In pax headers, "name" is called "path".©r…rŠr8r8r9r%¡sz TarInfo.pathcCs ||_dSrˆr%r$r8r8r9r%¦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ñrpr…ÚidrŠr8r8r9Ú__repr__³szTarInfo.__repr__T) r…r(r†rr)r*r+r,rÚ_KEEPc CsŽ| rt |¡} n t |¡} || ur(|| _|| ur6|| _|| urD|| _|| urR|| _|| ur`|| _|| urn|| _|| ur||| _|| urŠ|| _ | S)zGReturn a deep copy of self with the given attributes replaced. ) ÚcopyÚdeepcopyr…r(r†rr)r*r+r,) r„r…r(r†rr)r*r+r,rr)Úresultr8r8r9r´¶s(  zTarInfo.replacecCs€|jdurd}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]\}}|durtd|ƒ‚q|tkrD| |||¡S|tkrZ| |||¡S|tkrn| ||¡Stdƒ‚dS)zr)r„r/r6r7rXr8r8r9r4 szTarInfo.create_gnu_headerc CsLt|d<|j ¡}ddtfddtfddfD]h\}}}||vr>q*z|| dd ¡Wn"tyt||||<Yq*Yn0t||ƒ|kr*||||<q*d D]„\}}d }||} t| t ƒ} | rÂt | ƒn| } d | krâd |dksònd ||<d}n| �r| ||<d}|r˜||vr˜t | ƒ||<q˜|�r4|  |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. r8r…r%rr&)r+r+é )r,r,rCrDrE))r)rB)r*rB)r'é )r(rDFrrBr#Tr�r´)r:r r*r<r;r1ÚUnicodeEncodeErrorr2Ú isinstanceÚfloatÚroundÚstrÚ_create_pax_generic_headerÚXHDTYPEr>r ) r„r/r6r r…Zhnamer5rRZ needs_paxÚvalZ val_is_floatZval_intrXr8r8r9r5s> þ      zTarInfo.create_pax_headercCs| |td¡S)zAReturn the object as a pax global header block sequence. r/)rJÚXGLTYPE)Úclsr r8r8r9Úcreate_pax_global_headerTsz 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. rr#Nzname is too long)ÚsplitrHr2rÎr1Ú LENGTH_PREFIXr<r0)r„r…r6r7Ú componentsrMr9r8r8r9r=Zs ÿzTarInfo._posix_split_namec Cs¦| d¡ttfv}|r@t| dd¡d|ƒ}t| dd¡d|ƒ}ntdd||ƒ}tdd||ƒ}| dt¡}|durxtdƒ‚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||ƒ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. rrrrBrr�NzTarInfo.type must not be Noner…rr†r-r)r*r'rDr(s rr8r+rCr,r9rz%dsr�i”þÿÿz%06orDi›þÿÿ)ÚgetÚCHRTYPEÚBLKTYPErTr:r#r0r:rVr¹rÒrÎrYrO) r/rSr6r7Zhas_device_fieldsrrZfiletypeÚpartsrXrr8r8r9r>js:  ñ&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)Úpayloadrdrer8r8r9Ú_create_payload”szTarInfo._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'r8)r1r3r2r?r>r rX)rNr…rr6r7r/r8r8r9r@žs ÿzTarInfo._create_gnu_long_headerc Cs0d}| ¡D]6\}}z| dd¡Wq ty@d}YqDYq 0q d}|rT|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 r1rÓrrDó ó=ó z././@PaxHeaderr…rr'r8r´) r2r1rEr2rIrOr:r>r rX) rNr rr6ÚbinaryÚkeywordr6ÚrecordsÚlrLr>r/r8r8r9rJ¯s<   ( ÿz"TarInfo._create_pax_generic_headerc Cstt|ƒdkrtdƒ‚t|ƒtkr(tdƒ‚| t¡tkr>tdƒ‚t|dd…ƒ}|t|ƒvrbt 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…||ƒ}|jtk�r†|j  d¡�r†t|_|jtk�r6d}g}tdƒD]j} z0t|||d…ƒ} t||d|d…ƒ} Wnt�yòY�qYn0| | | f¡|d7}�q¢t|dƒ} t|dd…ƒ} || | f|_ | !¡�rN|j  "d¡|_ |�rp|jt#v�rp|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ôri‚rÃrDéiâiãiï)$r2rtrÒruÚcountr3rvrNrYrKr?r…r†r)r*r'r(rrrr+r,rrÚAREGTYPEr¼r.ÚGNUTYPE_SPARSErHr0rÍÚboolr!rÚrstripÚ GNU_TYPES)rNrXr6r7rÚobjr9r�Ú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Òrsr6r7rÉr×Ú _proc_member)rNrîrXrnr8r8r9Ú fromtarfile!s zTarInfo.fromtarfilecCsT|jttfvr| |¡S|jtkr,| |¡S|jtttfvrF|  |¡S|  |¡SdS)zYChoose the right processing method depending on the type and call it. N) rrBrAÚ _proc_gnulongrjÚ _proc_sparserKrMÚSOLARIS_XHDTYPEÚ _proc_paxÚ _proc_builtin)r„rîr8r8r9rt6s    zTarInfo._proc_membercCsR|j ¡|_|j}| ¡s$|jtvr4|| |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_infor r6r7)r„rîr×r8r8r9rzCs zTarInfo._proc_builtincCs„|j | |j¡¡}z| |¡}Wnty<tdƒ‚Yn0|j|_|jt krdt ||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^r|r'rur rwr×rrBr?r6r7r…rAr)r„rîrXÚnextr8r8r9rvTs   zTarInfo._proc_gnulongc CsØ|j\}}}|`|r¨|j t¡}d}tdƒD]l}z0t|||d…ƒ}t||d|d…ƒ} WntyxYqšYn0|r�| r�| || f¡|d7}q,t|dƒ}q||_ |j  ¡|_ |j |  |j ¡|_||_ |S)z8Process a GNU sparse header plus extra headers. rérDrgiø)r!rœr^rÒrHrNr0rÍrkrìrÉrër|r'r×) r„rîrorqrrrXr�rMr×rpr8r8r9rwjs(       zTarInfo._proc_sparsecCsÈ|j | |j¡¡}|jtkr&|j}n |j ¡}d}d}g}t|ƒ|k�rh||dk�rht   ||¡}spt dƒ‚zt |  d¡ƒ}Wntyœt dƒ‚Yn0|dkr®t dƒ‚||t|ƒkrÆt dƒ‚| d¡|d} || d¡d| …} |  d¡\} } } | �r| dk�s|| dk�r$t dƒ‚| || | f¡| dk�r^|du�r^| d k�rZ|j}nd }||7}q<|du�rvd }|D]X\}} } | | d d |j¡}|tv�r¶| | ||j|j¡}n| | d d |j¡}|||<�qzz| |¡}Wnt�yþtd ƒ‚Yn0d |v�r| ||¡nFd |v�r0| ||¡n.| d¡dk�r^| d¡dk�r^| |||¡|jttfv�rÄ|  ||j|j¡|j!|_!d|v�rÄ|j"}| #¡�s®|jt$v�r¾|| |j¡7}||_!|S)zVProcess an extended or global header as described in POSIX.1-2008. rNrGr#érZrÔs hdrcharsetsBINARYr/r~úGNU.sparse.mapúGNU.sparse.sizezGNU.sparse.majorÚ1zGNU.sparse.minorrFr')%rœr^r|r'rrMr r*r2Ú_header_length_prefix_reÚmatchrKrIÚgroupr0rçriÚ partitionrÍr6Ú_decode_pax_fieldr7ÚPAX_NAME_FIELDSrur rwÚ_proc_gnusparse_01Ú_proc_gnusparse_00rSÚ_proc_gnusparse_10rKrxr}r×rër r{)r„rîrXr r�r6Ú raw_headersr†r5Zheader_value_end_offsetZkeyword_and_valueZ raw_keywordZequalsZ raw_valuer]r6rr×r8r8r9ry†s|        ÿ  ÿ ÿ     zTarInfo._proc_paxc Cs¢g}g}|D]€\}}}|dkrRz| t| ¡ƒ¡WqŒtyNtdƒ‚YqŒ0q |dkr z| t| ¡ƒ¡Wq tyŠtdƒ‚Yq 0q tt||ƒƒ|_dS)z?Process a GNU tar extended sparse header, version 0.0. sGNU.sparse.offsetrGsGNU.sparse.numbytesN)rÍrIr=r0rKÚlistÚziprì)r„rrŽZoffsetsrpÚ_r]r6r8r8r9rŒÿs  zTarInfo._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Ú r�z.TarInfo._proc_gnusparse_01..r‚ú,Nr$r#)rPr�r�rì)r„rr rìr8r8r9r‹szTarInfo._proc_gnusparse_01cCs¨d}g}|j t¡}| dd¡\}}t|ƒ}t|ƒ|dkrtd|vrT||j t¡7}| dd¡\}}| t|ƒ¡q,|j ¡|_t t |ddd…|ddd…ƒƒ|_ dS)z?Process a GNU tar extended sparse header, version 1.0. Nr[r#r$) rœr^rÒrPrIr2rÍrÉrër�r�rì)r„rr rîÚfieldsrìrXÚnumberr8r8r9r�s  zTarInfo._proc_gnusparse_10c CsÀ| ¡D]¨\}}|dkr&t|d|ƒq|dkr@t|dt|ƒƒq|dkrZt|dt|ƒƒq|tvr|tvr’zt||ƒ}Wnty�d}Yn0|dkr¤| d¡}t|||ƒq| ¡|_dS) zoReplace fields with supplemental information from a previous pax extended or global header. zGNU.sparse.namer%rƒr'zGNU.sparse.realsizerrN) r2ÚsetattrrIÚ PAX_FIELDSÚPAX_NUMBER_FIELDSr0rlr*r )r„r r6r7r]r6r8r8r9r})s"   zTarInfo._apply_pax_infocCs2z| |d¡WSty,| ||¡YS0dS)z1Decode a single field from a pax record. rEN)r=ÚUnicodeDecodeError)r„r6r6Zfallback_encodingZfallback_errorsr8r8r9r‰@s zTarInfo._decode_pax_fieldcCs2|dkrtdƒ‚t|tƒ\}}|r*|d7}|tS)z_Round up a byte count by BLOCKSIZE and return it, e.g. _block(834) => 1024. rzinvalid offsetr#)rKr]rÒ)r„rhrdrer8r8r9r|Hs zTarInfo._blockcCs |jtvS©z4Return True if the Tarinfo object is a regular file.)rÚ REGULAR_TYPESrŠr8r8r9r Tsz TarInfo.isregcCs| ¡Srœ)r rŠr8r8r9ÚisfileXszTarInfo.isfilecCs |jtkS)z!Return True if it is a directory.)rr.rŠr8r8r9r\sz 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 dsz TarInfo.islnkcCs |jtkS)z(Return True if it is a character device.)rrTrŠr8r8r9Úischrhsz TarInfo.ischrcCs |jtkS)z$Return True if it is a block device.)rrUrŠr8r8r9Úisblklsz TarInfo.isblkcCs |jtkS)zReturn True if it is a FIFO.)rÚFIFOTYPErŠr8r8r9ÚisfifopszTarInfo.isfifocCs |jduSrˆ)rìrŠr8r8r9ÚissparsetszTarInfo.issparsecCs|jtttfvS)zCReturn True if it is one of character device, block device or FIFO.)rrTrUr£rŠr8r8r9Úisdevwsz TarInfo.isdev)r�)4rprqrrrsÚdictÚ __slots__r‡Úpropertyr%Úsetterr&r(r)r´r0rr r7r3r4r5Ú classmethodrOr=Ú staticmethodr>rXr@rJrsrurtrzrvrwryrŒr‹r�r}r‰r|r ržrrr r¡r¢r¤r¥r¦r8r8r8r9rfsœè     ý  :  )   2 >  y rc @sþeZdZdZdZdZdZdZeZ e Z dZ e ZeZdZdkdd „Zedddefd d „ƒZedld d „ƒZedmdd„ƒZedndd„ƒZedodd„ƒZdddddœZdd„Zdd„Zdd„Zd d!„Zdpd"d#„Zdqdd%œd&d'„Z drdd(œd)d*„Z!dsd+d,„Z"d-d.„Z#dtddd0œd1d2„Z$d3d4„Z%duddd0œd6d7„Z&d8d9„Z'dvd:d;„Z(dd?„Z*d@dA„Z+dwdddBœdCdD„Z,dEdF„Z-dGdH„Z.dIdJ„Z/dKdL„Z0dMdN„Z1dOdP„Z2dQdR„Z3dSdT„Z4dUdV„Z5dWdX„Z6dYdZ„Z7dxd[d\„Z8d]d^„Z9dyd_d`„Z:dadb„Z;dcdd„Zdidj„Z?dS)zrz=The TarFile Class provides an interface to tar archives. rFr#Nrzr1c Csªdddddœ}||vrtdƒ‚||_|||_|sh|jdkrTtj |¡sTd|_d|_t||jƒ}d |_n@|d ur�t|d ƒr�t |j t t fƒr�|j }t|d ƒr¢|j|_d |_|r¸tj  |¡nd |_ ||_|d urÒ||_|d urà||_|d urî||_|d urü||_|d u�r ||_| |_| d u�r0|jtk�r0| |_ni|_| d u�rF| |_| d u�rV| |_| |_d |_g|_d |_|j ¡|_i|_zþ|jdk�ržd |_ | !¡|_ |jdk�r2|j "|j¡z|j #|¡}|j $|¡WnXt%�yü|j "|j¡Y�q2Yn2t&�y,}zt't |ƒƒ‚WYd }~n d }~00�qª|jdv�r|d |_|j�r||j (|j )¡¡}|j *|¡|jt+|ƒ7_Wn&|j�s˜|j ,¡d |_‚Yn0d S)aÖOpen an (uncompressed) tar archive `name'. `mode' is either 'r' to read from an existing archive, 'a' to append data to an existing file or 'w' to create a new file overwriting an existing one. `mode' defaults to 'r'. If `fileobj' is given, it is used for reading or writing data. If it can be determined, `mode' is overridden by `fileobj's mode. `fileobj' is not closed, when TarFile is closed. Úrbzr+bÚwbÚxb©rzÚar{r“ú!mode must be 'r', 'a', 'w' or 'x'r±r{FNr…r†Trz©r±r{r“)-r0r†Ú_moder}r%ÚexistsÚ bltn_openr˜r‚rFr…rIrOÚabspathrœrSrïÚ dereferenceÚ ignore_zerosr6r7rr ÚdebugÚ errorlevelÚ copybufsizeržÚmembersÚ_loadedrÉr×ÚinodesÚ firstmemberrrÊrurÍrvr rrOr*r_r2r‰)r„r…r†rœrSrïr¸r¹r6r7r rºr»r¼ZmodesÚerXr8r8r9r‡˜sŠ   ÿ          &   zTarFile.__init__c sÈ|s|stdƒ‚|dvr¬‡fdd„}tˆj|d�D]l}tˆˆj|ƒ}|durV| ¡} z||d|fi|¤ŽWSttfyœ|dur”| | ¡Yq2Yq20q2tdƒ‚�nd |v�r| d d ¡\} }| pÌd} |pÔd }|ˆjvròtˆˆj|ƒ}n td |ƒ‚||| |fi|¤ŽSd |v�rœ| d d ¡\} }| �p4d} |�p>d }| dv�rRtdƒ‚t || |||ƒ} zˆ|| | fi|¤Ž} Wn|   ¡‚Yn0d| _ | S|dv�r¼ˆj |||fi|¤ŽStdƒ‚dS)a¥Open a tar archive for reading, writing or appending. Return an appropriate TarFile class. mode: 'r' or 'r:*' open for reading with transparent compression 'r:' open for reading exclusively uncompressed 'r:gz' open for reading with gzip compression 'r:bz2' open for reading with bzip2 compression 'r:xz' open for reading with lzma compression 'a' or 'a:' open for appending, creating the file if necessary 'w' or 'w:' open for writing without compression 'w:gz' open for writing with gzip compression 'w:bz2' open for writing with bzip2 compression 'w:xz' open for writing with lzma compression 'x' or 'x:' create a tarfile exclusively without compression, raise an exception if the file is already created 'x:gz' create a gzip compressed tarfile, raise an exception if the file is already created 'x:bz2' create a bzip2 compressed tarfile, raise an exception if the file is already created 'x:xz' create an lzma compressed tarfile, raise an exception if the file is already created 'r|*' open a stream of tar blocks with transparent compression 'r|' open an uncompressed stream of tar blocks for reading 'r|gz' open a gzip compressed stream of tar blocks 'r|bz2' open a bzip2 compressed stream of tar blocks 'r|xz' open an lzma compressed stream of tar blocks 'w|' open an uncompressed stream for writing 'w|gz' open a gzip compressed stream for writing 'w|bz2' open a bzip2 compressed stream for writing 'w|xz' open an lzma compressed stream for writing znothing to open)rzúr:*csˆj|dkS)NÚtaropen)Ú OPEN_METH)r›©rNr8r9Únot_compressed1sz$TarFile.open..not_compressed)ÚkeyNrzz%file could not be opened successfullyú:r#r–r—ú|ryzmode must be 'r' or 'w'Fr³zundiscernible mode) r0ÚsortedrÄrjrÉrrrÊrPr�r‰r˜rÃ) rNr…r†rœrcÚkwargsrÆr›ÚfuncZ saved_posÚfilemodeÚstreamrÑr8rÅr9rsP%            z TarFile.opencKs$|dvrtdƒ‚||||fi|¤ŽS)zCOpen uncompressed tar archive name for reading or writing. r°r²)r0)rNr…r†rœrËr8r8r9rÃbszTarFile.taropenr°cKsæ|dvrtdƒ‚zddlm}Wnty:tdƒ‚Yn0z|||d||ƒ}Wn,ty~|durx|dkrxtd ƒ‚‚Yn0z|j|||fi|¤Ž}Wn@tyÆ| ¡|dkrÀtd ƒ‚‚Yn| ¡‚Yn0d |_ |S) zkOpen gzip compressed tar archive name for reading or writing. Appending is not allowed. ©rzr{r“úmode must be 'r', 'w' or 'x'r)ÚGzipFilezgzip module is not availablerfNrzrÀF) r0ÚgziprÑr rr©rrÃr‰r˜)rNr…r†rœÚ compresslevelrËrÑrÑr8r8r9Úgzopenjs0   zTarFile.gzopenc Ks¸|dvrtdƒ‚zddlm}Wnty:tdƒ‚Yn0||pD|||d�}z|j|||fi|¤Ž}WnDttfy˜| ¡|dkr’t dƒ‚‚Yn| ¡‚Yn0d |_ |S) zlOpen bzip2 compressed tar archive name for reading or writing. Appending is not allowed. rÏrÐr)ÚBZ2Filer“)rÓrzznot a bzip2 fileF) r0r’rÕr rrÃr©ÚEOFErrorr‰rr˜)rNr…r†rœrÓrËrÕrÑr8r8r9Úbz2open‹s& zTarFile.bz2openc Ks¼|dvrtdƒ‚zddlm}m}Wnty>tdƒ‚Yn0||pH|||d�}z|j|||fi|¤Ž}WnD|tfyœ| ¡|dkr–t dƒ‚‚Yn| ¡‚Yn0d |_ |S) zkOpen lzma compressed tar archive name for reading or writing. Appending is not allowed. rÏrÐr)ÚLZMAFiler­r•)Úpresetrzznot an lzma fileF) r0r«rØr­r rrÃrÖr‰rr˜) rNr…r†rœrÙrËrØr­rÑr8r8r9Úxzopen§s& zTarFile.xzopenrÃrÔr×rÚ)r–r‘r’r”cCs˜|jr dSd|_zp|jdvrn|j ttd¡|jtd7_t|jtƒ\}}|dkrn|j tt|¡W|j s”|j  ¡n|j s’|j  ¡0dS)zlClose the TarFile. In write-mode, two finishing zero blocks are appended to the archive. NTr³r$r) ržr†rœr_r3rÒr×r]Ú RECORDSIZEr˜r‰)r„rdrer8r8r9r‰Îs  ÿz TarFile.closecCs(| | d¡¡}|dur$td|ƒ‚|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. rNzfilename %r not found)Ú _getmemberrlÚ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%)r’rïr8r8r9r”ür�z$TarFile.getnames..)rárŠr8r8r9ÚgetnamesøszTarFile.getnamesc CsZ| d¡|dur|j}|dur$|}tj |¡\}}| tjd¡}| d¡}| ¡}||_ |dur€|j stt  |¡}qŽt  |¡}nt  | ¡¡}d}|j}t  |¡rþ|j|jf} |j sæ|jdkræ| |jvræ||j| kræt} |j| }nt} | drü||j| <nht  |¡�rt} nVt  |¡�r"t} nDt  |¡�r>t} t |¡}n(t  |¡�rPt} nt   |¡�rbt!} ndS||_||_"|j#|_$|j%|_&| tk�r–|j'|_(nd|_(|j)|_*| |_+||_,t-�râzt- .|j$¡d|_/Wnt0�yàYn0t1�rzt1 2|j&¡d|_3Wnt0�yYn0| tt!fv�rVt4tdƒ�rVt4tdƒ�rVt 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. ÚawxNrr�r#rÚmajorÚminor):rßr…r}r%Ú splitdriver´rr 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_ISCHRrTÚS_ISBLKrUr†Úst_uidr)Úst_gidr*Úst_sizer'Úst_mtimer(rrÚpwdÚgetpwuidr+rÝÚgrpÚgetgrgidr,r‚räÚst_rdevrrår) r„r…ÚarcnamerœÚdrvrïZstatresrZstmdÚinoderr8r8r9Ú gettarinfoþs„      ÿ ÿ          zTarFile.gettarinfoT)r½cCs*| ¡|dur|}|D�] }|rÎ|jdur6tdƒntt |j¡ƒtd|jpT|j|jp^|jfƒ|  ¡sv|  ¡r�tdd|j |j fƒntd|j ƒ|jdur²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Ârr�z-> zlink to )rßr†rnrèrÍr+r)r,r*r¡r¢rrr'r(rºÚ localtimer…rrrr rm)r„Úverboser½rïr8r8r9r�as8    ÿÿ  ÿ  z TarFile.list©ÚfiltercCsL| d¡|dur|}|jdurFtj |¡|jkrF| dd|¡dS| d|¡| ||¡}|durz| dd|¡dS|dur¦||ƒ}|dur¦| dd|¡dS| ¡ræt|dƒ�}|  ||¡Wdƒn1sÚ0Ynb|  ¡�r>|  |¡|�rHt t  |¡ƒD],}|j tj ||¡tj ||¡||d ��qn |  |¡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·Ú_dbgrr r¶ÚaddfilerrÊÚlistdirÚaddrÎ)r„r…rÿÚ recursiverrïÚfr8r8r9r ‡s6    ,  ÿ z TarFile.addcCs¾| d¡t |¡}| |j|j|j¡}|j |¡|jt |ƒ7_|j }|dur®t ||j|j |d�t |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)rcrr#)rßr*r7rSr6r7rœr_r×r2r¼r\r'r]rÒr3r½rÍ)r„rïrœrXrcrdrer8r8r9r ºs   zTarFile.addfilecCsT|du�r|j}|durøtj d¡}|dur z ttƒ}WntyJYnV0ddl}|jddd�}|�|  |¡Wdƒn1s†0Y|jdddd�}|ràz t |}Wn$t yÔt d|›d �ƒd‚Yn0||_|St rôt d t¡tStSt|tƒ�r td ƒ‚|St|ƒ�r|Sz t |WSt �yNt d|›d �ƒd‚Yn0dS) NZ PYTHON_TARFILE_EXTRACTION_FILTERr)ú#)Z interpolationZcomment_prefixesrîr�)Úfallbackzfilter z not foundaThe default behavior of tarfile extraction has been changed to disallow common exploits (including CVE-2007-4559). By default, absolute/parent paths are disallowed and some mode bits are cleared. See https://access.redhat.com/articles/7004769 for more details.zrString names are not supported for TarFile.extraction_filter. Use a function such as tarfile.data_filter directly.)Úextraction_filterr}ÚenvironrSr¶Ú_CONFIG_FILENAMEÚFileNotFoundErrorÚ configparserÚ ConfigParserZ read_fileÚ_NAMED_FILTERSrÝr0Ú_RH_SAFER_DEFAULTÚwarningsÚwarnÚRuntimeWarningrrrFrIÚ TypeErrorÚcallable)r„rr…ÚfilerZconfr8r8r9Ú_get_filter_functionÓsZ    þ(þ  ø  ÿ  zTarFile._get_filter_functionÚ.)Ú numeric_ownerrc Csºg}| |¡}|dur|}|D]L}| |||¡\}} |dur>q| ¡rP| | ¡|j||| ¡ ||d�q|jdd„dd�|D�]0} zúz|| |ƒ}WnBtyÚ} z*| | t| ƒ¡WYd} ~ Wq‚WYd} ~ n d} ~ 00|durô| | d¡Wq‚t j   ||j ¡} zt   | ¡} Wn&t�y8| |d¡YWq‚Yn0t | j¡�sX| |d ¡Wq‚|j|| |d �| || ¡| || ¡Wq‚t�y²} z| | ¡WYd} ~ q‚d} ~ 00q‚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 Úfilter_functioncSs|jSrˆr%)r±r8r8r9Ú+ r�z$TarFile.extractall..T)rÇÚreversezexcluded by filterÚmissingznot a directory)r )rÚ_get_extract_tarinforrÍÚ _extract_oneÚsortÚ_FILTER_ERRORSÚ_log_no_directory_fixupÚreprr}r%rÎr…rçrrèrðrëÚchownÚutimeÚchmodr Ú_handle_nonfatal_error)r„r%r½r rZ directoriesr"rrïÚ unfilteredÚexcÚdirpathrçrÁr8r8r9Ú extractall sV ÿ þ $ÿ    zTarFile.extractallcCs| dd|j|f¡dS)Nr$z(tarfile: Not fixing up directory %r (%s))rr…)r„rÚreasonr8r8r9r*M sÿzTarFile._log_no_directory_fixupr�c Cs8| |¡}| |||¡\}}|dur4| ||||¡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)rr&r') r„rr%r!r rr"rïr0r8r8r9ÚextractQ s  ÿzTarFile.extractc CsÖt|tƒr| |¡}n|}d}z|||ƒ}Wn^ttfy^}z| |¡WYd}~n6d}~0tyŠ}z| |¡WYd}~n d}~00|durª| dd|j ¡dS|  ¡rÎt   |¡}t j  ||j¡|_||fS)zŠGet (filtered, unfiltered) TarInfos from *member* *member* might be a string. Return (None, None) if not found. Nr$r)NN)rFrIrÞr©rôÚ_handle_fatal_errorr r/rr…r r*r}r%rÎrr")r„rr"r%r0ÚfilteredrÁr8r8r9r&e s"    zTarFile._get_extract_tarinfoc Cs�| d¡z&|j|tj ||j¡||||d�WnZty^}z| |¡WYd}~n6d}~0tyŠ}z|  |¡WYd}~n d}~00dS)z±Extract from filtered tarinfo to disk. filter_function is only used when extracting a *different* member (e.g. as fallback to creating a symlink) rz)r!r r"Úextraction_rootN) rßÚ_extract_memberr}r%rÎr…r©r6r 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|jdur6| 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»rFr©ÚfilenamerÚstrerrorrrpr;r8r8r9r6ž s   zTarFile._handle_fatal_errorcCs‚| d¡t|tƒr | |¡}n|}| ¡s6|jtvrB| ||¡S| ¡sR|  ¡rzt|j t ƒrht dƒ‚q~|  | |¡¡SndSdS)a\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. For all other existing members, None is returned. If `member' does not appear in the archive, KeyError is raised. rzz'cannot extract (sym)link as file objectN)rßrFrIrÞr rr{Ú fileobjectr rrœr�r Ú extractfileÚ_find_link_target)r„rrïr8r8r9r?ª s      zTarFile.extractfile©r"r8cCsZ| d¡}| dtj¡}tj |¡}|r>tj |¡s>t |¡| ¡sN|  ¡rh|  dd|j |j f¡n|  d|j ¡|  ¡rŒ| ||¡n”| ¡r¢| ||¡n~| ¡r¸| ||¡nh| ¡sÈ| ¡rÖ| ||¡nJ| ¡sæ|  ¡rú|j||||d�n&|jtv�r| ||¡n | ||¡|�rV| |||¡|  ¡�sV| ||¡| ||¡dS)zçExtract the filtered TarInfo object tarinfo to a physical file called targetpath. filter_function is only used when extracting a *different* member (e.g. as fallback to creating a symlink) rr#z%s -> %srAN)rlr´r}rr%rrµÚmakedirsr rrr…rr ÚmakefilerÚmakedirr¤Úmakefifor¡r¢ÚmakedevÚmakelink_with_filterrr{Ú makeunknownr,r.r-)r„rïÚ targetpathr!r r"r8Z upperdirsr8r8r9r9Ê s<   ý    zTarFile._extract_membercCs>z&|jdurt |¡n t |d¡Wnty8Yn0dS)z,Make a directory called targetpath. NiÀ)r†r}ÚmkdirÚFileExistsError©r„rïrIr8r8r9rD s    zTarFile.makedircCs¢|j}| |j¡|j}t|dƒ�l}|jdurn|jD]"\}}| |¡t|||t|ƒq4| |j¡|  ¡nt|||jt|ƒWdƒn1s”0YdS)z'Make a file called targetpath. r®N) rœrÊrër¼r¶rìr\rr'Útruncate)r„rïrIÚsourcercÚtargetr×r'r8r8r9rC 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)rCrrrLr8r8r9rH s ÿzTarFile.makeunknowncCs"ttdƒrt |¡ntdƒ‚dS)z'Make a fifo called targetpath. Úmkfifozfifo not supported by systemN)r‚r}rPr rLr8r8r9rE( s  zTarFile.makefifocCsjttdƒrttdƒstdƒ‚|j}|dur.d}| ¡rB|tjO}n |tjO}t ||t  |j |j ¡¡dS)zd}zX| ¡r8tj |¡r$t |¡t |j|¡WdStj |j¡rZt  |j|¡WdSWnt yrd}Yn0z|  |¡}Wn"t y¤|ržt dƒ‚n‚Yn0|dur´|}nj|durÄt dƒ‚z$||j|jdd�|ƒ|||ƒ}Wn4t�y}zt||jƒ|‚WYd}~n d}~00|du�r:|j||||d�dS)a3Make a (symbolic) link called targetpath. If it cannot be created (platform limitation), we try to make a copy of the referenced file instead of a link. filter_function is only used when extracting a *different* member (e.g. as fallback to creating a link). FNTz%unable to resolve link inside archivez[makelink_with_filter: if filter_function is not None, extraction_root must also not be None)r…rrA)rr}r%ÚlexistsÚunlinkÚsymlinkrrµr"ÚlinkÚsymlink_exceptionr@rÝr r´r…r)rr9) r„rïrIr"r8Zkeyerror_to_extracterrorr0r7Úcauser8r8r9rGE sN       ÿÿþ$ þzTarFile.makelink_with_filtercCsöttdƒròt ¡dkrò|j}|j}|sŠztrB|jrBt |j¡d}WntyVYn0zt rt|j rtt   |j ¡d}WntyˆYn0|dur–d}|dur¢d}z4|  ¡rÆttdƒrÆt  |||¡nt |||¡Wntyðtdƒ‚Yn0dS)zðSet owner of targetpath according to tarinfo. If numeric_owner is True, use .gid/.uid instead of .gname/.uname. If numeric_owner is False, fall back to .gid/.uid when the search based on name fails. Úgeteuidrr$Nr;Úlchownzcould not change owner)r‚r}r[r*r)rür,ÚgetgrnamrÝrúr+Úgetpwnamrr\r,r©r )r„rïrIr ÚgÚur8r8r9r,z s0     z TarFile.chowncCs@|jdurdSzt ||j¡Wnty:tdƒ‚Yn0dS)zASet file permissions of targetpath according to tarinfo. Nzcould not change mode)r†r}r.r©r rLr8r8r9r.› s   z TarFile.chmodcCsT|j}|durdSttdƒs dSzt |||f¡WntyNtdƒ‚Yn0dS)zBSet modification time of targetpath according to tarinfo. Nr-z"could not change modification time)r(r‚r}r-r©r )r„rïrIr(r8r8r9r-¥ s  z TarFile.utimec Csl| d¡|jdur$|j}d|_|S|j|j ¡krZ|j |jd¡|j d¡sZtdƒ‚d}z|j  |¡}W�qJt yÌ}zD|j r¶|  dd|j|f¡|jt 7_WYd}~q^WYd}~�qJd}~0t�yD}z`|j �r|  dd|j|f¡|jt 7_WYd}~q^n|jdk�r.tt|ƒƒ‚WYd}~�qJd}~0t�yj|jdk�rftdƒ‚YnÚt�y¦}z$|jdk�r’tt|ƒƒ‚WYd}~n¦d}~0t�yÖ}ztt|ƒƒ‚WYd}~nvd}~0t�yB}zTz.ddl}t||jƒ�rtd |›�ƒ‚n|‚Wnt�y,|‚Yn0WYd}~n d}~00�qJq^|du�rb|j |¡nd |_|S) z¨Return the next member of the archive as a TarInfo object, when TarFile is opened for reading. Return None if there is no more available. ZraNr#rZr$z0x%X: %srz empty filez zlib error: T)rßrÀr×rœrÉrÊr^rrïrurvr¹rrÒrKrIrtrurwÚ ExceptionrŸrFr¤r r½rÍr¾)r„ÚmrïrÁrŸr8r8r9r³ sZ   " "       z TarFile.nextc Cs´| ¡}d}|durFz| |¡}Wnty8d}Yn0|d|…}|rVtj |¡}t|ƒD]D}|rx|j|jkr^d}q^|rŒtj |j¡}n|j}||kr^|Sq^|r°t|ƒ‚dS)z}Find an archive member by name from bottom to top. If tarinfo is given, it is used as the starting point. FNT) ráÚindexr0r}r%rÚreversedr×r…) r„r…rïÚ normalizer½ZskippingrcrÚ member_namer8r8r9rÜò s,       zTarFile._getmembercCs| ¡}|durqqd|_dS)zWRead through the entire archive file and look for readable members. NT)rr¾r÷r8r8r9rà sz TarFile._loadcCs:|jrtd|jjƒ‚|dur6|j|vr6td|jƒ‚dS)znCheck if TarFile is still open, and if the operation's mode corresponds to TarFile's mode. z %s is closedNzbad operation for mode %r)ržr©rñrpr†)r„r†r8r8r9rß$ szTarFile._checkcCs`| ¡r.d tdtj |j¡|jfƒ¡}d}n |j}|}|j||dd�}|dur\t d|ƒ‚|S)zZFind the target member of a symlink or hardlink member in the archive. rNT)rïrezlinkname %r not found) rrÎrr}r%rr…rrÜrÝ)r„rïrÚlimitrr8r8r9r@- s  zTarFile._find_link_targetccsŠ|jr|jEdHdSd}|jdur:| ¡}|d7}|V|t|jƒkrT|j|}n"|jsr| ¡}|svd|_dSndS|d7}|Vq:dS)z$Provide an iterator object. Nrr#T)r¾r½rÀrr2)r„rcrïr8r8r9Ú__iter__@ s$   zTarFile.__iter__cCs||jkrt|tjd�dS)z.Write debugging output to sys.stderr. ©rN)rºrmrkÚstderr)r„ÚlevelÚmsgr8r8r9r_ s z TarFile._dbgcCs | ¡|Srˆ)rßrŠr8r8r9Ú __enter__e szTarFile.__enter__cCs,|dur| ¡n|js"|j ¡d|_dSrÛ)r‰r˜rœrž)r„rr6Ú tracebackr8r8r9Ú__exit__i s   zTarFile.__exit__) NrzNNNNNNr1NNNN)rzN)rzNr°)rzNr°)rzNN)NNN)T)NT)N)rN)r�T)N)TF)NF)N)@rprqrrrsrºr¸r¹r»rrSr r6r7rrïrêr>rr‡r«rÛrrÃrÔr×rÚrÄr‰rÞrárârr�r r rr3r*r5r&r'r/r6r?r9rDrCrHrErFrTrGr,r.r-rrÜràrßr@rhrrmror8r8r8r9r|sœý oZ    ü    c&3 5ÿ Eÿ ÿ   ÿþ 85! ? ( rcCsFz,t|dƒrt|d�}nt|ƒ}| ¡WdSty@YdS0dS)z¤Return True if name points to a tar archive that we are able to handle, else return False. 'name' should be a string, file, or file-like object. r^)rœTFN)r‚rr‰r)r…rÑr8r8r9rw s   rc Cs`ddl}d}|j|d�}|jdddddd �|jd d td d �|jdd�}|jddddd�|jdddddd�|jdddddd�|jdd dd!d�| ¡}|jrº|jdurº| d"d#¡|j du�rJ|j }t |ƒ�r4t |d$ƒ�*}|  ¡t |  ¡tjd%�Wdƒn1�s0Y|j�rFt d& |¡ƒn| d"d' |¡¡�n|jdu�rº|j}t |ƒ�r¤t  |d(¡�}|j|jd)�Wdƒn1�s˜0Yn| d"d' |¡¡�n¢|jdu�r¤t|jƒd"k�rè|jd}tj}n,t|jƒd*k�r|j\}}n| d"| ¡¡t |ƒ�r�t  |d(¡� }|j||jd+�Wdƒn1�sR0Y|j�r¢|d,k�rzd- |¡} n d. ||¡} t | ƒn| d"d' |¡¡n¸|jdu�r\|j d¡} tj | ¡\} } d/d/d0d0d1d1d1d1d2œ} | | v�rød3| | nd4}|j}t  | |¡�&}|D]}| |¡�qWdƒn1�s<0Y|j�r\t d5 | ¡ƒdS)6Nrz3A simple command-line interface for tarfile module.)Ú descriptionz-vz --verboseÚ store_trueFzVerbose output)ÚactionÚdefaultÚhelpz--filterz zFilter for extraction)ÚmetavarÚchoicesrtT)Úrequiredz-lz--listú zShow listing of a tarfile)rurtz-ez --extractú+)rxz zExtract tarfile into target dir)Únargsrurtz-cz--create)zzzCreate tarfile from sourcesz-tz--testzTest if a tarfile is validr#z&--filter is only valid for extraction rzriz{!r} is a tar archive.z{!r} is not a tar archive. rÂ)rr$)r%rrz{!r} file is extracted.z+{!r} file is extracted into {!r} directory.r‘r”r’)r²z.tgzz.xzz.txzz.bz2z.tbzz.tbz2z.tb2zw:r{z{!r} file created.)ÚargparseÚArgumentParserÚ add_argumentrÚadd_mutually_exclusive_groupÚ parse_argsrr5ÚexitÚtestrrrármrkrjrrSr�rr2r}ÚcurdirÚ format_helpr3ZcreateÚpopr%Úsplitextr )r{rpÚparserr‡Úargsr`r–Ztfr‚rlZtar_namer‘ÚextZ compressionsZtar_modeZ tar_filesÚ file_namer8r8r9ÚmainŠ s   ÿþ  ÿ þ þ ÿ    2  0    0  ÿ   õ .rŠÚ__main__)T)qrsÚversionÚ __author__Ú __credits__Úbuiltinsrr¶rkr}rßr[rèrºrVr*Úrerrúr rüÚAttributeErrorÚNotImplementedErrorrYr©Ú NameErrorÚ__all__rrr3rÒrÛr?r:r<r;rQr#rir rŸrTrUr.r£ZCONTTYPErBrArjrKrMrxr rrrr{r�rmr™rŠrGrIršr…r Úgetfilesystemencodingr:r?rNrTrYr\rnrarr rrr r rtrurvrKrwrxr�Úobjectr™rÖÚBufferedReaderrêrôrõrørþrÿrrr)rrrrrr)Úcompiler…rrrrŠrpr8r8r8r9Ús$        üÿÿú  sh   Dý  _