/usr/lib64/python2.6
NameSizeModeActions
bsddb/-0755rm
compiler/-0755rm
config/-0755rm
ctypes/-0755rm
curses/-0755rm
Demo/-0755rm
distutils/-0755rm
Doc/-0755rm
email/-0755rm
encodings/-0755rm
hotshot/-0755rm
idlelib/-0755rm
json/-0755rm
lib-dynload/-0755rm
lib-tk/-0755rm
lib2to3/-0755rm
logging/-0755rm
multiprocessing/-0755rm
plat-linux2/-0755rm
site-packages/-0755rm
sqlite3/-0755rm
test/-0755rm
Tools/-0755rm
wsgiref/-0755rm
xml/-0755rm
abc.py70340644editdlrm
abc.pyc60710644editdlrm
abc.pyo60130644editdlrm
aifc.py331880644editdlrm
aifc.pyc295640644editdlrm
aifc.pyo295640644editdlrm
anydbm.py26200644editdlrm
anydbm.pyc27750644editdlrm
anydbm.pyo27750644editdlrm
ast.py113470644editdlrm
ast.pyc127800644editdlrm
ast.pyo127800644editdlrm
asynchat.py114020644editdlrm
asynchat.pyc87370644editdlrm
asynchat.pyo87370644editdlrm
asyncore.py200610644editdlrm
asyncore.pyc184520644editdlrm
asyncore.pyo184520644editdlrm
atexit.py17050644editdlrm
atexit.pyc22150644editdlrm
atexit.pyo22150644editdlrm
audiodev.py75970644editdlrm
audiodev.pyc85370644editdlrm
audiodev.pyo85370644editdlrm
base64.py113350755editdlrm
base64.pyc110030644editdlrm
base64.pyo110030644editdlrm
BaseHTTPServer.py219740644editdlrm
BaseHTTPServer.pyc215750644editdlrm
BaseHTTPServer.pyo215750644editdlrm
Bastion.py57440644editdlrm
Bastion.pyc66670644editdlrm
Bastion.pyo66670644editdlrm
bdb.py205970644editdlrm
bdb.pyc185670644editdlrm
bdb.pyo185670644editdlrm
binhex.py148780644editdlrm
binhex.pyc158750644editdlrm
binhex.pyo158750644editdlrm
bisect.py26620644editdlrm
bisect.pyc31730644editdlrm
bisect.pyo31730644editdlrm
calendar.py231100644editdlrm
calendar.pyc281650644editdlrm
calendar.pyo281650644editdlrm
cgi.py344780755editdlrm
cgi.pyc328180644editdlrm
cgi.pyo328180644editdlrm
CGIHTTPServer.py127730644editdlrm
CGIHTTPServer.pyc108200644editdlrm
CGIHTTPServer.pyo108200644editdlrm
cgitb.py121550644editdlrm
cgitb.pyc124610644editdlrm
cgitb.pyo124610644editdlrm
chunk.py53720644editdlrm
chunk.pyc56450644editdlrm
chunk.pyo56450644editdlrm
cmd.py149620644editdlrm
cmd.pyc139540644editdlrm
cmd.pyo139540644editdlrm
code.py102170644editdlrm
code.pyc104270644editdlrm
code.pyo104270644editdlrm
codecs.py352660644editdlrm
codecs.pyc367210644editdlrm
codecs.pyo367210644editdlrm
codeop.py59990644editdlrm
codeop.pyc66360644editdlrm
codeop.pyo66360644editdlrm
collections.py137300644editdlrm
collections.pyc144620644editdlrm
collections.pyo144090644editdlrm
colorsys.py34590644editdlrm
colorsys.pyc40410644editdlrm
colorsys.pyo40410644editdlrm
commands.py25430644editdlrm
commands.pyc24890644editdlrm
commands.pyo24890644editdlrm
compileall.py52850644editdlrm
compileall.pyc49970644editdlrm
compileall.pyo49970644editdlrm
ConfigParser.py259890644editdlrm
ConfigParser.pyc238650644editdlrm
ConfigParser.pyo238650644editdlrm
contextlib.py41360644editdlrm
contextlib.pyc41510644editdlrm
contextlib.pyo41510644editdlrm
Cookie.py250540644editdlrm
Cookie.pyc221450644editdlrm
Cookie.pyo221450644editdlrm
cookielib.py647260644editdlrm
cookielib.pyc553700644editdlrm
cookielib.pyo551790644editdlrm
copy.py111770644editdlrm
copy.pyc116750644editdlrm
copy.pyo115790644editdlrm
copy_reg.py68000644editdlrm
copy_reg.pyc51780644editdlrm
copy_reg.pyo51320644editdlrm
cProfile.py63370755editdlrm
cProfile.pyc62390644editdlrm
cProfile.pyo62390644editdlrm
crypt.py22290644editdlrm
crypt.pyc30550644editdlrm
crypt.pyo30550644editdlrm
csv.py157300644editdlrm
csv.pyc132260644editdlrm
csv.pyo132260644editdlrm
dbhash.py5350644editdlrm
dbhash.pyc7600644editdlrm
dbhash.pyo7600644editdlrm
decimal.py1992730644editdlrm
decimal.pyc1556810644editdlrm
decimal.pyo1556150644editdlrm
difflib.py810800644editdlrm
difflib.pyc611930644editdlrm
difflib.pyo611390644editdlrm
dircache.py11260644editdlrm
dircache.pyc15840644editdlrm
dircache.pyo15840644editdlrm
dis.py64490644editdlrm
dis.pyc63660644editdlrm
dis.pyo63660644editdlrm
doctest.py1015160644editdlrm
doctest.pyc809940644editdlrm
doctest.pyo807060644editdlrm
DocXMLRPCServer.py105990644editdlrm
DocXMLRPCServer.pyc99570644editdlrm
DocXMLRPCServer.pyo98490644editdlrm
dumbdbm.py88200644editdlrm
dumbdbm.pyc65850644editdlrm
dumbdbm.pyo65850644editdlrm
dummy_thread.py44180644editdlrm
dummy_thread.pyc54130644editdlrm
dummy_thread.pyo54130644editdlrm
dummy_threading.py28040644editdlrm
dummy_threading.pyc12970644editdlrm
dummy_threading.pyo12970644editdlrm
filecmp.py94700644editdlrm
filecmp.pyc96320644editdlrm
filecmp.pyo96320644editdlrm
fileinput.py141430644editdlrm
fileinput.pyc149280644editdlrm
fileinput.pyo149280644editdlrm
fnmatch.py32390644editdlrm
fnmatch.pyc35790644editdlrm
fnmatch.pyo35790644editdlrm
formatter.py149110644editdlrm
formatter.pyc193030644editdlrm
formatter.pyo193030644editdlrm
fpformat.py46990644editdlrm
fpformat.pyc47350644editdlrm
fpformat.pyo47350644editdlrm
fractions.py200730644editdlrm
fractions.pyc181190644editdlrm
fractions.pyo181190644editdlrm
ftplib.py291970644editdlrm
ftplib.pyc285030644editdlrm
ftplib.pyo285030644editdlrm
functools.py21620644editdlrm
functools.pyc19270644editdlrm
functools.pyo19270644editdlrm
genericpath.py30200644editdlrm
genericpath.pyc32920644editdlrm
genericpath.pyo32920644editdlrm
getopt.py73280644editdlrm
getopt.pyc67300644editdlrm
getopt.pyo66830644editdlrm
getpass.py55340644editdlrm
getpass.pyc47540644editdlrm
getpass.pyo47540644editdlrm
gettext.py199680644editdlrm
gettext.pyc157600644editdlrm
gettext.pyo157600644editdlrm
glob.py22490644editdlrm
glob.pyc24090644editdlrm
glob.pyo24090644editdlrm
gzip.py167540644editdlrm
gzip.pyc143860644editdlrm
gzip.pyo143860644editdlrm
hashlib.py44270644editdlrm
hashlib.pyc39810644editdlrm
hashlib.pyo39810644editdlrm
heapq.py159950644editdlrm
heapq.pyc126940644editdlrm
heapq.pyo126940644editdlrm
hmac.py45310644editdlrm
hmac.pyc45090644editdlrm
hmac.pyo45090644editdlrm
htmlentitydefs.py180540644editdlrm
htmlentitydefs.pyc63710644editdlrm
htmlentitydefs.pyo63710644editdlrm
htmllib.py128690644editdlrm
htmllib.pyc203840644editdlrm
htmllib.pyo203840644editdlrm
HTMLParser.py135760644editdlrm
HTMLParser.pyc122580644editdlrm
HTMLParser.pyo119500644editdlrm
httplib.py487970644editdlrm
httplib.pyc377320644editdlrm
httplib.pyo375360644editdlrm
ihooks.py174520644editdlrm
ihooks.pyc208370644editdlrm
ihooks.pyo207580644editdlrm
imaplib.py477710644editdlrm
imaplib.pyc452250644editdlrm
imaplib.pyo424750644editdlrm
imghdr.py35440644editdlrm
imghdr.pyc49050644editdlrm
imghdr.pyo49050644editdlrm
imputil.py260090644editdlrm
imputil.pyc160370644editdlrm
imputil.pyo158650644editdlrm
inspect.py381890644editdlrm
inspect.pyc371650644editdlrm
inspect.pyo371650644editdlrm
io.py661650644editdlrm
io.pyc630420644editdlrm
io.pyo630420644editdlrm
keyword.py19970755editdlrm
keyword.pyc21170644editdlrm
keyword.pyo21170644editdlrm
linecache.py41280644editdlrm
linecache.pyc32680644editdlrm
linecache.pyo32680644editdlrm
locale.py826740644editdlrm
locale.pyc466760644editdlrm
locale.pyo466760644editdlrm
macpath.py62530644editdlrm
macpath.pyc77070644editdlrm
macpath.pyo77070644editdlrm
macurl2path.py32750644editdlrm
macurl2path.pyc28250644editdlrm
macurl2path.pyo28250644editdlrm
mailbox.py758240644editdlrm
mailbox.pyc760690644editdlrm
mailbox.pyo760200644editdlrm
mailcap.py84020644editdlrm
mailcap.pyc80790644editdlrm
mailcap.pyo80790644editdlrm
markupbase.py143500644editdlrm
markupbase.pyc94640644editdlrm
markupbase.pyo92700644editdlrm
md5.py4100644editdlrm
md5.pyc3780644editdlrm
md5.pyo3780644editdlrm
mhlib.py334340644editdlrm
mhlib.pyc341370644editdlrm
mhlib.pyo341370644editdlrm
mimetools.py71680644editdlrm
mimetools.pyc83200644editdlrm
mimetools.pyo83200644editdlrm
mimetypes.py188220644editdlrm
mimetypes.pyc168720644editdlrm
mimetypes.pyo168720644editdlrm
MimeWriter.py64820644editdlrm
MimeWriter.pyc73830644editdlrm
MimeWriter.pyo73830644editdlrm
mimify.py150240755editdlrm
mimify.pyc122190644editdlrm
mimify.pyo122190644editdlrm
modulefinder.py242830644editdlrm
modulefinder.pyc190070644editdlrm
modulefinder.pyo189190644editdlrm
multifile.py48200644editdlrm
multifile.pyc54790644editdlrm
multifile.pyo54350644editdlrm
mutex.py18660644editdlrm
mutex.pyc25260644editdlrm
mutex.pyo25260644editdlrm
netrc.py41110644editdlrm
netrc.pyc36020644editdlrm
netrc.pyo36020644editdlrm
new.py7060644editdlrm
new.pyc9100644editdlrm
new.pyo9100644editdlrm
nntplib.py214700644editdlrm
nntplib.pyc211790644editdlrm
nntplib.pyo211790644editdlrm
ntpath.py177520644editdlrm
ntpath.pyc116200644editdlrm
ntpath.pyo115730644editdlrm
nturl2path.py22390644editdlrm
nturl2path.pyc17770644editdlrm
nturl2path.pyo17770644editdlrm
numbers.py102710644editdlrm
numbers.pyc139640644editdlrm
numbers.pyo139640644editdlrm
opcode.py52480644editdlrm
opcode.pyc59170644editdlrm
opcode.pyo59170644editdlrm
optparse.py608490644editdlrm
optparse.pyc542390644editdlrm
optparse.pyo541570644editdlrm
ordereddict.py360644editdlrm
ordereddict.pyc1850644editdlrm
ordereddict.pyo1850644editdlrm
os.py258020644editdlrm
os.pyc258080644editdlrm
os.pyo258080644editdlrm
os2emxpath.py46030644editdlrm
os2emxpath.pyc45360644editdlrm
os2emxpath.pyo45360644editdlrm
pdb.doc78990644editdlrm
pdb.py453330755editdlrm
pdb.pyc438130644editdlrm
pdb.pyo438130644editdlrm
pickle.py448110644editdlrm
pickle.pyc386450644editdlrm
pickle.pyo384400644editdlrm
pickletools.py743480644editdlrm
pickletools.pyc571430644editdlrm
pickletools.pyo562460644editdlrm
pipes.py96470644editdlrm
pipes.pyc94600644editdlrm
pipes.pyo94600644editdlrm
pkgutil.py200010644editdlrm
pkgutil.pyc190200644editdlrm
pkgutil.pyo190200644editdlrm
platform.py526300755editdlrm
platform.pyc387970644editdlrm
platform.pyo387970644editdlrm
plistlib.py158060644editdlrm
plistlib.pyc200500644editdlrm
plistlib.pyo199600644editdlrm
popen2.py84160644editdlrm
popen2.pyc90640644editdlrm
popen2.pyo90200644editdlrm
poplib.py128250644editdlrm
poplib.pyc134180644editdlrm
poplib.pyo134180644editdlrm
posixfile.py80030644editdlrm
posixfile.pyc77240644editdlrm
posixfile.pyo77240644editdlrm
posixpath.py131190644editdlrm
posixpath.pyc111880644editdlrm
posixpath.pyo111880644editdlrm
pprint.py119320644editdlrm
pprint.pyc103940644editdlrm
pprint.pyo102190644editdlrm
profile.py235100755editdlrm
profile.pyc166800644editdlrm
profile.pyo164350644editdlrm
pstats.py273100644editdlrm
pstats.pyc253400644editdlrm
pstats.pyo253400644editdlrm
pty.py48690644editdlrm
pty.pyc49190644editdlrm
pty.pyo49190644editdlrm
pyclbr.py132820644editdlrm
pyclbr.pyc97320644editdlrm
pyclbr.pyo97320644editdlrm
pydoc.py924320755editdlrm
pydoc.pyc910520644editdlrm
pydoc.pyo909840644editdlrm
pydoc_topics.py4231260644editdlrm
pydoc_topics.pyc4075880644editdlrm
pydoc_topics.pyo4075880644editdlrm
py_compile.py56330644editdlrm
py_compile.pyc65540644editdlrm
py_compile.pyo65540644editdlrm
Queue.py85740644editdlrm
Queue.pyc94470644editdlrm
Queue.pyo94470644editdlrm
quopri.py69720755editdlrm
quopri.pyc66880644editdlrm
quopri.pyo66880644editdlrm
random.py319660644editdlrm
random.pyc251060644editdlrm
random.pyo251060644editdlrm
re.py129660644editdlrm
re.pyc131640644editdlrm
re.pyo131640644editdlrm
repr.py42960644editdlrm
repr.pyc54340644editdlrm
repr.pyo54340644editdlrm
rexec.py201520644editdlrm
rexec.pyc242200644editdlrm
rexec.pyo242200644editdlrm
rfc822.py332950644editdlrm
rfc822.pyc321100644editdlrm
rfc822.pyo321100644editdlrm
rlcompleter.py58660644editdlrm
rlcompleter.pyc60730644editdlrm
rlcompleter.pyo60730644editdlrm
robotparser.py70140644editdlrm
robotparser.pyc78520644editdlrm
robotparser.pyo78520644editdlrm
runpy.py54130644editdlrm
runpy.pyc39790644editdlrm
runpy.pyo39790644editdlrm
sched.py50910644editdlrm
sched.pyc50050644editdlrm
sched.pyo50050644editdlrm
sets.py190500644editdlrm
sets.pyc169970644editdlrm
sets.pyo169970644editdlrm
sgmllib.py178840644editdlrm
sgmllib.pyc155980644editdlrm
sgmllib.pyo155980644editdlrm
sha.py4450644editdlrm
sha.pyc4210644editdlrm
sha.pyo4210644editdlrm
shelve.py80780644editdlrm
shelve.pyc102960644editdlrm
shelve.pyo102960644editdlrm
shlex.py111370644editdlrm
shlex.pyc77100644editdlrm
shlex.pyo77100644editdlrm
shutil.py86320644editdlrm
shutil.pyc95550644editdlrm
shutil.pyo95550644editdlrm
SimpleHTTPServer.py74220644editdlrm
SimpleHTTPServer.pyc77660644editdlrm
SimpleHTTPServer.pyo77660644editdlrm
SimpleXMLRPCServer.py219920644editdlrm
SimpleXMLRPCServer.pyc196330644editdlrm
SimpleXMLRPCServer.pyo196330644editdlrm
site.py191870644editdlrm
site.pyc188250644editdlrm
site.pyo188250644editdlrm
smtpd.py189200755editdlrm
smtpd.pyc161880644editdlrm
smtpd.pyo161880644editdlrm
smtplib.py309240755editdlrm
smtplib.pyc297370644editdlrm
smtplib.pyo297370644editdlrm
sndhdr.py59730644editdlrm
sndhdr.pyc74200644editdlrm
sndhdr.pyo74200644editdlrm
socket.py201490644editdlrm
socket.pyc161290644editdlrm
socket.pyo160440644editdlrm
SocketServer.py223260644editdlrm
SocketServer.pyc231430644editdlrm
SocketServer.pyo231430644editdlrm
sre.py3840644editdlrm
sre.pyc5190644editdlrm
sre.pyo5190644editdlrm
sre_compile.py165070644editdlrm
sre_compile.pyc114830644editdlrm
sre_compile.pyo113700644editdlrm
sre_constants.py71370644editdlrm
sre_constants.pyc60930644editdlrm
sre_constants.pyo60930644editdlrm
sre_parse.py268780644editdlrm
sre_parse.pyc196960644editdlrm
sre_parse.pyo196960644editdlrm
ssl.py166770644editdlrm
ssl.pyc142760644editdlrm
ssl.pyo142760644editdlrm
stat.py17180644editdlrm
stat.pyc27030644editdlrm
stat.pyo27030644editdlrm
statvfs.py8980644editdlrm
statvfs.pyc6200644editdlrm
statvfs.pyo6200644editdlrm
string.py207450644editdlrm
string.pyc200660644editdlrm
string.pyo200660644editdlrm
StringIO.py106210644editdlrm
StringIO.pyc115320644editdlrm
StringIO.pyo115320644editdlrm
stringold.py124490644editdlrm
stringold.pyc125930644editdlrm
stringold.pyo125930644editdlrm
stringprep.py135220644editdlrm
stringprep.pyc145260644editdlrm
stringprep.pyo144520644editdlrm
struct.py820644editdlrm
struct.pyc2390644editdlrm
struct.pyo2390644editdlrm
subprocess.py579450644editdlrm
subprocess.pyc410710644editdlrm
subprocess.pyo410140644editdlrm
sunau.py165370644editdlrm
sunau.pyc180720644editdlrm
sunau.pyo180720644editdlrm
sunaudio.py13990644editdlrm
sunaudio.pyc19970644editdlrm
sunaudio.pyo19970644editdlrm
symbol.py20500755editdlrm
symbol.pyc30250644editdlrm
symbol.pyo30250644editdlrm
symtable.py79110644editdlrm
symtable.pyc126090644editdlrm
symtable.pyo124790644editdlrm
tabnanny.py113390755editdlrm
tabnanny.pyc83330644editdlrm
tabnanny.pyo83330644editdlrm
tarfile.py877860644editdlrm
tarfile.pyc739220644editdlrm
tarfile.pyo739220644editdlrm
telnetlib.py218080644editdlrm
telnetlib.pyc199130644editdlrm
telnetlib.pyo199130644editdlrm
tempfile.py177740644editdlrm
tempfile.pyc195710644editdlrm
tempfile.pyo195710644editdlrm
textwrap.py168890644editdlrm
textwrap.pyc117920644editdlrm
textwrap.pyo117000644editdlrm
this.py10020644editdlrm
this.pyc12410644editdlrm
this.pyo12410644editdlrm
threading.py318080644editdlrm
threading.pyc281520644editdlrm
threading.pyo260800644editdlrm
timeit.py120030644editdlrm
timeit.pyc118270644editdlrm
timeit.pyo118270644editdlrm
toaiff.py31420644editdlrm
toaiff.pyc31340644editdlrm
toaiff.pyo31340644editdlrm
token.py29470755editdlrm
token.pyc38400644editdlrm
token.pyo38400644editdlrm
tokenize.py163260644editdlrm
tokenize.pyc140180644editdlrm
tokenize.pyo139250644editdlrm
trace.py303250644editdlrm
trace.pyc230510644editdlrm
trace.pyo229890644editdlrm
traceback.py112110644editdlrm
traceback.pyc116770644editdlrm
traceback.pyo116770644editdlrm
tty.py8790644editdlrm
tty.pyc13170644editdlrm
tty.pyo13170644editdlrm
types.py23230644editdlrm
types.pyc26200644editdlrm
types.pyo26200644editdlrm
unittest.py311570644editdlrm
unittest.pyc348620644editdlrm
unittest.pyo348620644editdlrm
urllib.py590220644editdlrm
urllib.pyc513480644editdlrm
urllib.pyo512540644editdlrm
urllib2.py508660644editdlrm
urllib2.pyc458130644editdlrm
urllib2.pyo457190644editdlrm
urlparse.py156180644editdlrm
urlparse.pyc147770644editdlrm
urlparse.pyo147770644editdlrm
user.py16270644editdlrm
user.pyc17360644editdlrm
user.pyo17360644editdlrm
UserDict.py57780644editdlrm
UserDict.pyc88920644editdlrm
UserDict.pyo88920644editdlrm
UserList.py36440644editdlrm
UserList.pyc66030644editdlrm
UserList.pyo66030644editdlrm
UserString.py96910755editdlrm
UserString.pyc149220644editdlrm
UserString.pyo149220644editdlrm
uu.py59420755editdlrm
uu.pyc42370644editdlrm
uu.pyo42370644editdlrm
uuid.py209440644editdlrm
uuid.pyc212790644editdlrm
uuid.pyo212790644editdlrm
warnings.py141720644editdlrm
warnings.pyc130420644editdlrm
warnings.pyo122050644editdlrm
wave.py179520644editdlrm
wave.pyc194360644editdlrm
wave.pyo194360644editdlrm
weakref.py100870644editdlrm
weakref.pyc133750644editdlrm
weakref.pyo133750644editdlrm
webbrowser.py210730644editdlrm
webbrowser.pyc187550644editdlrm
webbrowser.pyo187080644editdlrm
whichdb.py33530644editdlrm
whichdb.pyc22470644editdlrm
whichdb.pyo22470644editdlrm
xdrlib.py55130644editdlrm
xdrlib.pyc91570644editdlrm
xdrlib.pyo91570644editdlrm
xmllib.py348650644editdlrm
xmllib.pyc272740644editdlrm
xmllib.pyo272740644editdlrm
xmlrpclib.py477750644editdlrm
xmlrpclib.pyc414960644editdlrm
xmlrpclib.pyo413130644editdlrm
zipfile.py530920644editdlrm
zipfile.pyc376520644editdlrm
zipfile.pyo376520644editdlrm
_abcoll.py142420644editdlrm
_abcoll.pyc215910644editdlrm
_abcoll.pyo215910644editdlrm
_LWPCookieJar.py65530644editdlrm
_LWPCookieJar.pyc56010644editdlrm
_LWPCookieJar.pyo56010644editdlrm
_MozillaCookieJar.py58090644editdlrm
_MozillaCookieJar.pyc45170644editdlrm
_MozillaCookieJar.pyo44760644editdlrm
_strptime.py197540644editdlrm
_strptime.pyc149660644editdlrm
_strptime.pyo149660644editdlrm
_threading_local.py71140644editdlrm
_threading_local.pyc63850644editdlrm
_threading_local.pyo63850644editdlrm
__future__.py43800644editdlrm
__future__.pyc42330644editdlrm
__future__.pyo42330644editdlrm
__phello__.foo.py640644editdlrm
__phello__.foo.pyc1250644editdlrm
__phello__.foo.pyo1250644editdlrm
Edit: /usr/lib64/python2.6/tarfile.pyo (73922B)
gc@s.dZdZdZdZdZdZdZddkZddkZddk Z ddk Z ddk Z ddk Z ddk Z ddkZddkZddkZeid jo ed nyddkZddkZWnej oeZZnXd d d dgZdZdZedZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(dZ)d Z*d!Z+d"Z,d#Z-d$Z.d%Z/d&Z0e/Z1ee e!e"e%e&e'e#e$e(e)e*f Z2ee e'e*fZ3e(e)e*fZ4d'd(d)d*d+d,d-d.fZ5he6d/6e6d06e6d*6e7d+6e7d,6e7d)6Z8d1Z9d2Z:d3Z;d4Z<d5Z=d6Z>d7Z?d8Z@dZAd9ZBd:ZCd;ZDd<ZEd=ZFd>ZGd?ZHd&ZId%ZJeiKZLeLejoeiMZLnd@ZNdAZOdBZPd>e1dCZQdDZRdEZSedFZTe9dGfe:dHfe;dIfe<dJfe=dKfe>dLffeBdMffeCdNffeDe?BdOfe?d feDd!ffeEdMffeFdNffeGe@BdOfe@d feGd!ffeHdMffeIdNffeJeABdPfeAdQfeJd!fff ZUdRZVeiWdSjo dTZXn eiYiXZXdeZfdUYZ[dVe[fdWYZ\dXe[fdYYZ]dZe[fd[YZ^d\e[fd]YZ_d^e[fd_YZ`d`fdaYZadbfdcYZbddecfdeYZddfecfdgYZedhecfdiYZfdjecfdkYZgd ecfdlYZheiidmeijZkd ecfdnYZldofdpYZmdqfdrYZndsenfdtYZoduenfdvYZpdweqfdxYZrd$Zsd>ZtdyfdzYZud{ZvewZxeliwZwdS(|s,Read from and write to tar format archives. s$Revision: 81664 $s0.9.0s!Lars Gustbel (lars@gustaebel.de)s5$Date: 2010-06-03 06:07:08 -0400 (Thu, 03 Jun 2010) $s;$Id: tarfile.py 81664 2010-06-03 10:07:08Z lars.gustaebel $s3Gustavo Niemeyer, Niels Gustbel, Richard Townsend.iNtmacs'tarfile does not work for platform==mactTarFiletTarInfot is_tarfiletTarErrortiisustar tustar00idit0t1t2t3t4t5t6t7tLtKtStxtgtXiiitpathtlinkpathtsizetmtimetuidtgidtunametgnametatimetctimeiii`i@i iiiiii@i iiicCs|| |t|tS(s@Convert a python string to a null-terminated string buffer. (tlentNUL(tstlength((s/usr/lib64/python2.6/tarfile.pytstnscCs)|id}|djo|S|| S(s?Convert a null-terminated string field to a python string. Ri(tfind(R!tp((s/usr/lib64/python2.6/tarfile.pytntss cCs|dtdjoFy tt|pdd}Wqtj otdqXnJd}x@tt|dD](}|dK}|t||d7}qzW|S(s/Convert a number field to a python number. iiRisinvalid headerli(tchrtintR&t ValueErrort HeaderErrortxrangeRtord(R!tnti((s/usr/lib64/python2.6/tarfile.pytntis  cCsd|jod|djnod|d|ft}n|tjp|d|djotdn|djo&tidtid|d}nd }x6t|dD]$}t|d @|}|dL}qWtd |}|S( s/Convert a python number to a number field. iiis%0*oisoverflow in number fieldRtltii(R t GNU_FORMATR)tstructtunpacktpackR+R'(R-tdigitstformatR!R.((s/usr/lib64/python2.6/tarfile.pytitns &" &cCs|djoy|i|dSWqtj oqg}xW|D]O}y|i|i|dWq?tj o|i|idq?Xq?Wdi|SXn|i||SdS(s*Convert a unicode object to a string. sutf-8tstricttutf8R1N(tencodetUnicodeEncodeErrortappendtjoin(R!tencodingterrorsRtc((s/usr/lib64/python2.6/tarfile.pytutss c Csxdttid|d tid|dd!}dttid|d tid|dd!}||fS( sCalculate 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. it148Bit356Biit148bt356b(tsumR3R4(tbuftunsigned_chksumt signed_chksum((s/usr/lib64/python2.6/tarfile.pyt calc_chksumss 77cCs|djodS|djoti||dSd}t||\}}xSt|D]E}|i|}t||jotdn|i|q\W|djoC|i|}t||jotdn|i|ndS(sjCopy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. iNiisend of file reachedi@( tNonetshutilt copyfileobjtdivmodR+treadRtIOErrortwrite(tsrctdstR"tBUFSIZEtblockst remaindertbRH((s/usr/lib64/python2.6/tarfile.pyRN s&    R0t-RXtdRAR%trtwR!tttTcCskg}xUtD]M}xD|D]/\}}||@|jo|i|PqqW|idq Wdi|S(scConvert a file's mode to a string of the form -rwxrwxrwx. Used by TarFile.list() RYR1(tfilemode_tableR=R>(tmodetpermttabletbittchar((s/usr/lib64/python2.6/tarfile.pytfilemode=s   t/cCstii|itidS(Rf(tosRtnormpathtreplacetsep(R((s/usr/lib64/python2.6/tarfile.pytMscBseZdZRS(sBase exception.(t__name__t __module__t__doc__(((s/usr/lib64/python2.6/tarfile.pyRQst ExtractErrorcBseZdZRS(s%General exception for extract errors.(RlRmRn(((s/usr/lib64/python2.6/tarfile.pyRoTst ReadErrorcBseZdZRS(s%Exception for unreadble tar archives.(RlRmRn(((s/usr/lib64/python2.6/tarfile.pyRpWstCompressionErrorcBseZdZRS(s.Exception for unavailable compression methods.(RlRmRn(((s/usr/lib64/python2.6/tarfile.pyRqZst StreamErrorcBseZdZRS(s=Exception for unsupported operations on stream-like TarFiles.(RlRmRn(((s/usr/lib64/python2.6/tarfile.pyRr]sR*cBseZdZRS(sException for invalid headers.(RlRmRn(((s/usr/lib64/python2.6/tarfile.pyR*`st _LowLevelFilecBs2eZdZdZdZdZdZRS(sLow-level file object. Supports reading and writing. It is used instead of a regular file object for streaming access. cCsihtid6titiBtiBd6|}ttdo|tiO}nti||d|_dS(NR[R\tO_BINARYi( RgtO_RDONLYtO_WRONLYtO_CREATtO_TRUNCthasattrRttopentfd(tselftnameR`((s/usr/lib64/python2.6/tarfile.pyt__init__ms cCsti|idS(N(RgtcloseR{(R|((s/usr/lib64/python2.6/tarfile.pyRvscCsti|i|S(N(RgRPR{(R|R((s/usr/lib64/python2.6/tarfile.pyRPyscCsti|i|dS(N(RgRRR{(R|R!((s/usr/lib64/python2.6/tarfile.pyRR|s(RlRmRnR~RRPRR(((s/usr/lib64/python2.6/tarfile.pyRsgs   t_StreamcBseZdZdZdZdZdZdZdZdZ dZ d d Z dd Z d Zd ZRS(sClass 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 Cst|_|djot||}t|_n|djot|}|i}n|pd|_||_||_ ||_ ||_ d|_ d|_ t|_|djozyddk}Wntj otdnX||_|idd@|_|d jo|iq1|in|d jonyddk}Wntj otd nX|d jod|_|i|_q|i|_ndS( s$Construct a _Stream object. t*R1ltgziNszlib module is not availablelR[tbz2sbz2 module is not available(tTruet _extfileobjRLRstFalset _StreamProxyt getcomptypeR}R`tcomptypetfileobjtbufsizeRHtpostclosedtzlibt ImportErrorRqtcrc32tcrct _init_read_gzt_init_write_gzRtdbuftBZ2Decompressortcmpt BZ2Compressor(R|R}R`RRRRR((s/usr/lib64/python2.6/tarfile.pyR~sD                  cCs-t|do|i o|indS(NR(RyRR(R|((s/usr/lib64/python2.6/tarfile.pyt__del__scCs|iid|ii|ii |iid|_tidtt i }|i d||i i do|i d |_ n|i |i t dS(s6Initialize for writing with gzip compression. i isRR(R|RR]RH((s/usr/lib64/python2.6/tarfile.pyRP)s cCs|idjo|i|St|i}|ig}x||jow|i|i}|pPny|ii|}Wntj otdnX|i ||t|7}q<Wdi |}|||_|| S(s+Return size bytes from the stream. Rsinvalid compressed dataR1( RRRRRRt decompressRQRpR=R>(R|RRAR]RH((s/usr/lib64/python2.6/tarfile.pyR;s$    cCst|i}|ig}xP||joB|ii|i}|pPn|i||t|7}qWdi|}|||_|| S(ssReturn size bytes from stream. If internal buffer is empty, read another block from the stream. R1(RRHRRPRR=R>(R|RRAR]RH((s/usr/lib64/python2.6/tarfile.pyt__readQs    N(RlRmRnR~RRRRRRRRRRLRPRR(((s/usr/lib64/python2.6/tarfile.pyRs  .      RcBs2eZdZdZdZdZdZRS(ssSmall proxy class that enables transparent compression detection for the Stream interface (mode 'r|*'). cCs"||_|iit|_dS(N(RRPt BLOCKSIZERH(R|R((s/usr/lib64/python2.6/tarfile.pyR~gs cCs|ii|_|iS(N(RRPRH(R|R((s/usr/lib64/python2.6/tarfile.pyRPkscCs4|iidodS|iidodSdS(NsRtBZh91RR(RHt startswith(R|((s/usr/lib64/python2.6/tarfile.pyRos cCs|iidS(N(RR(R|((s/usr/lib64/python2.6/tarfile.pyRvs(RlRmRnR~RPRR(((s/usr/lib64/python2.6/tarfile.pyRbs    t _BZ2ProxycBsSeZdZd ZdZdZdZdZdZdZ d Z RS( sSmall proxy class that enables external file object support for "r:bz2" and "w:bz2" modes. This is actually a workaround for a limitation in bz2 module's BZ2File class which (unlike gzip.GzipFile) has no support for a file object argument. iicCs8||_||_t|idd|_|idS(NR}(RR`tgetattrRLR}tinit(R|RR`((s/usr/lib64/python2.6/tarfile.pyR~s  cCsdddk}d|_|idjo,|i|_|iidd|_n|i|_dS(NiiR[R1( RRR`Rtbz2objRRRHR(R|R((s/usr/lib64/python2.6/tarfile.pyRs   cCs|ig}t|i}x}||joo|ii|i}|pPny|ii|}Wntj oPnX|i||t|7}qWdi ||_|i| }|i||_|i t|7_ |S(NR1( RHRRRPt blocksizeRRtEOFErrorR=R>R(R|RRXRtrawtdataRH((s/usr/lib64/python2.6/tarfile.pyRPs$    cCs6||ijo|in|i||idS(N(RRRP(R|R((s/usr/lib64/python2.6/tarfile.pyRscCs|iS(N(R(R|((s/usr/lib64/python2.6/tarfile.pyRscCs;|it|7_|ii|}|ii|dS(N(RRRRRRR(R|RR((s/usr/lib64/python2.6/tarfile.pyRRscCs7|idjo#|ii}|ii|ndS(NR\(R`RRRRR(R|R((s/usr/lib64/python2.6/tarfile.pyRsi@( RlRmRnRR~RRPRRRRR(((s/usr/lib64/python2.6/tarfile.pyRzs     t _FileInFilecBsSeZdZddZdZdZddZdZdZ dZ RS( sA thin wrapper around an existing file object that provides a part of its data as an individual file object. cCs1||_||_||_||_d|_dS(Ni(RtoffsetRtsparsetposition(R|RRRR((s/usr/lib64/python2.6/tarfile.pyR~s     cCs|iS(s*Return the current file position. (R(R|((s/usr/lib64/python2.6/tarfile.pyRscCs ||_dS(s(Seek to a position in the file. N(R(R|R((s/usr/lib64/python2.6/tarfile.pyRscCsi|djo|i|i}nt||i|i}|idjo|i|S|i|SdS(s!Read data from the file. N(RLRRtminRt readnormalt readsparse(R|R((s/usr/lib64/python2.6/tarfile.pyRPs  cCs9|ii|i|i|i|7_|ii|S(s*Read operation for regular files. (RRRRRP(R|R((s/usr/lib64/python2.6/tarfile.pyRscCs`g}xJ|djo<|i|}|pPn|t|8}|i|q Wdi|S(s)Read operation for sparse files. iR1(treadsparsesectionRR=R>(R|RRRH((s/usr/lib64/python2.6/tarfile.pyRs cCs|ii|i}|djodSt||i|i|i}t|toN|i |i|i}|i i |i||i|7_|i i |S|i|7_t |SdS(s0Read a single section of a sparse file. R1N(RR$RRLRRRt isinstancet_datatrealposRRRPR (R|RtsectionR((s/usr/lib64/python2.6/tarfile.pyRs  N( RlRmRnRLR~RRRPRRR(((s/usr/lib64/python2.6/tarfile.pyRs     t ExFileObjectcBsheZdZdZdZd dZddZdZdZ e i dZ d Z d ZRS( saFile-like object for reading an archive member. Is returned by TarFile.extractfile(). icCsmt|i|i|it|dd|_|i|_d|_t|_ |i|_d|_ d|_ dS(NRR[iR1( RRt offset_dataRRRLR}R`RRRtbuffer(R|ttarfilettarinfo((s/usr/lib64/python2.6/tarfile.pyR~s      cCs|iotdnd}|ioD|djo|i}d|_qn|i| }|i||_n|djo||ii7}n!||ii|t|7}|it|7_|S(s~Read at most size bytes from the file. If size is not present or None, read all data until EOF is reached. sI/O operation on closed fileR1N(RR)RRLRRPRR(R|RRH((s/usr/lib64/python2.6/tarfile.pyRPs        icCs9|iotdnd|ijo|iidd}n|ig}xto|ii|i}|i|| p d|joMdi ||_|iidd}|djot |i}nPqSqSW|djot ||}n|i| }|i||_|i t |7_ |S(sRead one entire line from the file. If size is present and non-negative, return a string with at most that size, which may be an incomplete line. sI/O operation on closed files iR1ii( RR)RR$RRRPRR=R>RRR(R|RRtbuffersRH((s/usr/lib64/python2.6/tarfile.pytreadline5s*       cCs>g}x1to)|i}|pPn|i|q W|S(s0Return a list with all remaining lines. (RRR=(R|tresulttline((s/usr/lib64/python2.6/tarfile.pyt readlinesTs cCs!|iotdn|iS(s*Return the current file position. sI/O operation on closed file(RR)R(R|((s/usr/lib64/python2.6/tarfile.pyR^s cCs |iotdn|tijo"tt|d|i|_n|tijoJ|djot|i|d|_qt|i||i|_nF|ti jo)tt|i||id|_n tdd|_ |i i |idS(s(Seek to a position in the file. sI/O operation on closed fileisInvalid argumentR1N( RR)RgtSEEK_SETRtmaxRRtSEEK_CURtSEEK_ENDRRR(R|Rtwhence((s/usr/lib64/python2.6/tarfile.pyRfs "  )  cCs t|_dS(sClose the file object. N(RR(R|((s/usr/lib64/python2.6/tarfile.pyR{sccs0x)to!|i}|pPn|VqWdS(s/Get an iterator over the file's lines. N(RR(R|R((s/usr/lib64/python2.6/tarfile.pyt__iter__s  N(RlRmRnRR~RLRPRRRRgRRRR(((s/usr/lib64/python2.6/tarfile.pyR s    cBseZdZddZdZdZeeeZdZdZ eee Z dZ dZ e ed d Zd Zd Zd ZedZdZedZedZedZeedZedZedZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'd Z(d!Z)d"Z*d#Z+d$Z,d%Z-d&Z.RS('sInformational 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. R1cCs||_d|_d|_d|_d|_d|_d|_t|_d|_ d|_ d|_ d|_ d|_ d|_d|_h|_dS(sXConstruct a TarInfo object. name is the optional name of the member. iiR1trootN(R}R`RRRRtchksumtREGTYPEttypetlinknameRRtdevmajortdevminorRRt pax_headers(R|R}((s/usr/lib64/python2.6/tarfile.pyR~s                cCs|iS(N(R}(R|((s/usr/lib64/python2.6/tarfile.pyt_getpathscCs ||_dS(N(R}(R|R}((s/usr/lib64/python2.6/tarfile.pyt_setpathscCs|iS(N(R(R|((s/usr/lib64/python2.6/tarfile.pyt _getlinkpathscCs ||_dS(N(R(R|R((s/usr/lib64/python2.6/tarfile.pyt _setlinkpathscCs d|ii|it|fS(Ns<%s %r at %#x>(t __class__RlR}tid(R|((s/usr/lib64/python2.6/tarfile.pyt__repr__scCs-h t|id6|id@d6|id6|id6|id6|id6|id6|id 6|i ot|i nd d 6|i d 6|i d 6|i d6|i d6}|d tjo)|did o|dcd7n||i||}y|id Wn tj o|||nXt|||jo|||q>WxddddfD]\}} ||jod||RK(RR7tpartsRHR((s/usr/lib64/python2.6/tarfile.pyRJs&cCsBtt|t\}}|djo|t|t7}n|S(sdReturn the string payload filled with zero bytes up to the next 512 byte border. i(RORRR (tpayloadRVRW((s/usr/lib64/python2.6/tarfile.pyt_create_payloadfs cCs[|t7}h}d|d<||dRRRR ( RRRtrecordstkeywordtvalueR0R-R%R((s/usr/lib64/python2.6/tarfile.pyRs,       cCs8t|tjotdn|ittjotdnt|dd!}|t|jotdn|}||_t|dd!|_ t|dd!|_ t|dd !|_ t|d d !|_ t|d d !|_ t|d d!|_||_|dd !|_t|d d !|_t|dd!|_t|dd!|_t|dd!|_t|dd!|_t|dd!}|itjo |i ido t|_n|io|i id|_ n|o(|itjo|d|i |_ n|S(sBConstruct a TarInfo object from a 512 byte string buffer. struncated headers empty headeriis bad checksumiidiliti|iiii i)iIiQiYiRf(RRR*tcountR R/RKRHR&R}R`RRRRRRRRRRRtAREGTYPERRtisdirtrstript GNU_TYPES(RRHRtobjR((s/usr/lib64/python2.6/tarfile.pytfrombufs<   #  cCsP|iit}|pdS|i|}|iit|_|i|S(sOReturn the next TarInfo object from TarFile object tarfile. N(RRPRRRRt _proc_member(RRRHR((s/usr/lib64/python2.6/tarfile.pyt fromtarfiles cCsz|ittfjo|i|S|itjo|i|S|itttfjo|i |S|i |SdS(sYChoose the right processing method depending on the type and call it. N( RRRt _proc_gnulongtGNUTYPE_SPARSEt _proc_sparsetXHDTYPERtSOLARIS_XHDTYPEt _proc_paxt _proc_builtin(R|R((s/usr/lib64/python2.6/tarfile.pyRscCs{|ii|_|i}|ip|itjo||i|i7}n||_|i |i |i |i |S(sfProcess a builtin type or an unknown type which will be treated as a regular file. ( RRRtisregRtSUPPORTED_TYPESt_blockRRt_apply_pax_infoRR?R@(R|RR((s/usr/lib64/python2.6/tarfile.pyRs  cCs|ii|i|i}|i|}|djotdn|i|_|it jot ||_ n$|it jot ||_ n|S(sSProcess the blocks that hold a GNU longname or longlink member. smissing subsequent headerN(RRPR!RRRLR*RRRR&R}RR(R|RRHtnext((s/usr/lib64/python2.6/tarfile.pyRs  c Cs|i}t}d}d}d}xtdD]}y6t|||d!}t||d|d!} Wntj oPnX||jo|it|||n|it|| ||| 7}|| }|d7}q1Wt|d} t|dd!} x| d jo|i i t }d }xtd D]}y6t|||d!}t||d|d!} Wntj oPnX||jo|it|||n|it|| ||| 7}|| }|d7}qBWt|d } qW|| jo|it|| |n||_ |i i |_|i|i|i|_| |_|S( s8Process a GNU sparse header plus extra headers. ilii iiiiiiii(RHt _ringbufferR+R/R)R=t_holeRR,RRPRRRRR!RR( R|RRHtspRtlastposRR.Rtnumbytest isextendedtorigsize((s/usr/lib64/python2.6/tarfile.pyRsZ              cCs|ii|i|i}|itjo |i}n|ii}d}xt||jon||djo]t i ||}|pt dnyt |i d}Wntj ot dnX|djot dn||t|jot dn|id|d}||idd|!}|id\} } } | p| djp||djot dn| id} | id} | || <||7}qSW|i|}|ittfjo|d jot d n|i||i|i|i|_d |joM|i}|ip|itjo||i|i7}n||_qn|S( sVProcess an extended or global header as described in POSIX.1-2001. iRsinvalid headeriit=s R:smissing subsequent headerRN(RRPR!RRRRRRt_header_length_prefix_retmatchR*R(tgroupR)tstarttendt partitionRRRRRLR"R?R@RRRR (R|RRHRRR-R"theader_value_end_offsettkeyword_and_valuet raw_keywordtequalst raw_valueR RR#R((s/usr/lib64/python2.6/tarfile.pyROsN $ &     cCsx|iD]\}}|tjoq n|djo|id}n|tjo4yt||}Wqtj o d}qXnt|||}t|||q W|i|_dS(soReplace fields with supplemental information from a previous pax extended or global header. RRfiN( R t PAX_FIELDSRtPAX_NUMBER_FIELDSR)RBtsetattrRR(R|RR?R@R R((s/usr/lib64/python2.6/tarfile.pyR"s    cCs2t|t\}}|o|d7}n|tS(s_Round up a byte count by BLOCKSIZE and return it, e.g. _block(834) => 1024. i(ROR(R|RRVRW((s/usr/lib64/python2.6/tarfile.pyR!scCs |itjS(N(Rt REGULAR_TYPES(R|((s/usr/lib64/python2.6/tarfile.pyRscCs |iS(N(R(R|((s/usr/lib64/python2.6/tarfile.pytisfilescCs |itjS(N(RR(R|((s/usr/lib64/python2.6/tarfile.pyRscCs |itjS(N(RtSYMTYPE(R|((s/usr/lib64/python2.6/tarfile.pytissymscCs |itjS(N(RtLNKTYPE(R|((s/usr/lib64/python2.6/tarfile.pytislnkscCs |itjS(N(RtCHRTYPE(R|((s/usr/lib64/python2.6/tarfile.pytischrscCs |itjS(N(RtBLKTYPE(R|((s/usr/lib64/python2.6/tarfile.pytisblkscCs |itjS(N(RtFIFOTYPE(R|((s/usr/lib64/python2.6/tarfile.pytisfifoscCs |itjS(N(RR(R|((s/usr/lib64/python2.6/tarfile.pytissparsescCs|itttfjS(N(RR@RBRD(R|((s/usr/lib64/python2.6/tarfile.pytisdevs(/RlRmRnR~RRtpropertyRRRRRRtDEFAULT_FORMATtENCODINGRRRRt classmethodRRt staticmethodRR RRRRRRRRRRR"R!RR;RR=R?RARCRERFRG(((s/usr/lib64/python2.6/tarfile.pyRsP         3  ,   8 I          s([0-9]{1,20}) c Bs'eZdZdZeZeZdZeZ e Z d.Z eZeZd.dd.d.d.d.d.d.d.d.d.d.d ZdZdZeeeZed.dd.edZedd.dZedd.dd Zedd.dd Zhd d 6d d6dd6ZdZdZdZ dZ!d.d.d.dZ"e#dZ$d.e#d.dZ%d.dZ&dd.dZ'ddZ(dZ)dZ*dZ+d Z,d!Z-d"Z.d#Z/d$Z0d%Z1d&Z2d'Z3d(Z4d.d)Z5d*Z6d.d+Z7d,Z8d-Z9RS(/s=The TarFile Class provides an interface to tar archives. iR[c Cst|djp |djotdn||_hdd6dd6dd 6||_|pY|idjo*tii| od |_d|_nt||i}t|_ nT|djot |d o |i }nt |d o|i|_nt |_ |otii|nd|_ ||_|dj o ||_n|dj o ||_n|dj o ||_n|dj o ||_n|dj o ||_n| dj o | |_n$|djo d |_n d |_| dj o|itjo | |_n h|_| dj o | |_n| dj o | |_nt|_g|_t|_|ii|_h|_y|idjod|_ |i!|_ n|idjo\d|_ xPt oD|i!djo-|idjo|ii"t# dnPqqWn|idjo[t |_|ioD|ii$|ii%} |ii&| |it| 7_qnWn.|i p|ii'nt |_nXdS(sOpen 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. iRsmode must be 'r', 'a' or 'w'trbR[sr+btatwbR\R}R`sutf-8R9itawN((RR)R`t_modeRgRtexistst bltn_openRRRLRyR}RtabspathRR7Rt dereferencet ignore_zerosR?R@RRtdebugt errorlevelRtmemberst_loadedRRtinodest firstmemberR#RRRRRRR(R|R}R`RR7RRURVR?R@RRWRXRH((s/usr/lib64/python2.6/tarfile.pyR~s  "$     #                              !  cCs |itjS(N(R7R(R|((s/usr/lib64/python2.6/tarfile.pyt _getposixMscCs@ddk}|idtd|o t|_n t|_dS(Nis use the format attribute insteadi(twarningstwarntDeprecationWarningRR7R2(R|RR^((s/usr/lib64/python2.6/tarfile.pyt _setposixOs    c Ks,| o| otdn|djox|iD]}t||i|}|dj o|i}ny||d||SWq7ttfj o*} |dj o|i|q7q7q7Xq7WtdnCd|jo|idd\} }| pd} |pd}||ijot||i|}ntd|||| ||Sd |jo|id d\} }| pd} |pd}| d jotd n||| t || ||||} t | _ | S|d jo|i ||||Std dS(s|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 '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 '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 '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 snothing to openR[sr:*s%file could not be opened successfullyt:iRsunknown compression type %rt|trwsmode must be 'r' or 'w'RPsundiscernible modeN(R[sr:*( R)t OPEN_METHRRLRRpRqRtsplitRRRttaropen( RR}R`RRtkwargsRtfunct saved_posteReR]((s/usr/lib64/python2.6/tarfile.pyRzdsJ                cKsCt|djp |djotdn|||||S(sCOpen uncompressed tar archive name for reading or writing. iRsmode must be 'r', 'a' or 'w'(RR)(RR}R`RRh((s/usr/lib64/python2.6/tarfile.pyRgs i cKst|djp |djotdnyddk}|iWn%ttfj otdnX|djot||d}ny.|i |||i|||||}Wnt j ot dnXt |_ |S( skOpen gzip compressed tar archive name for reading or writing. Appending is not allowed. iRdsmode must be 'r' or 'w'iNsgzip module is not availableRXsnot a gzip file(RR)tgziptGzipFileRtAttributeErrorRqRLRSRgRQRpRR(RR}R`Rt compresslevelRhRlR]((s/usr/lib64/python2.6/tarfile.pytgzopens"       c Kst|djp |djotdnyddk}Wntj otdnX|dj ot||}n|i||d|}y|i||||}Wnt j ot dnXt |_ |S( slOpen bzip2 compressed tar archive name for reading or writing. Appending is not allowed. iRdsmode must be 'r' or 'w'.iNsbz2 module is not availableRosnot a bzip2 file( RR)RRRqRLRtBZ2FileRgRQRpRR(RR}R`RRoRhRR]((s/usr/lib64/python2.6/tarfile.pytbz2opens   RgRRpRRrRcCs|iodS|idjop|iittd|itd7_t|it\}}|djo|iitt|qn|i p|ii nt |_dS(slClose the TarFile. In write-mode, two finishing zero blocks are appended to the archive. NRPii( RR`RRRR RRROt RECORDSIZERRR(R|RVRW((s/usr/lib64/python2.6/tarfile.pyRs    cCs4|i|}|djotd|n|S(sReturn 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. sfilename %r not foundN(t _getmemberRLtKeyError(R|R}R((s/usr/lib64/python2.6/tarfile.pyt getmembers cCs)|i|ip|in|iS(sReturn the members of the archive as a list of TarInfo objects. The list has the same order as the members in the archive. (t_checkRZt_loadRY(R|((s/usr/lib64/python2.6/tarfile.pyt getmemberss  cCs(g}|iD]}||iq~S(sReturn the members of the archive as a list of their names. It has the same order as the list returned by getmembers(). (RyR}(R|t_[1]R((s/usr/lib64/python2.6/tarfile.pytgetnamessc Cs|id|d j o |i}n|d jo |}nt|}tii|\}}x#|dd!djo|d}qeW|i}||_|d joAt tdo|i oti |}qti |}nti |i}d}|i}t i|o|i|if} |i oK|idjo;| |ijo+||i| jot} |i| }qBt} | do||i| t td o.ti4|i5|_6ti7|i5|_8qn|S( sOCreate a TarInfo object for either the file `name' or the file object `fileobj' (using os.fstat on its file descriptor). You can modify some of the TarInfo's attributes before you add it using addfile(). If given, `arcname' specifies an alternative name for the file in the archive. RPiiRftlstatR1ltmajortminorN(9RwRLR}RhRgRt splitdriveRRRyRUR|tstattfstattfilenotst_modetS_ISREGtst_inotst_devtst_nlinkR[R>RtS_ISDIRRtS_ISFIFORDtS_ISLNKR<treadlinktS_ISCHRR@tS_ISBLKRBR`tst_uidRtst_gidRtst_sizeRtst_mtimeRRRtpwdtgetpwuidRRutgrptgetgrgidRR}tst_rdevRR~R( R|R}tarcnameRtdrvRtstatresRtstmdtinodeR((s/usr/lib64/python2.6/tarfile.pyt gettarinfo!s          $                 cCs|ix |D]}|ot|iGd|ip|i|ip|ifG|ip |iodd|i |i fGn d|i Gdt i |id Gn|i|iodndG|o<|iod G|iGn|iod G|iGqnHqWd S( sPrint 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. s%s/%ss%10ss%d,%ds%10ds%d-%02d-%02d %02d:%02d:%02diRfR1s->slink toN(RwReR`RRRRRARCRRRRt localtimeRR}RR=RR?(R|tverboseR((s/usr/lib64/python2.6/tarfile.pytlists(     cCs|id|djo |}n|dj o&||o|idd|dS|idj o5tii||ijo|idd|dS|djof|oZ|djo d}nx@ti|D]+}|i|tii ||||qWndS|id||i ||}|djo|idd |dS|i o-t |d }|i |||in|ioj|i ||oRxOti|D]:}|itii ||tii ||||qWqn|i |dS( sAdd 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. `exclude' is a function that should return True for each filename to be excluded. RPistarfile: Excluded %rNstarfile: Skipped %rt.R1istarfile: Unsupported type %rRM(RwRLt_dbgR}RgRRTtlistdirtaddR>RRRStaddfileRR(R|R}Rt recursivetexcludetfR((s/usr/lib64/python2.6/tarfile.pyRsB   ,   -    @cCs|idti|}|i|i|i|i}|ii||it |7_|dj oxt ||i|i t |i t\}}|djo&|iitt||d7}n|i|t7_n|ii|dS(s]Add the TarInfo object `tarinfo' to the archive. If `fileobj' is given, tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects using gettarinfo(). On Windows platforms, `fileobj' should always be opened with mode 'rb' to avoid irritation about the file size. RPiiN(RwRRR7R?R@RRRRRRLRNRRORR RYR=(R|RRRHRVRW((s/usr/lib64/python2.6/tarfile.pyRs   Rc Cs;g}|djo |}nxT|D]L}|io)|i|ti|}d|_n|i||q$W|idtid|i x|D]}t i i ||i }y4|i|||i|||i||Wqtj o4}|idjoq3|idd|qXqWdS(sMExtract 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(). iRR}is tarfile: %sN(RLRR=RR`textracttsorttoperatort attrgettertreverseRgRR>R}tchowntutimetchmodRoRXR(R|RRYt directoriesRtdirpathRk((s/usr/lib64/python2.6/tarfile.pyt extractalls.      R1cCsE|idt|to|i|}n|}|iotii||i|_ ny&|i |tii||i Wnt j ok}|i djoqA|idjo|idd|iqA|idd|i|ifnAtj o4}|i djoqA|idd|nXdS(s#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'. R[iis tarfile: %sstarfile: %s %rN(RwRt basestringRvR?RgRR>Rt _link_targett_extract_memberR}tEnvironmentErrorRXtfilenameRLRtstrerrorRo(R|tmemberRRRk((s/usr/lib64/python2.6/tarfile.pyRs$  &$cCs|idt|to|i|}n|}|io|i||S|itjo|i||S|ip |i oCt|i t ot dq|i |i|i|SndSdS(sExtract a member from the archive as a file object. `member' may be a filename or a TarInfo object. If `member' is a regular file, a file-like object is returned. If `member' is a link, a file-like object is constructed from the link's target. If `member' is none of the above, None is returned. The file-like object is read-only and provides the following methods: read(), readline(), readlines(), seek() and tell() R[s'cannot extract (sym)link as file objectN(RwRRRvRt fileobjectRR R?R=RRRrt extractfileRtRRL(R|RR((s/usr/lib64/python2.6/tarfile.pyR:s  cCs|ddjo|d }ntii|}tii|}|o%tii| oti|n|ip |io$|idd|i |i fn|id|i |i o|i ||n|i o|i||n|io|i||n|ip |io|i||nc|ip |io|i||n5|itjo|i||n|i |||i|||ip$|i|||i||ndS(s\Extract the TarInfo object tarinfo to a physical file called targetpath. iRfis%s -> %sN(RgRRhtdirnameRRtmakedirsR?R=RR}RRtmakefileRtmakedirREtmakefifoRARCtmakedevtmakelinkRR t makeunknownRRR(R|Rt targetpatht upperdirs((s/usr/lib64/python2.6/tarfile.pyRas4$    cCsJyti|dWn/tj o#}|itijoqFnXdS(s,Make a directory called targetpath. iN(RgtmkdirRterrnotEEXIST(R|RRRk((s/usr/lib64/python2.6/tarfile.pyRs cCsC|i|}t|d}t|||i|idS(s'Make a file called targetpath. RON(RRSRNR(R|RRtsourcettarget((s/usr/lib64/python2.6/tarfile.pyRs   cCs+|i|||idd|idS(sYMake a file from a TarInfo object with an unknown type at targetpath. is9tarfile: Unknown file type %r, extracted as regular file.N(RRR(R|RR((s/usr/lib64/python2.6/tarfile.pyRs cCs1ttdoti|n tddS(s'Make a fifo called targetpath. tmkfifosfifo not supported by systemN(RyRgRRo(R|RR((s/usr/lib64/python2.6/tarfile.pyRscCsttd pttd otdn|i}|io|tiO}n|tiO}ti||ti |i |i dS(s<Make a character or block device called targetpath. tmknodRs'special devices not supported by systemN( RyRgRoR`RCRtS_IFBLKtS_IFCHRRRRR(R|RRR`((s/usr/lib64/python2.6/tarfile.pyRs"    cCs!|i}y8|ioti||nti|i|Wntj o|io4tiitii |i |}t |}ny|i |i ||Wqttfj oS}tii |}yti||Wqtj o}tdqXqXnXdS(sMake 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. slink could not be createdN(RR=RgtsymlinktlinkRRnRR>RR}RhRRvRRuRMtcopy2RQ(R|RRRRk((s/usr/lib64/python2.6/tarfile.pyRs$    c Cstottdortidjo_yti|id}WnOtj oCyti|i d}Wqtj oti }qXnXyti |i d}WnOtj oCyti |id}Wqtj oti}qXnXy_|io'ttdoti|||n(tidjoti|||nWqtj o}tdqXndS(s6Set owner of targetpath according to tarinfo. tgeteuidiitlchowntos2emxscould not change ownerN(RRyRgRRtgetgrnamRRuRRtgetgidtgetpwnamRRRtgetuidR=RtsystplatformRRRo(R|RRRtuRk((s/usr/lib64/python2.6/tarfile.pyRs,*cCsSttdo?yti||iWqOtj o}tdqOXndS(sASet file permissions of targetpath according to tarinfo. Rscould not change modeN(RyRgRR`RRo(R|RRRk((s/usr/lib64/python2.6/tarfile.pyRs cCs]ttdpdSy ti||i|ifWn!tj o}tdnXdS(sBSet modification time of targetpath according to tarinfo. RNs"could not change modification time(RyRgRRRRo(R|RRRk((s/usr/lib64/python2.6/tarfile.pyR s  cCs|id|idj o|i}d|_|S|ii|ixtoy8|ii|}|djodS|i i |Wn|t j op}|i o3|i dd|i|f|it7_qJq|idjott|ndSnXPqJW|S(sReturn the next member of the archive as a TarInfo object, when TarFile is opened for reading. Return None if there is no more available. traNis0x%X: %si(RwR\RLRRRRRRRYR=R*RVRRRpR (R|tmRRk((s/usr/lib64/python2.6/tarfile.pyR# s.      cCsz|i}|djot|}n|i|}x;t|dddD]#}|||ijo ||SqOWdS(s}Find an archive member by name from bottom to top. If tarinfo is given, it is used as the starting point. iiN(RyRLRtindexR+R}(R|R}RRYR0R.((s/usr/lib64/python2.6/tarfile.pyRt3 s  cCs:x*to"|i}|djoPqqWt|_dS(sWRead through the entire archive file and look for readable members. N(RR#RLRZ(R|R((s/usr/lib64/python2.6/tarfile.pyRxC s    cCs\|iotd|iin|dj o'|i|jotd|indS(snCheck if TarFile is still open, and if the operation's mode corresponds to TarFile's mode. s %s is closedsbad operation for mode %rN(RRQRRlRLR`(R|R`((s/usr/lib64/python2.6/tarfile.pyRwM s cCs&|iot|iSt|SdS(s$Provide an iterator object. N(RZtiterRYtTarIter(R|((s/usr/lib64/python2.6/tarfile.pyRV s cCs%||ijoti|IJndS(s.Write debugging output to sys.stderr. N(RWRtstderr(R|tleveltmsg((s/usr/lib64/python2.6/tarfile.pyR^ sN(:RlRmRnRWRRURVRXRIR7RJR?RLR@RRRRR~R]RaRHtposixRKRsRzRgRpRrReRRvRyR{RRRRRRRRRRRRRRRRRRR#RtRxRwRR(((s/usr/lib64/python2.6/tarfile.pyRsn  `   H   c 9 % ! ' 0      $  RcBs)eZdZdZdZdZRS(sMIterator Class. for tarinfo in TarFile(...): suite... cCs||_d|_dS(s$Construct a TarIter object. iN(RR(R|R((s/usr/lib64/python2.6/tarfile.pyR~l s cCs|S(s Return iterator object. ((R|((s/usr/lib64/python2.6/tarfile.pyRq scCs|iip0|ii}|pt|i_tqpn4y|ii|i}Wntj o tnX|id7_|S(sReturn the next item using TarFile's next() method. When all members have been read, set TarFile as _loaded. i(RRZR#Rt StopIterationRYRt IndexError(R|R((s/usr/lib64/python2.6/tarfile.pyR#u s   (RlRmRnR~RR#(((s/usr/lib64/python2.6/tarfile.pyRe s  t_sectioncBs eZdZdZdZRS(s$Base class for _data and _hole. cCs||_||_dS(N(RR(R|RR((s/usr/lib64/python2.6/tarfile.pyR~ s cCs&|i|jo|i|ijSS(N(RR(R|R((s/usr/lib64/python2.6/tarfile.pyt __contains__ s(RlRmRnR~R(((s/usr/lib64/python2.6/tarfile.pyR s RcBseZdZdZRS(s/Represent a data section in a sparse file. cCs ti|||||_dS(N(RR~R(R|RRR((s/usr/lib64/python2.6/tarfile.pyR~ s(RlRmRnR~(((s/usr/lib64/python2.6/tarfile.pyR sR%cBseZdZRS(s/Represent a hole section in a sparse file. (RlRmRn(((s/usr/lib64/python2.6/tarfile.pyR% sR$cBs eZdZdZdZRS(sMRingbuffer class which increases performance over a regular list. cCs d|_dS(Ni(tidx(R|((s/usr/lib64/python2.6/tarfile.pyR~ scCs}|i}xdto\||}||joPn|d7}|t|jo d}n||ijodSq W||_|S(Nii(RRRRL(R|RRtitem((s/usr/lib64/python2.6/tarfile.pyR$ s       (RlRmRnR~R$(((s/usr/lib64/python2.6/tarfile.pyR$ s t TarFileCompatcBsteZdZdedZdZdZdZdZdZ dZ d d d Z d Z d ZRS( sRTarFile class compatible with standard module zipfile's ZipFile class. R[cCsddkl}|ddd|tjoti|||_n3|tjoti|||_n td|dd!d joU|ii }xC|D]7}|i |_ |i |_ ti|id |_qWndS( Ni(twarnpy3ks6the TarFileCompat class has been removed in Python 3.0t stacklevelisunknown compression constantiiR[i(R^Rt TAR_PLAINRRgRt TAR_GZIPPEDRpR)RyR}RRt file_sizeRtgmtimeRt date_time(R|tfileR`t compressionRRYR((s/usr/lib64/python2.6/tarfile.pyR~ s      cCstd|iS(NcSs|iS((R}(R((s/usr/lib64/python2.6/tarfile.pyRk s(tmaptinfolist(R|((s/usr/lib64/python2.6/tarfile.pytnamelist scCstd|iiS(NcSs |itjS((RR:(R((s/usr/lib64/python2.6/tarfile.pyRk s(tfilterRRy(R|((s/usr/lib64/python2.6/tarfile.pyR s cCs|iidS(N(RR(R|((s/usr/lib64/python2.6/tarfile.pytprintdir scCsdS(N((R|((s/usr/lib64/python2.6/tarfile.pyttestzip scCs|ii|S(N(RRv(R|R}((s/usr/lib64/python2.6/tarfile.pytgetinfo scCs"|ii|ii|iS(N(RRRvRP(R|R}((s/usr/lib64/python2.6/tarfile.pyRP scCs|ii||dS(N(RR(R|RRt compress_type((s/usr/lib64/python2.6/tarfile.pyRR sc Csyddkl}Wn#tj oddkl}nXddk}t|i}t||_|i|i |_ |i i |||dS(Ni(tStringIO( t cStringIORRtcalendarRRRRttimegmRRRR(R|tzinfotbytesRRttinfo((s/usr/lib64/python2.6/tarfile.pytwritestr s cCs|iidS(N(RR(R|((s/usr/lib64/python2.6/tarfile.pyR sN(RlRmRnRR~RRRRRRPRLRRRR(((s/usr/lib64/python2.6/tarfile.pyR s       cCs9yt|}|itSWntj otSXdS(sfReturn True if name points to a tar archive that we are able to handle, else return False. N(RzRRRR(R}R]((s/usr/lib64/python2.6/tarfile.pyR s   (yRnt __version__tversiont __author__t__date__t __cvsid__t __credits__RRgRMRRRR3RtreRRRRRRLt__all__R RRsRRRRRRRR>R<R@RBRRDtCONTTYPERRRRRRRR2RRIR R:RR7RR(R8tS_IFLNKtS_IFREGRtS_IFDIRRtS_IFIFOtTSUIDtTSGIDtTSVTXtTUREADtTUWRITEtTUEXECtTGREADtTGWRITEtTGEXECtTOREADtTOWRITEtTOEXECtgetfilesystemencodingRJtgetdefaultencodingR#R&R/R8RBRKRNR_ReRjRhRt ExceptionRRoRpRqRrR*RsRtobjectRRRRRtcompiletUR,RRRRR%RR$RRRRRzRS(((s/usr/lib64/python2.6/tarfile.pyts0                                                 DLD% 4