/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/io.pyo (63042B)
gc@sdZddklZddklZdZddddd d d d d dddddgZddkZddkZddkZddk Z ddk Z ddZ e Z defdYZdeeeeedZdfdYZdfdYZdeefdYZd efd!YZd"efd#YZd$e iefd%YZd&efd'YZd(efd)YZd*efd+YZy,ddkZd,eiefd-YZ Wne!j o eZ nXd.efd/YZ"d0efd1YZ#d2efd3YZ$d4e#e"fd5YZ%d6efd7YZ&d8ei'fd9YZ(d:e&fd;YZ)d<e)fd=YZ*dS(>u The io module provides the Python interfaces to stream handling. The builtin open function is defined in this module. At the top of the I/O hierarchy is the abstract base class IOBase. It defines the basic interface to a stream. Note, however, that there is no separation between reading and writing to streams; implementations are allowed to throw an IOError if they do not support a given operation. Extending IOBase is RawIOBase which deals simply with the reading and writing of raw bytes to a stream. FileIO subclasses RawIOBase to provide an interface to OS files. BufferedIOBase deals with buffering on a raw byte stream (RawIOBase). Its subclasses, BufferedWriter, BufferedReader, and BufferedRWPair buffer streams that are readable, writable, and both respectively. BufferedRandom provides a buffered interface to random access streams. BytesIO is a simple stream of in-memory bytes. Another IOBase subclass, TextIOBase, deals with the encoding and decoding of streams into text. TextIOWrapper, which extends it, is a buffered text interface to a buffered raw stream (`BufferedIOBase`). Finally, StringIO is a in-memory stream for text. Argument names are not part of the specification, and only the arguments of open() are intended to be used as keyword arguments. data: DEFAULT_BUFFER_SIZE An int containing the default buffer size used by the module's buffered I/O classes. open() uses the file's blksize (as obtained by os.stat) if possible. i(tprint_function(tunicode_literalsuqGuido van Rossum , Mike Verdone , Mark Russell uBlockingIOErroruopenuIOBaseu RawIOBaseuFileIOuBytesIOuStringIOuBufferedIOBaseuBufferedReaderuBufferedWriteruBufferedRWPairuBufferedRandomu TextIOBaseu TextIOWrapperNiitBlockingIOErrorcBseZdZddZRS(uCException raised when I/O would block on a non-blocking I/O stream.icCs ti|||||_dS(N(tIOErrort__init__tcharacters_written(tselfterrnotstrerrorR((s/usr/lib64/python2.6/io.pyRLs(t__name__t __module__t__doc__R(((s/usr/lib64/python2.6/io.pyRHsurc Csnt|ttfptd|nt|tptd|n|dj o%t|t otd|n|dj o%t|t otd|n|dj o%t|t otd|nt|}|tdpt|t|jotd|nd|j}d|j} d |j} d |j} d |j} d |j} d |jo(| p| otdnt}n| o| otdn|| | djotdn|p | p| ptdn| o|dj otdn| o|dj otdn| o|dj otdnt ||odpd| odpd| od pd| od pd|}|djo d}nt }|djp|djo|i od}t}n|djo\t }yt i|ii}Wnt itfj oqX|djo |}qn|djotdn|djo| o|Stdn| ot||}nL| p| ot||}n+|ot||}ntd|| o|St|||||} || _| S(uOpen file and return a stream. If the file cannot be opened, an IOError is raised. file is either a string giving the name (and the path if the file isn't in the current working directory) of the file to be opened or an integer file descriptor of the file to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed, unless closefd is set to False.) mode is an optional string that specifies the mode in which the file is opened. It defaults to 'r' which means open for reading in text mode. Other common values are 'w' for writing (truncating the file if it already exists), and 'a' for appending (which on some Unix systems, means that all writes append to the end of the file regardless of the current seek position). In text mode, if encoding is not specified the encoding used is platform dependent. (For reading and writing raw bytes use binary mode and leave encoding unspecified.) The available modes are: ========= =============================================================== Character Meaning --------- --------------------------------------------------------------- 'r' open for reading (default) 'w' open for writing, truncating the file first 'a' open for writing, appending to the end of the file if it exists 'b' binary mode 't' text mode (default) '+' open a disk file for updating (reading and writing) 'U' universal newline mode (for backwards compatibility; unneeded for new code) ========= =============================================================== The default mode is 'rt' (open for reading text). For binary random access, the mode 'w+b' opens and truncates the file to 0 bytes, while 'r+b' opens the file without truncation. Python distinguishes between files opened in binary and text modes, even when the underlying operating system doesn't. Files opened in binary mode (appending 'b' to the mode argument) return contents as bytes objects without any decoding. In text mode (the default, or when 't' is appended to the mode argument), the contents of the file are returned as strings, the bytes having been first decoded using a platform-dependent encoding or using the specified encoding if given. buffering is an optional integer used to set the buffering policy. Pass 0 to switch buffering off (only allowed in binary mode), 1 to select line buffering (only usable in text mode), and an integer > 1 to indicate the size of a fixed-size chunk buffer. When no buffering argument is given, the default buffering policy works as follows: * Binary files are buffered in fixed-size chunks; the size of the buffer is chosen using a heuristic trying to determine the underlying device's "block size" and falling back on `io.DEFAULT_BUFFER_SIZE`. On many systems, the buffer will typically be 4096 or 8192 bytes long. * "Interactive" text files (files for which isatty() returns True) use line buffering. Other text files use the policy described above for binary files. encoding is the name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform dependent, but any encoding supported by Python can be passed. See the codecs module for the list of supported encodings. errors is an optional string that specifies how encoding errors are to be handled---this argument should not be used in binary mode. Pass 'strict' to raise a ValueError exception if there is an encoding error (the default of None has the same effect), or pass 'ignore' to ignore errors. (Note that ignoring encoding errors can lead to data loss.) See the documentation for codecs.register for a list of the permitted encoding error strings. newline controls how universal newlines works (it only applies to text mode). It can be None, '', '\n', '\r', and '\r\n'. It works as follows: * On input, if newline is None, universal newlines mode is enabled. Lines in the input can end in '\n', '\r', or '\r\n', and these are translated into '\n' before being returned to the caller. If it is '', universal newline mode is enabled, but line endings are returned to the caller untranslated. If it has any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated. * On output, if newline is None, any '\n' characters written are translated to the system default line separator, os.linesep. If newline is '', no translation takes place. If newline is any of the other legal values, any '\n' characters written are translated to the given string. If closefd is False, the underlying file descriptor will be kept open when the file is closed. This does not work when a file name is given and must be True in that case. open() returns a file object whose type depends on the mode, and through which the standard file operations such as reading and writing are performed. When open() is used to open a file in a text mode ('w', 'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open a file in a binary mode, the returned class varies: in read binary mode, it returns a BufferedReader; in write binary and append binary modes, it returns a BufferedWriter, and in read/write mode, it returns a BufferedRandom. It is also possible to use a string or bytearray as a file for both reading and writing. For strings StringIO can be used like a file opened in a text mode, and for bytes a BytesIO can be used like a file opened in a binary mode. uinvalid file: %ruinvalid mode: %ruinvalid buffering: %ruinvalid encoding: %ruinvalid errors: %ruarwb+tUuruwuau+utubuUu$can't use U and writing mode at onceu'can't have text and binary mode at onceiu)can't have read/write/append mode at onceu/must have exactly one of read/write/append modeu-binary mode doesn't take an encoding argumentu+binary mode doesn't take an errors argumentu+binary mode doesn't take a newline argumentuiiuinvalid buffering sizeucan't have unbuffered text I/Ouunknown mode: %rN(t isinstancet basestringtintt TypeErrortNonetsettlent ValueErrortTruetFileIOtFalsetisattytDEFAULT_BUFFER_SIZEtostfstattfilenot st_blksizeterrortAttributeErrortBufferedRandomtBufferedWritertBufferedReadert TextIOWrappertmode(tfileR#t bufferingtencodingterrorstnewlinetclosefdtmodestreadingtwritingt appendingtupdatingttexttbinarytrawtline_bufferingtbstbuffer((s/usr/lib64/python2.6/io.pytopenQsn *        5   '      t_DocDescriptorcBseZdZdZRS(u%Helper for builtins.open.__doc__ cCs dtiS(Nu^open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True) (R5R (Rtobjttyp((s/usr/lib64/python2.6/io.pyt__get__s(R R R R9(((s/usr/lib64/python2.6/io.pyR6 st OpenWrappercBs eZdZeZdZRS(uWrapper for builtins.open Trick so that open won't become a bound method when stored as a class variable (as dumbdbm does). See initstdio() in Python/pythonrun.c. cOs t||S(N(R5(tclstargstkwargs((s/usr/lib64/python2.6/io.pyt__new__s(R R R R6R>(((s/usr/lib64/python2.6/io.pyR:s tUnsupportedOperationcBseZRS((R R (((s/usr/lib64/python2.6/io.pyR?"stIOBasecBseZdZeiZdZddZdZddZ dZ e Z dZdZd Zdd Zd Zdd Zd ZddZedZddZdZdZdZdZddZdZdZddZ dZ!RS(uThe abstract base class for all I/O classes, acting on streams of bytes. There is no public constructor. This class provides dummy implementations for many methods that derived classes can override selectively; the default implementations represent a file that cannot be read, written or seeked. Even though IOBase does not declare read, readinto, or write because their signatures will vary, implementations and clients should consider those methods part of the interface. Also, implementations may raise a IOError when operations they do not support are called. The basic type used for binary data read from or written to a file is bytes. bytearrays are accepted too, and in some cases (such as readinto) needed. Text I/O classes work with str data. Note that calling any method (even inquiries) on a closed stream is undefined. Implementations may raise IOError in this case. IOBase (and its subclasses) support the iterator protocol, meaning that an IOBase object can be iterated over yielding the lines in a stream. IOBase also supports the :keyword:`with` statement. In this example, fp is closed after the suite of the with statment is complete: with open('spam.txt', 'r') as fp: fp.write('Spam and eggs!') cCs td|ii|fdS(u8Internal: raise an exception for unsupported operations.u%s.%s() not supportedN(R?t __class__R (Rtname((s/usr/lib64/python2.6/io.pyt _unsupportedJsicCs|iddS(uChange stream position. Change the stream position to byte offset offset. offset is interpreted relative to the position indicated by whence. Values for whence are: * 0 -- start of stream (the default); offset should be zero or positive * 1 -- current stream position; offset may be negative * 2 -- end of stream; offset is usually negative Return the new absolute position. useekN(RC(Rtpostwhence((s/usr/lib64/python2.6/io.pytseekQs cCs|iddS(uReturn current stream position.ii(RF(R((s/usr/lib64/python2.6/io.pyttell`scCs|iddS(uTruncate file to size bytes. Size defaults to the current IO position as reported by tell(). Return the new size. utruncateN(RC(RRD((s/usr/lib64/python2.6/io.pyttruncatedscCs|iotdndS(uuFlush write buffers, if applicable. This is not implemented for read-only and non-blocking streams. uflush of closed fileN(t_IOBase__closedR(R((s/usr/lib64/python2.6/io.pytflushns cCs%|ip|it|_ndS(uiFlush and close the IO object. This method has no effect if the file is already closed. N(RIRJR(R((s/usr/lib64/python2.6/io.pytclosezs  cCsy|iWnnXdS(uDestructor. Calls close().N(RK(R((s/usr/lib64/python2.6/io.pyt__del__scCstS(uReturn whether object supports random access. If False, seek(), tell() and truncate() will raise IOError. This method may need to do a test seek(). (R(R((s/usr/lib64/python2.6/io.pytseekablescCs5|ip$t|djodn|ndS(u;Internal: raise an IOError if file is not seekable uFile or stream is not seekable.N(RMRR(Rtmsg((s/usr/lib64/python2.6/io.pyt_checkSeekables cCstS(udReturn whether object was opened for reading. If False, read() will raise IOError. (R(R((s/usr/lib64/python2.6/io.pytreadablescCs5|ip$t|djodn|ndS(u;Internal: raise an IOError if file is not readable uFile or stream is not readable.N(RPRR(RRN((s/usr/lib64/python2.6/io.pyt_checkReadables cCstS(utReturn whether object was opened for writing. If False, write() and truncate() will raise IOError. (R(R((s/usr/lib64/python2.6/io.pytwritablescCs5|ip$t|djodn|ndS(u;Internal: raise an IOError if file is not writable uFile or stream is not writable.N(RRRR(RRN((s/usr/lib64/python2.6/io.pyt_checkWritables cCs|iS(uclosed: bool. True iff the file has been closed. For backwards compatibility, this is a property, not a predicate. (RI(R((s/usr/lib64/python2.6/io.pytclosedscCs2|io$t|djodn|ndS(u8Internal: raise an ValueError if file is closed uI/O operation on closed file.N(RTRR(RRN((s/usr/lib64/python2.6/io.pyt _checkCloseds cCs|i|S(u+Context management protocol. Returns self.(RU(R((s/usr/lib64/python2.6/io.pyt __enter__s cGs|idS(u+Context management protocol. Calls close()N(RK(RR<((s/usr/lib64/python2.6/io.pyt__exit__scCs|iddS(uReturns underlying file descriptor if one exists. An IOError is raised if the IO object does not use a file descriptor. ufilenoN(RC(R((s/usr/lib64/python2.6/io.pyRscCs|itS(uiReturn whether this is an 'interactive' stream. Return False if it can't be determined. (RUR(R((s/usr/lib64/python2.6/io.pyRs icsitdofd}n d}djo dntttfptdnt}xbdjpt|joAi |}|pPn||7}|i doPqqWt |S( u(Read and return a line from the stream. If limit is specified, at most limit bytes will be read. The line terminator is always b'\n' for binary files; for text files, the newlines argument to open can be used to select the line terminator(s) recognized. upeekcs_id}|pdS|iddp t|}djot|}n|S(Nis i(tpeektfindRtmin(t readaheadtn(Rtlimit(s/usr/lib64/python2.6/io.pyt nreadaheads  cSsdS(Ni((((s/usr/lib64/python2.6/io.pyR^siulimit must be an integeris N( RUthasattrRR RtlongRt bytearrayRtreadtendswithtbytes(RR]R^trestb((RR]s/usr/lib64/python2.6/io.pytreadlines$        cCs|i|S(N(RU(R((s/usr/lib64/python2.6/io.pyt__iter__s cCs!|i}|p tn|S(N(Rgt StopIteration(Rtline((s/usr/lib64/python2.6/io.pytnexts  cCs|djo d}nt|ttfptdn|djo t|Sd}g}x=|D]5}|i||t|7}||joPqhqhW|S(uReturn a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint. iuhint must be an integeriN(RR RR`RtlisttappendR(RthintR\tlinesRj((s/usr/lib64/python2.6/io.pyt readliness       cCs,|ix|D]}|i|qWdS(N(RUtwrite(RRoRj((s/usr/lib64/python2.6/io.pyt writelines0s N("R R R tabctABCMetat __metaclass__RCRFRGRRHRJRRIRKRLRMRORPRQRRRStpropertyRTRURVRWRRRgRhRkRpRr(((s/usr/lib64/python2.6/io.pyR@&s6                $   t RawIOBasecBs5eZdZddZdZdZdZRS(uBase class for raw binary I/O.icCsa|djo d}n|djo |iSt|i}|i|}||3t|S(uRead and return up to n bytes. Returns an empty bytes array on EOF, or None if the object is set not to block and has no data to read. iiN(RtreadallRat __index__treadintoRd(RR\Rf((s/usr/lib64/python2.6/io.pyRbDs    cCsGt}x1to)|it}|pPn||7}q Wt|S(u+Read until EOF, using multiple read() call.(RaRRbRRd(RRetdata((s/usr/lib64/python2.6/io.pyRxSs cCs|iddS(uRead up to len(b) bytes into b. Returns number of bytes read (0 for EOF), or None if the object is set not to block as has no data to read. ureadintoN(RC(RRf((s/usr/lib64/python2.6/io.pyRz]scCs|iddS(u~Write the given buffer to the IO stream. Returns the number of bytes written, which may be less than len(b). uwriteN(RC(RRf((s/usr/lib64/python2.6/io.pyRqes(R R R RbRxRzRq(((s/usr/lib64/python2.6/io.pyRw6s   RcBs5eZdZdedZdZedZRS(u$Raw I/O implementation for OS files.urcCs&tii||||||_dS(N(t_fileiot_FileIORt_name(RRBR#R)((s/usr/lib64/python2.6/io.pyRvscCs!tii|ti|dS(N(R|R}RKRw(R((s/usr/lib64/python2.6/io.pyRKzscCs|iS(N(R~(R((s/usr/lib64/python2.6/io.pyRB~s(R R R RRRKRvRB(((s/usr/lib64/python2.6/io.pyRms tBufferedIOBasecBs,eZdZddZdZdZRS(uBase class for buffered IO objects. The main difference with RawIOBase is that the read() method supports omitting the size argument, and does not have a default implementation that defers to readinto(). In addition, read(), readinto() and write() may raise BlockingIOError if the underlying raw stream is in non-blocking mode and not ready; unlike their raw counterparts, they will never return None. A typical implementation should not inherit from a RawIOBase implementation, but wrap one. cCs|iddS(uRead and return up to n bytes. If the argument is omitted, None, or negative, reads and returns all data until EOF. If the argument is positive, and the underlying raw stream is not 'interactive', multiple raw reads may be issued to satisfy the byte count (unless EOF is reached first). But for interactive raw streams (XXX and for pipes?), at most one raw read will be issued, and a short result does not imply that EOF is imminent. Returns an empty bytes array on EOF. Raises BlockingIOError if the underlying raw stream has no data at the moment. ureadN(RC(RR\((s/usr/lib64/python2.6/io.pyRbscCs|it|}t|}y|||*WnTtj oH}ddk}t||ip |n|id|||*nX|S(u=Read up to len(b) bytes into b. Like read(), this may issue multiple reads to the underlying raw stream, unless the latter is 'interactive'. Returns the number of bytes read (0 for EOF). Raises BlockingIOError if the underlying raw stream has no data at the moment. iNRf(RbRRtarrayR (RRfR{R\terrR((s/usr/lib64/python2.6/io.pyRzs    cCs|iddS(u Write the given buffer to the IO stream. Return the number of bytes written, which is never less than len(b). Raises BlockingIOError if the buffer is full and the underlying raw stream cannot accept more data at the moment. uwriteN(RC(RRf((s/usr/lib64/python2.6/io.pyRqs N(R R R RRbRzRq(((s/usr/lib64/python2.6/io.pyRs  t_BufferedIOMixincBseZdZdZddZdZddZdZdZ dZ d Z d Z e d Ze d Ze d ZdZdZRS(uA mixin implementation of BufferedIOBase with an underlying raw stream. This passes most requests on to the underlying raw stream. It does *not* provide implementations of read(), readinto() or write(). cCs ||_dS(N(R1(RR1((s/usr/lib64/python2.6/io.pyRsicCs|ii||S(N(R1RF(RRDRE((s/usr/lib64/python2.6/io.pyRFscCs |iiS(N(R1RG(R((s/usr/lib64/python2.6/io.pyRGscCs7|i|djo|i}n|ii|S(N(RJRRGR1RH(RRD((s/usr/lib64/python2.6/io.pyRHs  cCs|iidS(N(R1RJ(R((s/usr/lib64/python2.6/io.pyRJscCs)|ip|i|iindS(N(RTRJR1RK(R((s/usr/lib64/python2.6/io.pyRKs  cCs |iiS(N(R1RM(R((s/usr/lib64/python2.6/io.pyRMscCs |iiS(N(R1RP(R((s/usr/lib64/python2.6/io.pyRPscCs |iiS(N(R1RR(R((s/usr/lib64/python2.6/io.pyRRscCs |iiS(N(R1RT(R((s/usr/lib64/python2.6/io.pyRTscCs |iiS(N(R1RB(R((s/usr/lib64/python2.6/io.pyRBscCs |iiS(N(R1R#(R((s/usr/lib64/python2.6/io.pyR#scCs |iiS(N(R1R(R((s/usr/lib64/python2.6/io.pyRscCs |iiS(N(R1R(R((s/usr/lib64/python2.6/io.pyRsN(R R R RRFRGRRHRJRKRMRPRRRvRTRBR#RR(((s/usr/lib64/python2.6/io.pyRs          t_BytesIOcBs}eZdZd dZdZd dZdZdZddZ dZ d d Z d Z d Z d ZRS(u<Buffered I/O implementation using an in-memory bytes buffer.cCs@t}|dj o|t|7}n||_d|_dS(Ni(RaRt_buffert_pos(Rt initial_bytestbuf((s/usr/lib64/python2.6/io.pyRs    cCs'|iotdnt|iS(u8Return the bytes value (contents) of the buffer ugetvalue on closed file(RTRRdR(R((s/usr/lib64/python2.6/io.pytgetvalue"s cCs|iotdn|djo d}nt|ttfptdn|djot|i}nt|i|i jodSt t|i|i |}|i|i |!}||_ t |S(Nuread from closed fileiuargument must be an integerit( RTRRR RR`RRRRRZRd(RR\tnewposRf((s/usr/lib64/python2.6/io.pyRb)s     cCs |i|S(u"this is the same as read. (Rb(RR\((s/usr/lib64/python2.6/io.pytread19scCs|iotdnt|totdnt|}|djodS|i}|t|ijo*d|t|i}|i|7_n||i|||+|i|7_|S(Nuwrite to closed fileu$can't write unicode to binary streamit(RTRR tunicodeRRRR(RRfR\RDtpadding((s/usr/lib64/python2.6/io.pyRq>s    icCs|iotdny |iWntj otdnX|djo1|djotd|fn||_ng|djotd|i||_n=|djo#tdt|i||_n td|iS(Nuseek on closed fileuan integer is requirediunegative seek position %riiuinvalid whence value( RTRRyRRRtmaxRR(RRDRE((s/usr/lib64/python2.6/io.pyRFPs        # cCs!|iotdn|iS(Nutell on closed file(RTRR(R((s/usr/lib64/python2.6/io.pyRGcs cCs|iotdn|djo |i}nRy |iWntj otdnX|djotd|fn|i|3|S(Nutruncate on closed fileuan integer is requirediunegative truncate position %r(RTRRRRyRRR(RRD((s/usr/lib64/python2.6/io.pyRHhs      cCstS(N(R(R((s/usr/lib64/python2.6/io.pyRPwscCstS(N(R(R((s/usr/lib64/python2.6/io.pyRRzscCstS(N(R(R((s/usr/lib64/python2.6/io.pyRM}sN(R R R RRRRbRRqRFRGRHRPRRRM(((s/usr/lib64/python2.6/io.pyRs          tBytesIOcBseZeiiZRS((R R t_bytesioRR (((s/usr/lib64/python2.6/io.pyRsR!cBsqeZdZedZdZd dZd dZddZ ddZ dZ d Z dd Z RS( uBufferedReader(raw[, buffer_size]) A buffer for a readable, sequential BaseRawIO object. The constructor creates a BufferedReader for the given readable raw stream and buffer_size. If buffer_size is omitted, DEFAULT_BUFFER_SIZE is used. cCs@|iti||||_|iti|_dS(uMCreate a new buffered reader using the given readable raw IO object. N(RQRRt buffer_sizet_reset_read_buft threadingtLockt _read_lock(RR1R((s/usr/lib64/python2.6/io.pyRs    cCsd|_d|_dS(NRi(t _read_buft _read_pos(R((s/usr/lib64/python2.6/io.pyRs cCs,|iiiz|i|SWdQXdS(uRead n bytes. Returns exactly n bytes of data unless the underlying raw IO stream reaches EOF or if the call would block in non-blocking mode. If n is negative, read until EOF or until read() would block. N(RRWRVt_read_unlocked(RR\((s/usr/lib64/python2.6/io.pyRbsc Csd}d}|i}|i}|djp |djo|i||g}d}xPtoH|ii}||jo |}Pn|t|7}|i|qXWdi |p|St||} || jo|i|7_||||!S||g}t |i |} xY| |joK|ii| }||jo |}Pn| t|7} |i|qWt || }di |} | ||_d|_| o | | S|S(NRii(RN( RRRRRR1RbRRmtjoinRRRZ( RR\t nodata_valt empty_valuesRRDtchunkst current_sizetchunktavailtwantedtout((s/usr/lib64/python2.6/io.pyRsH           icCs,|iiiz|i|SWdQXdS(uReturns buffered bytes without advancing the position. The argument indicates a desired minimal number of bytes; we do at most one raw read to satisfy it. We never return more than self.buffer_size. N(RRWRVt_peek_unlocked(RR\((s/usr/lib64/python2.6/io.pyRXscCst||i}t|i|i}||joN|i|}|ii|}|o$|i|i||_d|_qn|i|iS(Ni(RZRRRRR1Rb(RR\twantthavetto_readtcurrent((s/usr/lib64/python2.6/io.pyRs  c Csd|djodS|iiiz7|id|it|t|i|iSWdQXdS(u9Reads up to n bytes, with at most one read() system call.iRiN( RRWRVRRRZRRR(RR\((s/usr/lib64/python2.6/io.pyRs   cCs!|iit|i|iS(N(R1RGRRR(R((s/usr/lib64/python2.6/io.pyRGscCsm|iiizR|djo|t|i|i8}n|ii||}|i|SWdQXdS(Ni( RRWRVRRRR1RFR(RRDRE((s/usr/lib64/python2.6/io.pyRFs   N(R R R RRRRRbRRXRRRGRF(((s/usr/lib64/python2.6/io.pyR!s   . R cBsYeZdZed dZdZd dZdZdZ dZ ddZ RS( uA buffer for a writeable sequential RawIO object. The constructor creates a BufferedWriter for the given writeable raw stream. If the buffer_size is not given, it defaults to DEAFULT_BUFFER_SIZE. If max_buffer_size is omitted, it defaults to twice the buffer size. cCsc|iti||||_|djo d|n||_t|_ti |_ dS(Ni( RSRRRRtmax_buffer_sizeRat _write_bufRRt _write_lock(RR1RR((s/usr/lib64/python2.6/io.pyRs    c Cs|iotdnt|totdn|iiiz6t|i |i joBy|i Wqt j o!}t |i |idqXnt|i }|i i|t|i |}t|i |i joy|i Wq}t j og}t|i |ijoEt|i |i}|i |i |_ t |i |i|qyq}Xn|SWdQXdS(Nuwrite to closed fileu$can't write unicode to binary streami(RTRR RRRRWRVRRRt_flush_unlockedRRRtextendR(RRftetbeforetwrittentoverage((s/usr/lib64/python2.6/io.pyRqs, !%cCsY|iiiz>|i|djo|ii}n|ii|SWdQXdS(N(RRWRVRRR1RGRH(RRD((s/usr/lib64/python2.6/io.pyRH<s   cCsC|iotdn|iiiz|iWdQXdS(Nuflush of closed file(RTRRRWRVR(R((s/usr/lib64/python2.6/io.pyRJCs cCs|iotdnd}y?x8|io-|ii|i}|i|4||7}q&WWnJtj o>}|i}|i|4||7}t|i|i|nXdS(Nuflush of closed filei( RTRRR1RqRRRR(RRR\R((s/usr/lib64/python2.6/io.pyRIs      cCs|iit|iS(N(R1RGRR(R((s/usr/lib64/python2.6/io.pyRGXsicCs<|iiiz!|i|ii||SWdQXdS(N(RRWRVRR1RF(RRDRE((s/usr/lib64/python2.6/io.pyRF[s N( R R R RRRRqRHRJRRGRF(((s/usr/lib64/python2.6/io.pyR s     tBufferedRWPaircBseZdZeddZddZdZdZddZ dZ dZ d Z d Z d Zd Zed ZRS(uA buffered reader and writer object together. A buffered reader object and buffered writer object put together to form a sequential IO object that can read and write. This is typically used with a socket or two-way pipe. reader and writer are RawIOBase objects that are readable and writeable respectively. If the buffer_size is omitted it defaults to DEFAULT_BUFFER_SIZE. The max_buffer_size (for the buffered writer) defaults to twice the buffer size. cCs?|i|it|||_t||||_dS(uEConstructor. The arguments are two RawIO instances. N(RQRSR!treaderR twriter(RRRRR((s/usr/lib64/python2.6/io.pyRrs  cCs'|djo d}n|ii|S(Ni(RRRb(RR\((s/usr/lib64/python2.6/io.pyRb}s  cCs|ii|S(N(RRz(RRf((s/usr/lib64/python2.6/io.pyRzscCs|ii|S(N(RRq(RRf((s/usr/lib64/python2.6/io.pyRqsicCs|ii|S(N(RRX(RR\((s/usr/lib64/python2.6/io.pyRXscCs|ii|S(N(RR(RR\((s/usr/lib64/python2.6/io.pyRscCs |iiS(N(RRP(R((s/usr/lib64/python2.6/io.pyRPscCs |iiS(N(RRR(R((s/usr/lib64/python2.6/io.pyRRscCs |iiS(N(RRJ(R((s/usr/lib64/python2.6/io.pyRJscCs|ii|iidS(N(RRKR(R((s/usr/lib64/python2.6/io.pyRKs cCs|iip |iiS(N(RRR(R((s/usr/lib64/python2.6/io.pyRscCs |iiS(N(RRT(R((s/usr/lib64/python2.6/io.pyRTsN(R R R RRRRbRzRqRXRRPRRRJRKRRvRT(((s/usr/lib64/python2.6/io.pyRas           RcBsqeZdZed dZddZdZd dZd dZ dZ ddZ d Z d Z RS( u<A buffered interface to random access streams. The constructor creates a reader and writer for a seekable stream, raw, given in the first argument. If the buffer_size is omitted it defaults to DEFAULT_BUFFER_SIZE. The max_buffer_size (for the buffered writer) defaults to twice the buffer size. cCs7|iti|||ti||||dS(N(ROR!RR (RR1RR((s/usr/lib64/python2.6/io.pyRs icCs|i|ioO|djoB|iiiz'|ii|it|idWdQXn|ii||}|iiiz|i WdQX|S(Ni( RJRRRWRVR1RFRRR(RRDRE((s/usr/lib64/python2.6/io.pyRFs -cCs6|io|iit|iSti|SdS(N(RR1RGRR!(R((s/usr/lib64/python2.6/io.pyRGs cCs-|djo|i}nti||S(N(RRGR RH(RRD((s/usr/lib64/python2.6/io.pyRHs cCs1|djo d}n|iti||S(Ni(RRJR!Rb(RR\((s/usr/lib64/python2.6/io.pyRbs   cCs|iti||S(N(RJR!Rz(RRf((s/usr/lib64/python2.6/io.pyRzs cCs|iti||S(N(RJR!RX(RR\((s/usr/lib64/python2.6/io.pyRXs cCs|iti||S(N(RJR!R(RR\((s/usr/lib64/python2.6/io.pyRs cCsf|ioL|iiiz1|ii|it|id|iWdQXnt i ||S(Ni( RRRWRVR1RFRRRR Rq(RRf((s/usr/lib64/python2.6/io.pyRqs  #N(R R R RRRRFRGRHRbRzRXRRq(((s/usr/lib64/python2.6/io.pyRs      t TextIOBasecBsVeZdZddZdZddZdZedZ edZ RS( uBase class for text I/O. This class provides a character and line based interface to stream I/O. There is no readinto method because Python's character strings are immutable. There is no public constructor. icCs|iddS(uRead at most n characters from stream. Read from underlying buffer until we have n characters or we hit EOF. If n is negative or omitted, read until EOF. ureadN(RC(RR\((s/usr/lib64/python2.6/io.pyRbscCs|iddS(uWrite string s to stream.uwriteN(RC(Rts((s/usr/lib64/python2.6/io.pyRqscCs|iddS(uTruncate size to pos.utruncateN(RC(RRD((s/usr/lib64/python2.6/io.pyRHscCs|iddS(u_Read until newline or EOF. Returns an empty string if EOF is hit immediately. ureadlineN(RC(R((s/usr/lib64/python2.6/io.pyRgscCsdS(uSubclasses should override.N(R(R((s/usr/lib64/python2.6/io.pyR&scCsdS(uLine endings translated so far. Only line endings translated during reading are considered. Subclasses should override. N(R(R((s/usr/lib64/python2.6/io.pytnewlines sN( R R R RbRqRRHRgRvR&R(((s/usr/lib64/python2.6/io.pyRs    tIncrementalNewlineDecodercBsbeZdZddZedZdZdZdZdZ dZ d Z e d Z RS( u(Codec used when reading a file in universal newlines mode. It wraps another incremental decoder, translating \r\n and \r into \n. It also records the types of newlines encountered. When used with translate=False, it ensures that the newline sequence is returned in one piece. ustrictcCs>tii|d|||_||_d|_t|_dS(NR'i(tcodecstIncrementalDecoderRt translatetdecodertseennlRt pendingcr(RRRR'((s/usr/lib64/python2.6/io.pyRs    cCs,|ii|d|}|io%|p|od|}t|_n|ido| o|d }t|_n|id}|id|}|id|}|i|o|i|o|i B|o|i BO_|i o>|o|i dd}n|o|i dd}q(n|S(Ntfinalu iu u ( RtdecodeRRRcRtcountRt_LFt_CRt_CRLFRtreplace(RtinputRtoutputtcrlftcrtlf((s/usr/lib64/python2.6/io.pyR%s$    . cCsA|ii\}}|dK}|io|dO}n||fS(Ni(RtgetstateR(RRtflag((s/usr/lib64/python2.6/io.pyRAs   cCs=|\}}t|d@|_|ii||d?fdS(Ni(tboolRRtsetstate(RtstateRR((s/usr/lib64/python2.6/io.pyRHs cCs#d|_t|_|iidS(Ni(RRRRtreset(R((s/usr/lib64/python2.6/io.pyRMs  iiic Cs#ddddddddf|iS(Nu u u (u u (u u (u u (u u u (RR(R((s/usr/lib64/python2.6/io.pyRVs(R R R RRRRRRRRRRvR(((s/usr/lib64/python2.6/io.pyRs     R"cBsdeZdZdZd d d edZedZedZ edZ dZ dZ dZ d Zd Zed Zed Zd ZdZdZdZdZdZd dZdZdZdddddZdZdZd dZddZd dZ dZ!d dZ"edZ#RS(!uCharacter and line based layer over a BufferedIOBase object, buffer. encoding gives the name of the encoding that the stream will be decoded or encoded with. It defaults to locale.getpreferredencoding. errors determines the strictness of encoding and decoding (see the codecs.register) and defaults to "strict". newline can be None, '', '\n', '\r', or '\r\n'. It controls the handling of line endings. If it is None, universal newlines is enabled. With this enabled, on input, the lines endings '\n', '\r', or '\r\n' are translated to '\n' before being returned to the caller. Conversely, on output, '\n' is translated to the system default line separator, os.linesep. If newline is any other of its legal values, that newline becomes the newline when the file is read and it is returned untranslated. On output, '\n' is converted to the newline. If line_buffering is True, a call to flush is implied when a call to write contains a newline character. ic Cs,|d jotd|fn|djoyti|i}Wnttfj onX|djo<yddk}Wntj o d}qX|i }qnt |t ptd|n|djo d }n%t |t ptd |n||_ ||_ ||_||_| |_|dj|_||_|dj|_|pti|_d|_d|_d|_d |_d|_|i i|_|_|io^|ioQ|i i}|d jo1y|i i!d Wq$t"j oq$Xq(ndS( Nuu u u uillegal newline value: %riuasciiuinvalid encoding: %rustrictuinvalid errors: %ri(Nuu u u (#RRRtdevice_encodingRRR?tlocalet ImportErrortgetpreferredencodingR R R4t_line_bufferingt _encodingt_errorst_readuniversalt_readtranslatet_readnlt_writetranslatetlinesept_writenlt_encodert_decodert_decoded_charst_decoded_chars_usedt _snapshotRMt _seekablet_tellingRRRGt _get_encoderRt LookupError(RR4R&R'R(R2Rtposition((s/usr/lib64/python2.6/io.pyR}sR                  cCs|iS(N(R(R((s/usr/lib64/python2.6/io.pyR&scCs|iS(N(R(R((s/usr/lib64/python2.6/io.pyR'scCs|iS(N(R(R((s/usr/lib64/python2.6/io.pyR2scCs|iS(N(R(R((s/usr/lib64/python2.6/io.pyRMscCs |iiS(N(R4RP(R((s/usr/lib64/python2.6/io.pyRPscCs |iiS(N(R4RR(R((s/usr/lib64/python2.6/io.pyRRscCs|ii|i|_dS(N(R4RJRR(R((s/usr/lib64/python2.6/io.pyRJs cCs)|ip|i|iindS(N(RTRJR4RK(R((s/usr/lib64/python2.6/io.pyRKs  cCs |iiS(N(R4RT(R((s/usr/lib64/python2.6/io.pyRTscCs |iiS(N(R4RB(R((s/usr/lib64/python2.6/io.pyRBscCs |iiS(N(R4R(R((s/usr/lib64/python2.6/io.pyRscCs |iiS(N(R4R(R((s/usr/lib64/python2.6/io.pyRscCs3|iotdnt|tptd|iint|}|ip |i o d|j}|o3|io)|i djo|i d|i }n|i p |i }|i|}|ii||i o"|p d|jo|ind|_|io|iin|S(Nuwrite to closed fileucan't write %s to text streamu u (RTRR RRRAR RRRRRRRtencodeR4RqRJRRRR(RRtlengththaslftencoderRf((s/usr/lib64/python2.6/io.pyRqs$   !  cCs+ti|i}||i|_|iS(N(RtgetincrementalencoderRRR(Rt make_encoder((s/usr/lib64/python2.6/io.pyRscCsNti|i}||i}|iot||i}n||_|S(N(RtgetincrementaldecoderRRRRRR(Rt make_decoderR((s/usr/lib64/python2.6/io.pyt _get_decoders   cCs||_d|_dS(uSet the _decoded_chars buffer.iN(RR(Rtchars((s/usr/lib64/python2.6/io.pyt_set_decoded_chars s cCsT|i}|djo|i|}n|i|||!}|it|7_|S(u'Advance into the _decoded_chars buffer.N(RRRR(RR\toffsetR((s/usr/lib64/python2.6/io.pyt_get_decoded_charss   cCs3|i|jotdn|i|8_dS(u!Rewind the _decoded_chars buffer.u"rewind decoded_chars out of boundsN(RtAssertionError(RR\((s/usr/lib64/python2.6/io.pyt_rewind_decoded_charsscCs|idjotdn|io|ii\}}n|ii|i}| }|i|ii |||io|||f|_ n| S(ur Read and decode the next chunk of data from the BufferedReader. The return value is True unless EOF was reached. The decoded string is placed in self._decoded_chars (replacing its previous value). The entire input chunk is sent to the decoder, though some of it may remain buffered in the decoder, yet to be converted. u no decoderN( RRRRRR4Rt _CHUNK_SIZERRR(Rt dec_buffert dec_flagst input_chunkteof((s/usr/lib64/python2.6/io.pyt _read_chunk s   icCs*||d>B|d>B|d>Bt|d>BS(Ni@iii(R(RRRt bytes_to_feedtneed_eoft chars_to_skip((s/usr/lib64/python2.6/io.pyt _pack_cookieAscCsgt|d\}}t|d\}}t|d\}}t|d\}}|||||fS(Nii@llll(tdivmod(RtbiginttrestRRRRR((s/usr/lib64/python2.6/io.pyt_unpack_cookieKs c Cs$|iptdn|iptdn|i|ii}|i}|djp|idjo|i ot dn|S|i\}}|t |8}|i }|djo|i ||S|i}z+|id|f|}|dd}} } d} x|D]} | d7} | t |i| 7} |i\} }| o9| |jo,|| 7}|| 8}|dd}} } n| |joPq!q!W| t |iddt7} d} | |jotdn|i ||| | |SWd|i|XdS( Nu!underlying stream is not seekableu(telling position disabled by next() callupending decoded textiRiRu'can't reconstruct logical file position(RRRRJR4RGRRRRRRRRRRRR(RRRRt next_inputRt saved_statet start_post start_flagst bytes_fedt chars_decodedRt next_byteR((s/usr/lib64/python2.6/io.pyRGRsP              cCs7|i|djo|i}n|ii|S(N(RJRRGR4RH(RRD((s/usr/lib64/python2.6/io.pyRHs  c Cs|iotdn|iptdn|djo3|djotdnd}|i}n|djor|djotdn|i|iidd}|idd|_ |i o|i i n|S|djotd |fn|djotd |fn|i|i |\}}}}}|ii||idd|_ |i p|p|oB|i p |i|_ |i id |f|d f|_ n|op|ii|} |i|i i| ||| f|_ t|i|jotd n||_ny|ip |i} Wntj on*X|djo| idn | i |S( Nutell on closed fileu!underlying stream is not seekableiiu#can't do nonzero cur-relative seeksiu#can't do nonzero end-relative seeksuu(invalid whence (%r, should be 0, 1 or 2)unegative seek position %rRu#can't restore logical file position(RTRRRRGRJR4RFRRRRRRRRRbRRRRRRR( RtcookieRERRRRRRRR((s/usr/lib64/python2.6/io.pyRFsb                  cCs|djo d}n|ip |i}y |iWntj otdnX|djoC|i|i|ii dt }|i dd|_ |St }|i|}xJt||jo6| o.|i }||i|t|7}qW|SdS(Niuan integer is requirediRu(RRRRyRRRRR4RbRRRRRR(RR\RtresultR((s/usr/lib64/python2.6/io.pyRbs(        "cCs?t|_|i}|pd|_|i|_tn|S(N(RRRgRRRRi(RRj((s/usr/lib64/python2.6/io.pyRks     c Cs|iotdn|djo d}nt|ttfptdn|i}d}|ip |i }d}}xt o|i o>|i d|}|djo|d}Pqt |}n|io|i d|}|i d|}|djo,|djot |}q|d}Pq|djo|d}Pq||jo|d}Pq||djo|d}Pq|d}Pn8|i |i}|djo|t |i}Pn|djot ||jo |}Pnd } x!|io|ioPqqW|io||i7}q|id d|_|SqW|djo||jo |}n|it |||| S( Nuread from closed fileiulimit must be an integeriu iu iu(RTRRR RR`RRRRRRRYRRRRRRRR( RR]RjtstartRRDtendpostnlpostcrpost more_line((s/usr/lib64/python2.6/io.pyRgst                            cCs|io |iiSdS(N(RRR(R((s/usr/lib64/python2.6/io.pyRTsN($R R R RRRRRvR&R'R2RMRPRRRJRKRTRBRRRqRRRRRRRRRGRHRFRbRkRgR(((s/usr/lib64/python2.6/io.pyR"csB  <            !  >  F  WtStringIOcBs,eZdZdddddZdZRS(uAn in-memory stream for text. The initial_value argument sets the value of object. The other arguments are like those of TextIOWrapper's constructor. uuutf-8ustrictu cCstt|itd|d|d||djo t|_n|o>t|tpt|}n|i ||i dndS(NR&R'R(i( tsuperRRRRRRR RRqRF(Rt initial_valueR&R'R(((s/usr/lib64/python2.6/io.pyR_s   cCs)|i|iii|i|iS(N(RJR4RRRR(R((s/usr/lib64/python2.6/io.pyRos (R R R RR(((s/usr/lib64/python2.6/io.pyRXs(+R t __future__RRt __author__t__all__RRsRR|RRttypeRuRRRRR5R6R:RR?tobjectR@RwR}RRRRRRRR!R RRRRRR"R(((s/usr/lib64/python2.6/io.pyt#sR           7HJl   }YBD0L