/usr/lib/python2.6
NameSizeModeActions
bsddb/-0755rm
compiler/-0755rm
config/-0755rm
ctypes/-0755rm
curses/-0755rm
distutils/-0755rm
email/-0755rm
encodings/-0755rm
hotshot/-0755rm
idlelib/-0755rm
json/-0755rm
lib-dynload/-0755rm
lib2to3/-0755rm
logging/-0755rm
multiprocessing/-0755rm
plat-linux2/-0755rm
site-packages/-0755rm
sqlite3/-0755rm
test/-0755rm
wsgiref/-0755rm
xml/-0755rm
abc.py70340644editdlrm
abc.pyc60490644editdlrm
abc.pyo59910644editdlrm
aifc.py331880644editdlrm
aifc.pyc294240644editdlrm
aifc.pyo294240644editdlrm
anydbm.py26200644editdlrm
anydbm.pyc27690644editdlrm
anydbm.pyo27690644editdlrm
ast.py113470644editdlrm
ast.pyc127320644editdlrm
ast.pyo127320644editdlrm
asynchat.py114020644editdlrm
asynchat.pyc86770644editdlrm
asynchat.pyo86770644editdlrm
asyncore.py200610644editdlrm
asyncore.pyc183340644editdlrm
asyncore.pyo183340644editdlrm
atexit.py17050644editdlrm
atexit.pyc22030644editdlrm
atexit.pyo22030644editdlrm
audiodev.py75970644editdlrm
audiodev.pyc84830644editdlrm
audiodev.pyo84830644editdlrm
base64.py113350755editdlrm
base64.pyc109670644editdlrm
base64.pyo109670644editdlrm
BaseHTTPServer.py219740644editdlrm
BaseHTTPServer.pyc215350644editdlrm
BaseHTTPServer.pyo215350644editdlrm
Bastion.py57440644editdlrm
Bastion.pyc66370644editdlrm
Bastion.pyo66370644editdlrm
bdb.py205970644editdlrm
bdb.pyc184490644editdlrm
bdb.pyo184490644editdlrm
binhex.py148780644editdlrm
binhex.pyc157730644editdlrm
binhex.pyo157730644editdlrm
bisect.py26620644editdlrm
bisect.pyc31630644editdlrm
bisect.pyo31630644editdlrm
calendar.py231100644editdlrm
calendar.pyc280070644editdlrm
calendar.pyo280070644editdlrm
cgi.py344780755editdlrm
cgi.pyc326800644editdlrm
cgi.pyo326800644editdlrm
CGIHTTPServer.py127730644editdlrm
CGIHTTPServer.pyc107940644editdlrm
CGIHTTPServer.pyo107940644editdlrm
cgitb.py121550644editdlrm
cgitb.pyc124250644editdlrm
cgitb.pyo124250644editdlrm
chunk.py53720644editdlrm
chunk.pyc56230644editdlrm
chunk.pyo56230644editdlrm
cmd.py149620644editdlrm
cmd.pyc139140644editdlrm
cmd.pyo139140644editdlrm
code.py102170644editdlrm
code.pyc103950644editdlrm
code.pyo103950644editdlrm
codecs.py352660644editdlrm
codecs.pyc365330644editdlrm
codecs.pyo365330644editdlrm
codeop.py59990644editdlrm
codeop.pyc66160644editdlrm
codeop.pyo66160644editdlrm
collections.py137300644editdlrm
collections.pyc143920644editdlrm
collections.pyo143390644editdlrm
colorsys.py34590644editdlrm
colorsys.pyc40250644editdlrm
colorsys.pyo40250644editdlrm
commands.py25430644editdlrm
commands.pyc24770644editdlrm
commands.pyo24770644editdlrm
compileall.py52850644editdlrm
compileall.pyc49890644editdlrm
compileall.pyo49890644editdlrm
ConfigParser.py259890644editdlrm
ConfigParser.pyc237550644editdlrm
ConfigParser.pyo237550644editdlrm
contextlib.py41360644editdlrm
contextlib.pyc41270644editdlrm
contextlib.pyo41270644editdlrm
Cookie.py250540644editdlrm
Cookie.pyc220670644editdlrm
Cookie.pyo220670644editdlrm
cookielib.py647260644editdlrm
cookielib.pyc551760644editdlrm
cookielib.pyo549850644editdlrm
copy.py111770644editdlrm
copy.pyc116290644editdlrm
copy.pyo115330644editdlrm
copy_reg.py68000644editdlrm
copy_reg.pyc51560644editdlrm
copy_reg.pyo51100644editdlrm
cProfile.py63370755editdlrm
cProfile.pyc62110644editdlrm
cProfile.pyo62110644editdlrm
crypt.py22290644editdlrm
crypt.pyc30430644editdlrm
crypt.pyo30430644editdlrm
csv.py157300644editdlrm
csv.pyc131700644editdlrm
csv.pyo131700644editdlrm
dbhash.py5350644editdlrm
dbhash.pyc7560644editdlrm
dbhash.pyo7560644editdlrm
decimal.py1992730644editdlrm
decimal.pyc1551850644editdlrm
decimal.pyo1551190644editdlrm
difflib.py810800644editdlrm
difflib.pyc610930644editdlrm
difflib.pyo610390644editdlrm
dircache.py11260644editdlrm
dircache.pyc15760644editdlrm
dircache.pyo15760644editdlrm
dis.py64490644editdlrm
dis.pyc63500644editdlrm
dis.pyo63500644editdlrm
doctest.py1015160644editdlrm
doctest.pyc807820644editdlrm
doctest.pyo804940644editdlrm
DocXMLRPCServer.py105990644editdlrm
DocXMLRPCServer.pyc99210644editdlrm
DocXMLRPCServer.pyo98130644editdlrm
dumbdbm.py88200644editdlrm
dumbdbm.pyc65470644editdlrm
dumbdbm.pyo65470644editdlrm
dummy_thread.py44180644editdlrm
dummy_thread.pyc53830644editdlrm
dummy_thread.pyo53830644editdlrm
dummy_threading.py28040644editdlrm
dummy_threading.pyc12950644editdlrm
dummy_threading.pyo12950644editdlrm
filecmp.py94700644editdlrm
filecmp.pyc95920644editdlrm
filecmp.pyo95920644editdlrm
fileinput.py141430644editdlrm
fileinput.pyc148700644editdlrm
fileinput.pyo148700644editdlrm
fnmatch.py32390644editdlrm
fnmatch.pyc35670644editdlrm
fnmatch.pyo35670644editdlrm
formatter.py149110644editdlrm
formatter.pyc191490644editdlrm
formatter.pyo191490644editdlrm
fpformat.py46990644editdlrm
fpformat.pyc47190644editdlrm
fpformat.pyo47190644editdlrm
fractions.py200730644editdlrm
fractions.pyc180410644editdlrm
fractions.pyo180410644editdlrm
ftplib.py291970644editdlrm
ftplib.pyc283870644editdlrm
ftplib.pyo283870644editdlrm
functools.py21620644editdlrm
functools.pyc19210644editdlrm
functools.pyo19210644editdlrm
genericpath.py30200644editdlrm
genericpath.pyc32720644editdlrm
genericpath.pyo32720644editdlrm
getopt.py73280644editdlrm
getopt.pyc67100644editdlrm
getopt.pyo66630644editdlrm
getpass.py55340644editdlrm
getpass.pyc47400644editdlrm
getpass.pyo47400644editdlrm
gettext.py199680644editdlrm
gettext.pyc156740644editdlrm
gettext.pyo156740644editdlrm
glob.py22490644editdlrm
glob.pyc23950644editdlrm
glob.pyo23950644editdlrm
gzip.py167540644editdlrm
gzip.pyc143220644editdlrm
gzip.pyo143220644editdlrm
hashlib.py44270644editdlrm
hashlib.pyc39750644editdlrm
hashlib.pyo39750644editdlrm
heapq.py159950644editdlrm
heapq.pyc126680644editdlrm
heapq.pyo126680644editdlrm
hmac.py45310644editdlrm
hmac.pyc44890644editdlrm
hmac.pyo44890644editdlrm
htmlentitydefs.py180540644editdlrm
htmlentitydefs.pyc63690644editdlrm
htmlentitydefs.pyo63690644editdlrm
htmllib.py128690644editdlrm
htmllib.pyc202020644editdlrm
htmllib.pyo202020644editdlrm
HTMLParser.py135760644editdlrm
HTMLParser.pyc121980644editdlrm
HTMLParser.pyo118900644editdlrm
httplib.py487970644editdlrm
httplib.pyc375780644editdlrm
httplib.pyo373820644editdlrm
ihooks.py174520644editdlrm
ihooks.pyc206990644editdlrm
ihooks.pyo206200644editdlrm
imaplib.py477710644editdlrm
imaplib.pyc450270644editdlrm
imaplib.pyo422870644editdlrm
imghdr.py35440644editdlrm
imghdr.pyc48730644editdlrm
imghdr.pyo48730644editdlrm
imputil.py260090644editdlrm
imputil.pyc159590644editdlrm
imputil.pyo157870644editdlrm
inspect.py381890644editdlrm
inspect.pyc370330644editdlrm
inspect.pyo370330644editdlrm
io.py661650644editdlrm
io.pyc627120644editdlrm
io.pyo627120644editdlrm
keyword.py19970755editdlrm
keyword.pyc21130644editdlrm
keyword.pyo21130644editdlrm
linecache.py41280644editdlrm
linecache.pyc32560644editdlrm
linecache.pyo32560644editdlrm
locale.py826740644editdlrm
locale.pyc466200644editdlrm
locale.pyo466200644editdlrm
macpath.py62530644editdlrm
macpath.pyc76690644editdlrm
macpath.pyo76690644editdlrm
macurl2path.py32750644editdlrm
macurl2path.pyc28150644editdlrm
macurl2path.pyo28150644editdlrm
mailbox.py758240644editdlrm
mailbox.pyc756330644editdlrm
mailbox.pyo755840644editdlrm
mailcap.py84020644editdlrm
mailcap.pyc80510644editdlrm
mailcap.pyo80510644editdlrm
markupbase.py143500644editdlrm
markupbase.pyc94300644editdlrm
markupbase.pyo92360644editdlrm
md5.py4100644editdlrm
md5.pyc3760644editdlrm
md5.pyo3760644editdlrm
mhlib.py334340644editdlrm
mhlib.pyc339810644editdlrm
mhlib.pyo339810644editdlrm
mimetools.py71680644editdlrm
mimetools.pyc82800644editdlrm
mimetools.pyo82800644editdlrm
mimetypes.py188220644editdlrm
mimetypes.pyc168380644editdlrm
mimetypes.pyo168380644editdlrm
MimeWriter.py64820644editdlrm
MimeWriter.pyc73650644editdlrm
MimeWriter.pyo73650644editdlrm
mimify.py150240755editdlrm
mimify.pyc121890644editdlrm
mimify.pyo121890644editdlrm
modulefinder.py242830644editdlrm
modulefinder.pyc189390644editdlrm
modulefinder.pyo188510644editdlrm
multifile.py48200644editdlrm
multifile.pyc54490644editdlrm
multifile.pyo54050644editdlrm
mutex.py18660644editdlrm
mutex.pyc25120644editdlrm
mutex.pyo25120644editdlrm
netrc.py41110644editdlrm
netrc.pyc35860644editdlrm
netrc.pyo35860644editdlrm
new.py7060644editdlrm
new.pyc9080644editdlrm
new.pyo9080644editdlrm
nntplib.py214700644editdlrm
nntplib.pyc210910644editdlrm
nntplib.pyo210910644editdlrm
ntpath.py177520644editdlrm
ntpath.pyc115820644editdlrm
ntpath.pyo115350644editdlrm
nturl2path.py22390644editdlrm
nturl2path.pyc17710644editdlrm
nturl2path.pyo17710644editdlrm
numbers.py102710644editdlrm
numbers.pyc138400644editdlrm
numbers.pyo138400644editdlrm
opcode.py52480644editdlrm
opcode.pyc59070644editdlrm
opcode.pyo59070644editdlrm
optparse.py608490644editdlrm
optparse.pyc539590644editdlrm
optparse.pyo538770644editdlrm
ordereddict.py360644editdlrm
ordereddict.pyc1830644editdlrm
ordereddict.pyo1830644editdlrm
os.py258020644editdlrm
os.pyc257020644editdlrm
os.pyo257020644editdlrm
os2emxpath.py46030644editdlrm
os2emxpath.pyc45180644editdlrm
os2emxpath.pyo45180644editdlrm
pdb.doc78990644editdlrm
pdb.py453330755editdlrm
pdb.pyc435850644editdlrm
pdb.pyo435850644editdlrm
pickle.py448110644editdlrm
pickle.pyc384370644editdlrm
pickle.pyo382320644editdlrm
pickletools.py743480644editdlrm
pickletools.pyc570790644editdlrm
pickletools.pyo561820644editdlrm
pipes.py96470644editdlrm
pipes.pyc94280644editdlrm
pipes.pyo94280644editdlrm
pkgutil.py200010644editdlrm
pkgutil.pyc189540644editdlrm
pkgutil.pyo189540644editdlrm
platform.py526300755editdlrm
platform.pyc386990644editdlrm
platform.pyo386990644editdlrm
plistlib.py158060644editdlrm
plistlib.pyc199260644editdlrm
plistlib.pyo198360644editdlrm
popen2.py84160644editdlrm
popen2.pyc90320644editdlrm
popen2.pyo89880644editdlrm
poplib.py128250644editdlrm
poplib.pyc133520644editdlrm
poplib.pyo133520644editdlrm
posixfile.py80030644editdlrm
posixfile.pyc77000644editdlrm
posixfile.pyo77000644editdlrm
posixpath.py131190644editdlrm
posixpath.pyc111420644editdlrm
posixpath.pyo111420644editdlrm
pprint.py119320644editdlrm
pprint.pyc103560644editdlrm
pprint.pyo101810644editdlrm
profile.py235100755editdlrm
profile.pyc166000644editdlrm
profile.pyo163550644editdlrm
pstats.py273100644editdlrm
pstats.pyc252120644editdlrm
pstats.pyo252120644editdlrm
pty.py48690644editdlrm
pty.pyc48990644editdlrm
pty.pyo48990644editdlrm
pyclbr.py132820644editdlrm
pyclbr.pyc97060644editdlrm
pyclbr.pyo97060644editdlrm
pydoc.py924320755editdlrm
pydoc.pyc906620644editdlrm
pydoc.pyo905940644editdlrm
pydoc_topics.py4231260644editdlrm
pydoc_topics.pyc4075860644editdlrm
pydoc_topics.pyo4075860644editdlrm
py_compile.py56330644editdlrm
py_compile.pyc65360644editdlrm
py_compile.pyo65360644editdlrm
Queue.py85740644editdlrm
Queue.pyc93910644editdlrm
Queue.pyo93910644editdlrm
quopri.py69720755editdlrm
quopri.pyc66660644editdlrm
quopri.pyo66660644editdlrm
random.py319660644editdlrm
random.pyc250240644editdlrm
random.pyo250240644editdlrm
re.py129660644editdlrm
re.pyc131220644editdlrm
re.pyo131220644editdlrm
repr.py42960644editdlrm
repr.pyc54000644editdlrm
repr.pyo54000644editdlrm
rexec.py201520644editdlrm
rexec.pyc241020644editdlrm
rexec.pyo241020644editdlrm
rfc822.py332950644editdlrm
rfc822.pyc319900644editdlrm
rfc822.pyo319900644editdlrm
rlcompleter.py58660644editdlrm
rlcompleter.pyc60570644editdlrm
rlcompleter.pyo60570644editdlrm
robotparser.py70140644editdlrm
robotparser.pyc78040644editdlrm
robotparser.pyo78040644editdlrm
runpy.py54130644editdlrm
runpy.pyc39650644editdlrm
runpy.pyo39650644editdlrm
sched.py50910644editdlrm
sched.pyc49870644editdlrm
sched.pyo49870644editdlrm
sets.py190500644editdlrm
sets.pyc168850644editdlrm
sets.pyo168850644editdlrm
sgmllib.py178840644editdlrm
sgmllib.pyc155040644editdlrm
sgmllib.pyo155040644editdlrm
sha.py4450644editdlrm
sha.pyc4190644editdlrm
sha.pyo4190644editdlrm
shelve.py80780644editdlrm
shelve.pyc102420644editdlrm
shelve.pyo102420644editdlrm
shlex.py111370644editdlrm
shlex.pyc76840644editdlrm
shlex.pyo76840644editdlrm
shutil.py86320644editdlrm
shutil.pyc95190644editdlrm
shutil.pyo95190644editdlrm
SimpleHTTPServer.py74220644editdlrm
SimpleHTTPServer.pyc77440644editdlrm
SimpleHTTPServer.pyo77440644editdlrm
SimpleXMLRPCServer.py219920644editdlrm
SimpleXMLRPCServer.pyc195750644editdlrm
SimpleXMLRPCServer.pyo195750644editdlrm
site.py189270644editdlrm
site.pyc186630644editdlrm
site.pyo186630644editdlrm
smtpd.py189200755editdlrm
smtpd.pyc161260644editdlrm
smtpd.pyo161260644editdlrm
smtplib.py309240755editdlrm
smtplib.pyc296290644editdlrm
smtplib.pyo296290644editdlrm
sndhdr.py59730644editdlrm
sndhdr.pyc73860644editdlrm
sndhdr.pyo73860644editdlrm
socket.py201490644editdlrm
socket.pyc160670644editdlrm
socket.pyo159820644editdlrm
SocketServer.py223260644editdlrm
SocketServer.pyc230350644editdlrm
SocketServer.pyo230350644editdlrm
sre.py3840644editdlrm
sre.pyc5170644editdlrm
sre.pyo5170644editdlrm
sre_compile.py165070644editdlrm
sre_compile.pyc114550644editdlrm
sre_compile.pyo113420644editdlrm
sre_constants.py71370644editdlrm
sre_constants.pyc60830644editdlrm
sre_constants.pyo60830644editdlrm
sre_parse.py268780644editdlrm
sre_parse.pyc196220644editdlrm
sre_parse.pyo196220644editdlrm
ssl.py166770644editdlrm
ssl.pyc142180644editdlrm
ssl.pyo142180644editdlrm
stat.py17180644editdlrm
stat.pyc26830644editdlrm
stat.pyo26830644editdlrm
statvfs.py8980644editdlrm
statvfs.pyc6180644editdlrm
statvfs.pyo6180644editdlrm
string.py207450644editdlrm
string.pyc199640644editdlrm
string.pyo199640644editdlrm
StringIO.py106210644editdlrm
StringIO.pyc114940644editdlrm
StringIO.pyo114940644editdlrm
stringold.py124490644editdlrm
stringold.pyc125390644editdlrm
stringold.pyo125390644editdlrm
stringprep.py135220644editdlrm
stringprep.pyc144860644editdlrm
stringprep.pyo144120644editdlrm
struct.py820644editdlrm
struct.pyc2370644editdlrm
struct.pyo2370644editdlrm
subprocess.py579450644editdlrm
subprocess.pyc409750644editdlrm
subprocess.pyo409180644editdlrm
sunau.py165370644editdlrm
sunau.pyc179760644editdlrm
sunau.pyo179760644editdlrm
sunaudio.py13990644editdlrm
sunaudio.pyc19870644editdlrm
sunaudio.pyo19870644editdlrm
symbol.py20500755editdlrm
symbol.pyc30210644editdlrm
symbol.pyo30210644editdlrm
symtable.py79110644editdlrm
symtable.pyc125030644editdlrm
symtable.pyo123730644editdlrm
tabnanny.py113390755editdlrm
tabnanny.pyc82930644editdlrm
tabnanny.pyo82930644editdlrm
tarfile.py877860644editdlrm
tarfile.pyc735960644editdlrm
tarfile.pyo735960644editdlrm
telnetlib.py218080644editdlrm
telnetlib.pyc198550644editdlrm
telnetlib.pyo198550644editdlrm
tempfile.py177740644editdlrm
tempfile.pyc194630644editdlrm
tempfile.pyo194630644editdlrm
textwrap.py168890644editdlrm
textwrap.pyc117660644editdlrm
textwrap.pyo116740644editdlrm
this.py10020644editdlrm
this.pyc12390644editdlrm
this.pyo12390644editdlrm
threading.py318080644editdlrm
threading.pyc279560644editdlrm
threading.pyo258840644editdlrm
timeit.py120030644editdlrm
timeit.pyc118010644editdlrm
timeit.pyo118010644editdlrm
toaiff.py31420644editdlrm
toaiff.pyc31260644editdlrm
toaiff.pyo31260644editdlrm
token.py29470755editdlrm
token.pyc38300644editdlrm
token.pyo38300644editdlrm
tokenize.py163260644editdlrm
tokenize.pyc139860644editdlrm
tokenize.pyo138930644editdlrm
trace.py303250644editdlrm
trace.pyc229890644editdlrm
trace.pyo229270644editdlrm
traceback.py112110644editdlrm
traceback.pyc116370644editdlrm
traceback.pyo116370644editdlrm
tty.py8790644editdlrm
tty.pyc13110644editdlrm
tty.pyo13110644editdlrm
types.py23230644editdlrm
types.pyc26080644editdlrm
types.pyo26080644editdlrm
unittest.py311570644editdlrm
unittest.pyc346560644editdlrm
unittest.pyo346560644editdlrm
urllib.py590220644editdlrm
urllib.pyc511420644editdlrm
urllib.pyo510480644editdlrm
urllib2.py508660644editdlrm
urllib2.pyc455690644editdlrm
urllib2.pyo454750644editdlrm
urlparse.py156180644editdlrm
urlparse.pyc147270644editdlrm
urlparse.pyo147270644editdlrm
user.py16270644editdlrm
user.pyc17340644editdlrm
user.pyo17340644editdlrm
UserDict.py57780644editdlrm
UserDict.pyc88020644editdlrm
UserDict.pyo88020644editdlrm
UserList.py36440644editdlrm
UserList.pyc65350644editdlrm
UserList.pyo65350644editdlrm
UserString.py96910755editdlrm
UserString.pyc147860644editdlrm
UserString.pyo147860644editdlrm
uu.py59420755editdlrm
uu.pyc42270644editdlrm
uu.pyo42270644editdlrm
uuid.py209440644editdlrm
uuid.pyc212050644editdlrm
uuid.pyo212050644editdlrm
warnings.py141720644editdlrm
warnings.pyc129960644editdlrm
warnings.pyo121590644editdlrm
wave.py179520644editdlrm
wave.pyc193360644editdlrm
wave.pyo193360644editdlrm
weakref.py100870644editdlrm
weakref.pyc132770644editdlrm
weakref.pyo132770644editdlrm
webbrowser.py210730644editdlrm
webbrowser.pyc186690644editdlrm
webbrowser.pyo186220644editdlrm
whichdb.py33530644editdlrm
whichdb.pyc22430644editdlrm
whichdb.pyo22430644editdlrm
xdrlib.py55130644editdlrm
xdrlib.pyc90790644editdlrm
xdrlib.pyo90790644editdlrm
xmllib.py348650644editdlrm
xmllib.pyc271660644editdlrm
xmllib.pyo271660644editdlrm
xmlrpclib.py477750644editdlrm
xmlrpclib.pyc412300644editdlrm
xmlrpclib.pyo410470644editdlrm
zipfile.py530920644editdlrm
zipfile.pyc375470644editdlrm
zipfile.pyo375470644editdlrm
_abcoll.py142420644editdlrm
_abcoll.pyc213950644editdlrm
_abcoll.pyo213950644editdlrm
_LWPCookieJar.py65530644editdlrm
_LWPCookieJar.pyc55890644editdlrm
_LWPCookieJar.pyo55890644editdlrm
_MozillaCookieJar.py58090644editdlrm
_MozillaCookieJar.pyc45090644editdlrm
_MozillaCookieJar.pyo44680644editdlrm
_strptime.py197540644editdlrm
_strptime.pyc149260644editdlrm
_strptime.pyo149260644editdlrm
_threading_local.py71140644editdlrm
_threading_local.pyc63670644editdlrm
_threading_local.pyo63670644editdlrm
__future__.py43800644editdlrm
__future__.pyc42210644editdlrm
__future__.pyo42210644editdlrm
__phello__.foo.py640644editdlrm
__phello__.foo.pyc1230644editdlrm
__phello__.foo.pyo1230644editdlrm
Edit: /usr/lib/python2.6/io.pyc (62712B)
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/lib/python2.6/io.pyRLs(t__name__t __module__t__doc__R(((s/usr/lib/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/lib/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/lib/python2.6/io.pyt__get__s(R R R R9(((s/usr/lib/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/lib/python2.6/io.pyt__new__s(R R R R6R>(((s/usr/lib/python2.6/io.pyR:s tUnsupportedOperationcBseZRS((R R (((s/usr/lib/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/lib/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/lib/python2.6/io.pytseekQs cCs|iddS(uReturn current stream position.ii(RF(R((s/usr/lib/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/lib/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/lib/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/lib/python2.6/io.pytclosezs  cCsy|iWnnXdS(uDestructor. Calls close().N(RK(R((s/usr/lib/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/lib/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/lib/python2.6/io.pyt_checkSeekables cCstS(udReturn whether object was opened for reading. If False, read() will raise IOError. (R(R((s/usr/lib/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/lib/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/lib/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/lib/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/lib/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/lib/python2.6/io.pyt _checkCloseds cCs|i|S(u+Context management protocol. Returns self.(RU(R((s/usr/lib/python2.6/io.pyt __enter__s cGs|idS(u+Context management protocol. Calls close()N(RK(RR<((s/usr/lib/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/lib/python2.6/io.pyRscCs|itS(uiReturn whether this is an 'interactive' stream. Return False if it can't be determined. (RUR(R((s/usr/lib/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/lib/python2.6/io.pyt nreadaheads  cSsdS(Ni((((s/usr/lib/python2.6/io.pyR^siulimit must be an integeris N( RUthasattrRR RtlongRt bytearrayRtreadtendswithtbytes(RR]R^trestb((RR]s/usr/lib/python2.6/io.pytreadlines$        cCs|i|S(N(RU(R((s/usr/lib/python2.6/io.pyt__iter__s cCs!|i}|p tn|S(N(Rgt StopIteration(Rtline((s/usr/lib/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/lib/python2.6/io.pyt readliness       cCs,|ix|D]}|i|qWdS(N(RUtwrite(RRoRj((s/usr/lib/python2.6/io.pyt writelines0s N("R R R tabctABCMetat __metaclass__RCRFRGRRHRJRRIRKRLRMRORPRQRRRStpropertyRTRURVRWRRRgRhRkRpRr(((s/usr/lib/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/lib/python2.6/io.pyRbDs    cCsGt}x1to)|it}|pPn||7}q Wt|S(u+Read until EOF, using multiple read() call.(RaRRbRRd(RRetdata((s/usr/lib/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/lib/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/lib/python2.6/io.pyRqes(R R R RbRxRzRq(((s/usr/lib/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/lib/python2.6/io.pyRvscCs!tii|ti|dS(N(R|R}RKRw(R((s/usr/lib/python2.6/io.pyRKzscCs|iS(N(R~(R((s/usr/lib/python2.6/io.pyRB~s(R R R RRRKRvRB(((s/usr/lib/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/lib/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/lib/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/lib/python2.6/io.pyRqs N(R R R RRbRzRq(((s/usr/lib/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/lib/python2.6/io.pyRsicCs|ii||S(N(R1RF(RRDRE((s/usr/lib/python2.6/io.pyRFscCs |iiS(N(R1RG(R((s/usr/lib/python2.6/io.pyRGscCs7|i|djo|i}n|ii|S(N(RJRRGR1RH(RRD((s/usr/lib/python2.6/io.pyRHs  cCs|iidS(N(R1RJ(R((s/usr/lib/python2.6/io.pyRJscCs)|ip|i|iindS(N(RTRJR1RK(R((s/usr/lib/python2.6/io.pyRKs  cCs |iiS(N(R1RM(R((s/usr/lib/python2.6/io.pyRMscCs |iiS(N(R1RP(R((s/usr/lib/python2.6/io.pyRPscCs |iiS(N(R1RR(R((s/usr/lib/python2.6/io.pyRRscCs |iiS(N(R1RT(R((s/usr/lib/python2.6/io.pyRTscCs |iiS(N(R1RB(R((s/usr/lib/python2.6/io.pyRBscCs |iiS(N(R1R#(R((s/usr/lib/python2.6/io.pyR#scCs |iiS(N(R1R(R((s/usr/lib/python2.6/io.pyRscCs |iiS(N(R1R(R((s/usr/lib/python2.6/io.pyRsN(R R R RRFRGRRHRJRKRMRPRRRvRTRBR#RR(((s/usr/lib/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/lib/python2.6/io.pyRs    cCs'|iotdnt|iS(u8Return the bytes value (contents) of the buffer ugetvalue on closed file(RTRRdR(R((s/usr/lib/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/lib/python2.6/io.pyRb)s     cCs |i|S(u"this is the same as read. (Rb(RR\((s/usr/lib/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/lib/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/lib/python2.6/io.pyRFPs        # cCs!|iotdn|iS(Nutell on closed file(RTRR(R((s/usr/lib/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/lib/python2.6/io.pyRHhs      cCstS(N(R(R((s/usr/lib/python2.6/io.pyRPwscCstS(N(R(R((s/usr/lib/python2.6/io.pyRRzscCstS(N(R(R((s/usr/lib/python2.6/io.pyRM}sN(R R R RRRRbRRqRFRGRHRPRRRM(((s/usr/lib/python2.6/io.pyRs          tBytesIOcBseZeiiZRS((R R t_bytesioRR (((s/usr/lib/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/lib/python2.6/io.pyRs    cCsd|_d|_dS(NRi(t _read_buft _read_pos(R((s/usr/lib/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/lib/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/lib/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/lib/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/lib/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/lib/python2.6/io.pyRs   cCs!|iit|i|iS(N(R1RGRRR(R((s/usr/lib/python2.6/io.pyRGscCsm|iiizR|djo|t|i|i8}n|ii||}|i|SWdQXdS(Ni( RRWRVRRRR1RFR(RRDRE((s/usr/lib/python2.6/io.pyRFs   N(R R R RRRRRbRRXRRRGRF(((s/usr/lib/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/lib/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/lib/python2.6/io.pyRqs, !%cCsY|iiiz>|i|djo|ii}n|ii|SWdQXdS(N(RRWRVRRR1RGRH(RRD((s/usr/lib/python2.6/io.pyRH<s   cCsC|iotdn|iiiz|iWdQXdS(Nuflush of closed file(RTRRRWRVR(R((s/usr/lib/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/lib/python2.6/io.pyRIs      cCs|iit|iS(N(R1RGRR(R((s/usr/lib/python2.6/io.pyRGXsicCs<|iiiz!|i|ii||SWdQXdS(N(RRWRVRR1RF(RRDRE((s/usr/lib/python2.6/io.pyRF[s N( R R R RRRRqRHRJRRGRF(((s/usr/lib/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/lib/python2.6/io.pyRrs  cCs'|djo d}n|ii|S(Ni(RRRb(RR\((s/usr/lib/python2.6/io.pyRb}s  cCs|ii|S(N(RRz(RRf((s/usr/lib/python2.6/io.pyRzscCs|ii|S(N(RRq(RRf((s/usr/lib/python2.6/io.pyRqsicCs|ii|S(N(RRX(RR\((s/usr/lib/python2.6/io.pyRXscCs|ii|S(N(RR(RR\((s/usr/lib/python2.6/io.pyRscCs |iiS(N(RRP(R((s/usr/lib/python2.6/io.pyRPscCs |iiS(N(RRR(R((s/usr/lib/python2.6/io.pyRRscCs |iiS(N(RRJ(R((s/usr/lib/python2.6/io.pyRJscCs|ii|iidS(N(RRKR(R((s/usr/lib/python2.6/io.pyRKs cCs|iip |iiS(N(RRR(R((s/usr/lib/python2.6/io.pyRscCs |iiS(N(RRT(R((s/usr/lib/python2.6/io.pyRTsN(R R R RRRRbRzRqRXRRPRRRJRKRRvRT(((s/usr/lib/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/lib/python2.6/io.pyRs icCs|i|ioO|djoB|iiiz'|ii|it|idWdQXn|ii||}|iiiz|i WdQX|S(Ni( RJRRRWRVR1RFRRR(RRDRE((s/usr/lib/python2.6/io.pyRFs -cCs6|io|iit|iSti|SdS(N(RR1RGRR!(R((s/usr/lib/python2.6/io.pyRGs cCs-|djo|i}nti||S(N(RRGR RH(RRD((s/usr/lib/python2.6/io.pyRHs cCs1|djo d}n|iti||S(Ni(RRJR!Rb(RR\((s/usr/lib/python2.6/io.pyRbs   cCs|iti||S(N(RJR!Rz(RRf((s/usr/lib/python2.6/io.pyRzs cCs|iti||S(N(RJR!RX(RR\((s/usr/lib/python2.6/io.pyRXs cCs|iti||S(N(RJR!R(RR\((s/usr/lib/python2.6/io.pyRs cCsf|ioL|iiiz1|ii|it|id|iWdQXnt i ||S(Ni( RRRWRVR1RFRRRR Rq(RRf((s/usr/lib/python2.6/io.pyRqs  #N(R R R RRRRFRGRHRbRzRXRRq(((s/usr/lib/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/lib/python2.6/io.pyRbscCs|iddS(uWrite string s to stream.uwriteN(RC(Rts((s/usr/lib/python2.6/io.pyRqscCs|iddS(uTruncate size to pos.utruncateN(RC(RRD((s/usr/lib/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/lib/python2.6/io.pyRgscCsdS(uSubclasses should override.N(R(R((s/usr/lib/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/lib/python2.6/io.pytnewlines sN( R R R RbRqRRHRgRvR&R(((s/usr/lib/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/lib/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/lib/python2.6/io.pyR%s$    . cCsA|ii\}}|dK}|io|dO}n||fS(Ni(RtgetstateR(RRtflag((s/usr/lib/python2.6/io.pyRAs   cCs=|\}}t|d@|_|ii||d?fdS(Ni(tboolRRtsetstate(RtstateRR((s/usr/lib/python2.6/io.pyRHs cCs#d|_t|_|iidS(Ni(RRRRtreset(R((s/usr/lib/python2.6/io.pyRMs  iiic Cs#ddddddddf|iS(Nu u u (u u (u u (u u (u u u (RR(R((s/usr/lib/python2.6/io.pyRVs(R R R RRRRRRRRRRvR(((s/usr/lib/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/lib/python2.6/io.pyR}sR                  cCs|iS(N(R(R((s/usr/lib/python2.6/io.pyR&scCs|iS(N(R(R((s/usr/lib/python2.6/io.pyR'scCs|iS(N(R(R((s/usr/lib/python2.6/io.pyR2scCs|iS(N(R(R((s/usr/lib/python2.6/io.pyRMscCs |iiS(N(R4RP(R((s/usr/lib/python2.6/io.pyRPscCs |iiS(N(R4RR(R((s/usr/lib/python2.6/io.pyRRscCs|ii|i|_dS(N(R4RJRR(R((s/usr/lib/python2.6/io.pyRJs cCs)|ip|i|iindS(N(RTRJR4RK(R((s/usr/lib/python2.6/io.pyRKs  cCs |iiS(N(R4RT(R((s/usr/lib/python2.6/io.pyRTscCs |iiS(N(R4RB(R((s/usr/lib/python2.6/io.pyRBscCs |iiS(N(R4R(R((s/usr/lib/python2.6/io.pyRscCs |iiS(N(R4R(R((s/usr/lib/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/lib/python2.6/io.pyRqs$   !  cCs+ti|i}||i|_|iS(N(RtgetincrementalencoderRRR(Rt make_encoder((s/usr/lib/python2.6/io.pyRscCsNti|i}||i}|iot||i}n||_|S(N(RtgetincrementaldecoderRRRRRR(Rt make_decoderR((s/usr/lib/python2.6/io.pyt _get_decoders   cCs||_d|_dS(uSet the _decoded_chars buffer.iN(RR(Rtchars((s/usr/lib/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/lib/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/lib/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/lib/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/lib/python2.6/io.pyt _pack_cookieAscCsgt|d\}}t|d\}}t|d\}}t|d\}}|||||fS(Nii@llll(tdivmod(RtbiginttrestRRRRR((s/usr/lib/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/lib/python2.6/io.pyRGRsP              cCs7|i|djo|i}n|ii|S(N(RJRRGR4RH(RRD((s/usr/lib/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/lib/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/lib/python2.6/io.pyRbs(        "cCs?t|_|i}|pd|_|i|_tn|S(N(RRRgRRRRi(RRj((s/usr/lib/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/lib/python2.6/io.pyRgst                            cCs|io |iiSdS(N(RRR(R((s/usr/lib/python2.6/io.pyRTsN($R R R RRRRRvR&R'R2RMRPRRRJRKRTRBRRRqRRRRRRRRRGRHRFRbRkRgR(((s/usr/lib/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/lib/python2.6/io.pyR_s   cCs)|i|iii|i|iS(N(RJR4RRRR(R((s/usr/lib/python2.6/io.pyRos (R R R RR(((s/usr/lib/python2.6/io.pyRXs(+R t __future__RRt __author__t__all__RRsRR|RRttypeRuRRRRR5R6R:RR?tobjectR@RwR}RRRRRRRR!R RRRRRR"R(((s/usr/lib/python2.6/io.pyt#sR           7HJl   }YBD0L