/opt/alt/python27/lib64/python2.7
NameSizeModeActions
bsddb/-0755rm
compiler/-0755rm
config/-0755rm
ctypes/-0755rm
curses/-0755rm
distutils/-0755rm
email/-0755rm
encodings/-0755rm
ensurepip/-0755rm
hotshot/-0755rm
idlelib/-0755rm
importlib/-0755rm
json/-0755rm
lib-dynload/-0755rm
lib2to3/-0755rm
logging/-0755rm
multiprocessing/-0755rm
plat-linux2/-0755rm
pydoc_data/-0755rm
site-packages/-0755rm
sqlite3/-0755rm
test/-0755rm
unittest/-0755rm
wsgiref/-0755rm
xml/-0755rm
abc.py71450644editdlrm
abc.pyc62860644editdlrm
abc.pyo62300644editdlrm
aifc.py345790644editdlrm
aifc.pyc314080644editdlrm
aifc.pyo314080644editdlrm
antigravity.py600644editdlrm
antigravity.pyc2160644editdlrm
antigravity.pyo2160644editdlrm
anydbm.py26630644editdlrm
anydbm.pyc28390644editdlrm
anydbm.pyo28390644editdlrm
argparse.py892280644editdlrm
argparse.pyc663820644editdlrm
argparse.pyo662170644editdlrm
ast.py118050644editdlrm
ast.pyc132500644editdlrm
ast.pyo132500644editdlrm
asynchat.py115810644editdlrm
asynchat.pyc92000644editdlrm
asynchat.pyo92000644editdlrm
asyncore.py209430644editdlrm
asyncore.pyc196600644editdlrm
asyncore.pyo196600644editdlrm
atexit.py17050644editdlrm
atexit.pyc22810644editdlrm
atexit.pyo22810644editdlrm
audiodev.py75970644editdlrm
audiodev.pyc88200644editdlrm
audiodev.pyo88200644editdlrm
base64.py118030755editdlrm
base64.pyc115310644editdlrm
base64.pyo115310644editdlrm
BaseHTTPServer.py227470644editdlrm
BaseHTTPServer.pyc219820644editdlrm
BaseHTTPServer.pyo219820644editdlrm
Bastion.py57440644editdlrm
Bastion.pyc68550644editdlrm
Bastion.pyo68550644editdlrm
bdb.py217140644editdlrm
bdb.pyc198940644editdlrm
bdb.pyo198940644editdlrm
binhex.py146980644editdlrm
binhex.pyc161230644editdlrm
binhex.pyo161230644editdlrm
bisect.py25950644editdlrm
bisect.pyc31360644editdlrm
bisect.pyo31360644editdlrm
calendar.py233840644editdlrm
calendar.pyc289400644editdlrm
calendar.pyo289400644editdlrm
cgi.py357940755editdlrm
cgi.pyc340340644editdlrm
cgi.pyo340340644editdlrm
CGIHTTPServer.py130890644editdlrm
CGIHTTPServer.pyc111870644editdlrm
CGIHTTPServer.pyo111870644editdlrm
cgitb.py121750644editdlrm
cgitb.pyc123720644editdlrm
cgitb.pyo123720644editdlrm
chunk.py54190644editdlrm
chunk.pyc57450644editdlrm
chunk.pyo57450644editdlrm
cmd.py150260644editdlrm
cmd.pyc143120644editdlrm
cmd.pyo143120644editdlrm
code.py101890644editdlrm
code.pyc105420644editdlrm
code.pyo105420644editdlrm
codecs.py361430644editdlrm
codecs.pyc380460644editdlrm
codecs.pyo380460644editdlrm
codeop.py59990644editdlrm
codeop.pyc67270644editdlrm
codeop.pyo67270644editdlrm
collections.py277980644editdlrm
collections.pyc268390644editdlrm
collections.pyo267880644editdlrm
colorsys.py36910644editdlrm
colorsys.pyc40950644editdlrm
colorsys.pyo40950644editdlrm
commands.py25450644editdlrm
commands.pyc25470644editdlrm
commands.pyo25470644editdlrm
compileall.py77630644editdlrm
compileall.pyc70950644editdlrm
compileall.pyo70950644editdlrm
ConfigParser.py277460644editdlrm
ConfigParser.pyc259800644editdlrm
ConfigParser.pyo259800644editdlrm
contextlib.py44240644editdlrm
contextlib.pyc46100644editdlrm
contextlib.pyo46100644editdlrm
Cookie.py265380644editdlrm
Cookie.pyc231520644editdlrm
Cookie.pyo231520644editdlrm
cookielib.py654860644editdlrm
cookielib.pyc559860644editdlrm
cookielib.pyo557980644editdlrm
copy.py115330644editdlrm
copy.pyc125080644editdlrm
copy.pyo124160644editdlrm
copy_reg.py69740644editdlrm
copy_reg.pyc53100644editdlrm
copy_reg.pyo52660644editdlrm
cProfile.py65700755editdlrm
cProfile.pyc65770644editdlrm
cProfile.pyo65770644editdlrm
crypt.py22910644editdlrm
crypt.pyc30250644editdlrm
crypt.pyo30250644editdlrm
csv.py167080644editdlrm
csv.pyc138840644editdlrm
csv.pyo138840644editdlrm
dbhash.py4980644editdlrm
dbhash.pyc7440644editdlrm
dbhash.pyo7440644editdlrm
decimal.py2219330644editdlrm
decimal.pyc1754700644editdlrm
decimal.pyo1754700644editdlrm
difflib.py823250644editdlrm
difflib.pyc626000644editdlrm
difflib.pyo625490644editdlrm
dircache.py11260644editdlrm
dircache.pyc16280644editdlrm
dircache.pyo16280644editdlrm
dis.py64990644editdlrm
dis.pyc63320644editdlrm
dis.pyo63320644editdlrm
doctest.py1050950644editdlrm
doctest.pyc852100644editdlrm
doctest.pyo849230644editdlrm
DocXMLRPCServer.py107680644editdlrm
DocXMLRPCServer.pyc104420644editdlrm
DocXMLRPCServer.pyo103330644editdlrm
dumbdbm.py91410644editdlrm
dumbdbm.pyc69930644editdlrm
dumbdbm.pyo69930644editdlrm
dummy_thread.py44180644editdlrm
dummy_thread.pyc55890644editdlrm
dummy_thread.pyo55890644editdlrm
dummy_threading.py28040644editdlrm
dummy_threading.pyc12980644editdlrm
dummy_threading.pyo12980644editdlrm
filecmp.py95880644editdlrm
filecmp.pyc98820644editdlrm
filecmp.pyo98820644editdlrm
fileinput.py137460644editdlrm
fileinput.pyc148900644editdlrm
fileinput.pyo148900644editdlrm
fnmatch.py33150644editdlrm
fnmatch.pyc36920644editdlrm
fnmatch.pyo36920644editdlrm
formatter.py149110644editdlrm
formatter.pyc201790644editdlrm
formatter.pyo201790644editdlrm
fpformat.py47320644editdlrm
fpformat.pyc48070644editdlrm
fpformat.pyo48070644editdlrm
fractions.py223900644editdlrm
fractions.pyc202180644editdlrm
fractions.pyo202180644editdlrm
ftplib.py381940644editdlrm
ftplib.pyc356520644editdlrm
ftplib.pyo356520644editdlrm
functools.py48060644editdlrm
functools.pyc70190644editdlrm
functools.pyo70190644editdlrm
genericpath.py32010644editdlrm
genericpath.pyc36600644editdlrm
genericpath.pyo36600644editdlrm
getopt.py73190644editdlrm
getopt.pyc67840644editdlrm
getopt.pyo67390644editdlrm
getpass.py55630644editdlrm
getpass.pyc48350644editdlrm
getpass.pyo48350644editdlrm
gettext.py226660644editdlrm
gettext.pyc186020644editdlrm
gettext.pyo186020644editdlrm
glob.py31140644editdlrm
glob.pyc30470644editdlrm
glob.pyo30470644editdlrm
gzip.py190280644editdlrm
gzip.pyc156260644editdlrm
gzip.pyo156260644editdlrm
hashlib.py78420644editdlrm
hashlib.pyc70260644editdlrm
hashlib.pyo70260644editdlrm
heapq.py182950644editdlrm
heapq.pyc147980644editdlrm
heapq.pyo147980644editdlrm
hmac.py45880644editdlrm
hmac.pyc46720644editdlrm
hmac.pyo46720644editdlrm
htmlentitydefs.py180560644editdlrm
htmlentitydefs.pyc63800644editdlrm
htmlentitydefs.pyo63800644editdlrm
htmllib.py128690644editdlrm
htmllib.pyc214920644editdlrm
htmllib.pyo214920644editdlrm
HTMLParser.py171710644editdlrm
HTMLParser.pyc141430644editdlrm
HTMLParser.pyo138380644editdlrm
httplib.py523000644editdlrm
httplib.pyc387930644editdlrm
httplib.pyo386090644editdlrm
ihooks.py189860644editdlrm
ihooks.pyc222690644editdlrm
ihooks.pyo222690644editdlrm
imaplib.py483660644editdlrm
imaplib.pyc462720644editdlrm
imaplib.pyo435060644editdlrm
imghdr.py35410644editdlrm
imghdr.pyc50460644editdlrm
imghdr.pyo50460644editdlrm
imputil.py257640644editdlrm
imputil.pyc161170644editdlrm
imputil.pyo159390644editdlrm
inspect.py430080644editdlrm
inspect.pyc411260644editdlrm
inspect.pyo411260644editdlrm
io.py33220644editdlrm
io.pyc36540644editdlrm
io.pyo36540644editdlrm
keyword.py19920755editdlrm
keyword.pyc21310644editdlrm
keyword.pyo21310644editdlrm
linecache.py40270644editdlrm
linecache.pyc33500644editdlrm
linecache.pyo33500644editdlrm
locale.py1028340644editdlrm
locale.pyc570260644editdlrm
locale.pyo570260644editdlrm
macpath.py62890644editdlrm
macpath.pyc79280644editdlrm
macpath.pyo79280644editdlrm
macurl2path.py27310644editdlrm
macurl2path.pyc22960644editdlrm
macurl2path.pyo22960644editdlrm
mailbox.py812400644editdlrm
mailbox.pyc795640644editdlrm
mailbox.pyo795170644editdlrm
mailcap.py74290644editdlrm
mailcap.pyc72480644editdlrm
mailcap.pyo72480644editdlrm
markupbase.py146430644editdlrm
markupbase.pyc94880644editdlrm
markupbase.pyo92920644editdlrm
md5.py3580644editdlrm
md5.pyc3910644editdlrm
md5.pyo3910644editdlrm
mhlib.py334340644editdlrm
mhlib.pyc347910644editdlrm
mhlib.pyo347910644editdlrm
mimetools.py71680644editdlrm
mimetools.pyc84610644editdlrm
mimetools.pyo84610644editdlrm
mimetypes.py210280644editdlrm
mimetypes.pyc187360644editdlrm
mimetypes.pyo187360644editdlrm
MimeWriter.py64820644editdlrm
MimeWriter.pyc74810644editdlrm
MimeWriter.pyo74810644editdlrm
mimify.py150170755editdlrm
mimify.pyc121960644editdlrm
mimify.pyo121960644editdlrm
modulefinder.py244610644editdlrm
modulefinder.pyc195820644editdlrm
modulefinder.pyo195000644editdlrm
multifile.py48200644editdlrm
multifile.pyc56150644editdlrm
multifile.pyo55730644editdlrm
mutex.py18780644editdlrm
mutex.pyc26070644editdlrm
mutex.pyo26070644editdlrm
netrc.py58880644editdlrm
netrc.pyc48310644editdlrm
netrc.pyo48310644editdlrm
new.py6100644editdlrm
new.pyc8750644editdlrm
new.pyo8750644editdlrm
nntplib.py214700644editdlrm
nntplib.pyc216160644editdlrm
nntplib.pyo216160644editdlrm
ntpath.py194290644editdlrm
ntpath.pyc134150644editdlrm
ntpath.pyo134150644editdlrm
nturl2path.py24190644editdlrm
nturl2path.pyc18540644editdlrm
nturl2path.pyo18540644editdlrm
numbers.py103190644editdlrm
numbers.pyc148180644editdlrm
numbers.pyo148180644editdlrm
opcode.py54740644editdlrm
opcode.pyc62100644editdlrm
opcode.pyo62100644editdlrm
optparse.py612030644editdlrm
optparse.pyc557140644editdlrm
optparse.pyo556310644editdlrm
os.py259100644editdlrm
os.pyc263780644editdlrm
os.pyo263780644editdlrm
os2emxpath.py46350644editdlrm
os2emxpath.pyc46420644editdlrm
os2emxpath.pyo46420644editdlrm
pdb.doc79140644editdlrm
pdb.py460950755editdlrm
pdb.pyc451510644editdlrm
pdb.pyo451510644editdlrm
pickle.py454890644editdlrm
pickle.pyc399120644editdlrm
pickle.pyo397160644editdlrm
pickletools.py745230644editdlrm
pickletools.pyc574480644editdlrm
pickletools.pyo565870644editdlrm
pipes.py95820644editdlrm
pipes.pyc95160644editdlrm
pipes.pyo95160644editdlrm
pkgutil.py202430644editdlrm
pkgutil.pyc193880644editdlrm
pkgutil.pyo193880644editdlrm
platform.py527850755editdlrm
platform.pyc386020644editdlrm
platform.pyo386020644editdlrm
plistlib.py151850644editdlrm
plistlib.pyc200080644editdlrm
plistlib.pyo199220644editdlrm
popen2.py84160644editdlrm
popen2.pyc92330644editdlrm
popen2.pyo91910644editdlrm
poplib.py128240644editdlrm
poplib.pyc137740644editdlrm
poplib.pyo137740644editdlrm
posixfile.py80030644editdlrm
posixfile.pyc78080644editdlrm
posixfile.pyo78080644editdlrm
posixpath.py142930644editdlrm
posixpath.pyc117610644editdlrm
posixpath.pyo117610644editdlrm
pprint.py117770644editdlrm
pprint.pyc104410644editdlrm
pprint.pyo102640644editdlrm
profile.py227780755editdlrm
profile.pyc169630644editdlrm
profile.pyo167160644editdlrm
pstats.py267120644editdlrm
pstats.pyc257930644editdlrm
pstats.pyo257930644editdlrm
pty.py50580644editdlrm
pty.pyc50960644editdlrm
pty.pyo50960644editdlrm
pyclbr.py133880644editdlrm
pyclbr.pyc98200644editdlrm
pyclbr.pyo98200644editdlrm
pydoc.py956630755editdlrm
pydoc.pyc949140644editdlrm
pydoc.pyo948500644editdlrm
py_compile.py59360644editdlrm
py_compile.pyc65190644editdlrm
py_compile.pyo65190644editdlrm
Queue.py85770644editdlrm
Queue.pyc97880644editdlrm
Queue.pyo97880644editdlrm
quopri.py69650755editdlrm
quopri.pyc67170644editdlrm
quopri.pyo67170644editdlrm
random.py324570644editdlrm
random.pyc262630644editdlrm
random.pyo262630644editdlrm
re.py134230644editdlrm
re.pyc136860644editdlrm
re.pyo136860644editdlrm
repr.py42960644editdlrm
repr.pyc56060644editdlrm
repr.pyo56060644editdlrm
rexec.py201480644editdlrm
rexec.pyc245740644editdlrm
rexec.pyo245740644editdlrm
rfc822.py335420644editdlrm
rfc822.pyc325930644editdlrm
rfc822.pyo325930644editdlrm
rlcompleter.py59910644editdlrm
rlcompleter.pyc61820644editdlrm
rlcompleter.pyo61820644editdlrm
robotparser.py76950644editdlrm
robotparser.pyc83150644editdlrm
robotparser.pyo83150644editdlrm
runpy.py110810644editdlrm
runpy.pyc90630644editdlrm
runpy.pyo90630644editdlrm
sched.py50880644editdlrm
sched.pyc51110644editdlrm
sched.pyo51110644editdlrm
sets.py190500644editdlrm
sets.pyc176230644editdlrm
sets.pyo176230644editdlrm
sgmllib.py178840644editdlrm
sgmllib.pyc160470644editdlrm
sgmllib.pyo160470644editdlrm
sha.py3930644editdlrm
sha.pyc4340644editdlrm
sha.pyo4340644editdlrm
shelve.py81780644editdlrm
shelve.pyc106070644editdlrm
shelve.pyo106070644editdlrm
shlex.py111640644editdlrm
shlex.pyc77270644editdlrm
shlex.pyo77270644editdlrm
shutil.py198710644editdlrm
shutil.pyc196490644editdlrm
shutil.pyo196490644editdlrm
SimpleHTTPServer.py79970644editdlrm
SimpleHTTPServer.pyc81530644editdlrm
SimpleHTTPServer.pyo81530644editdlrm
SimpleXMLRPCServer.py258120644editdlrm
SimpleXMLRPCServer.pyc233310644editdlrm
SimpleXMLRPCServer.pyo233310644editdlrm
site.py196370644editdlrm
site.pyc198190644editdlrm
site.pyo198190644editdlrm
smtpd.py185390755editdlrm
smtpd.pyc162860644editdlrm
smtpd.pyo162860644editdlrm
smtplib.py321310755editdlrm
smtplib.pyc310190644editdlrm
smtplib.pyo310190644editdlrm
sndhdr.py59730644editdlrm
sndhdr.pyc75820644editdlrm
sndhdr.pyo75820644editdlrm
socket.py206150644editdlrm
socket.pyc165420644editdlrm
socket.pyo164560644editdlrm
SocketServer.py239480644editdlrm
SocketServer.pyc248280644editdlrm
SocketServer.pyo248280644editdlrm
sre.py3840644editdlrm
sre.pyc5320644editdlrm
sre.pyo5320644editdlrm
sre_compile.py198230644editdlrm
sre_compile.pyc127550644editdlrm
sre_compile.pyo125990644editdlrm
sre_constants.py71970644editdlrm
sre_constants.pyc62600644editdlrm
sre_constants.pyo62600644editdlrm
sre_parse.py307000644editdlrm
sre_parse.pyc216240644editdlrm
sre_parse.pyo216240644editdlrm
ssl.py374550644editdlrm
ssl.pyc330150644editdlrm
ssl.pyo330150644editdlrm
stat.py18420644editdlrm
stat.pyc28810644editdlrm
stat.pyo28810644editdlrm
statvfs.py8980644editdlrm
statvfs.pyc6330644editdlrm
statvfs.pyo6330644editdlrm
string.py215480644editdlrm
string.pyc211220644editdlrm
string.pyo211220644editdlrm
StringIO.py106620644editdlrm
StringIO.pyc117270644editdlrm
StringIO.pyo117270644editdlrm
stringold.py124490644editdlrm
stringold.pyc129000644editdlrm
stringold.pyo129000644editdlrm
stringprep.py135220644editdlrm
stringprep.pyc147470644editdlrm
stringprep.pyo146750644editdlrm
struct.py820644editdlrm
struct.pyc2520644editdlrm
struct.pyo2520644editdlrm
subprocess.py505200644editdlrm
subprocess.pyc331000644editdlrm
subprocess.pyo331000644editdlrm
sunau.py172220644editdlrm
sunau.pyc190180644editdlrm
sunau.pyo190180644editdlrm
sunaudio.py13990644editdlrm
sunaudio.pyc20520644editdlrm
sunaudio.pyo20520644editdlrm
symbol.py20540755editdlrm
symbol.pyc30520644editdlrm
symbol.pyo30520644editdlrm
symtable.py74370644editdlrm
symtable.pyc124360644editdlrm
symtable.pyo123050644editdlrm
sysconfig.py228520644editdlrm
sysconfig.pyc181560644editdlrm
sysconfig.pyo181530644editdlrm
tabnanny.py113360755editdlrm
tabnanny.pyc85070644editdlrm
tabnanny.pyo85070644editdlrm
tarfile.py905680644editdlrm
tarfile.pyc783740644editdlrm
tarfile.pyo783740644editdlrm
telnetlib.py270360644editdlrm
telnetlib.pyc235830644editdlrm
telnetlib.pyo235830644editdlrm
tempfile.py195470644editdlrm
tempfile.pyc210460644editdlrm
tempfile.pyo210460644editdlrm
textwrap.py172800644editdlrm
textwrap.pyc122790644editdlrm
textwrap.pyo121870644editdlrm
this.py10020644editdlrm
this.pyc12330644editdlrm
this.pyo12330644editdlrm
threading.py472820644editdlrm
threading.pyc439990644editdlrm
threading.pyo418250644editdlrm
timeit.py127880755editdlrm
timeit.pyc123520644editdlrm
timeit.pyo123520644editdlrm
toaiff.py31420644editdlrm
toaiff.pyc31580644editdlrm
toaiff.pyo31580644editdlrm
token.py29220644editdlrm
token.pyc38810644editdlrm
token.pyo38810644editdlrm
tokenize.py174830644editdlrm
tokenize.pyc147130644editdlrm
tokenize.pyo146570644editdlrm
trace.py298880755editdlrm
trace.pyc232350644editdlrm
trace.pyo231720644editdlrm
traceback.py112850644editdlrm
traceback.pyc119390644editdlrm
traceback.pyo119390644editdlrm
tty.py8790644editdlrm
tty.pyc13560644editdlrm
tty.pyo13560644editdlrm
types.py20940644editdlrm
types.pyc28160644editdlrm
types.pyo28160644editdlrm
urllib.py602280644editdlrm
urllib.pyc525800644editdlrm
urllib.pyo524850644editdlrm
urllib2.py525370644editdlrm
urllib2.pyc489490644editdlrm
urllib2.pyo488540644editdlrm
urlparse.py166780644editdlrm
urlparse.pyc158860644editdlrm
urlparse.pyo158860644editdlrm
user.py16270644editdlrm
user.pyc17370644editdlrm
user.pyo17370644editdlrm
UserDict.py70600644editdlrm
UserDict.pyc102960644editdlrm
UserDict.pyo102960644editdlrm
UserList.py36440644editdlrm
UserList.pyc70190644editdlrm
UserList.pyo70190644editdlrm
UserString.py96840755editdlrm
UserString.pyc157480644editdlrm
UserString.pyo157480644editdlrm
uu.py66940755editdlrm
uu.pyc44550644editdlrm
uu.pyo44550644editdlrm
uuid.py231750644editdlrm
uuid.pyc237780644editdlrm
uuid.pyo236620644editdlrm
warnings.py148230644editdlrm
warnings.pyc138090644editdlrm
warnings.pyo130200644editdlrm
wave.py185820644editdlrm
wave.pyc206760644editdlrm
wave.pyo205320644editdlrm
weakref.py148300644editdlrm
weakref.pyc171300644editdlrm
weakref.pyo171300644editdlrm
webbrowser.py227220755editdlrm
webbrowser.pyc203350644editdlrm
webbrowser.pyo202900644editdlrm
whichdb.py33880644editdlrm
whichdb.pyc22670644editdlrm
whichdb.pyo22670644editdlrm
wsgiref.egg-info1870644editdlrm
xdrlib.py60690644editdlrm
xdrlib.pyc104480644editdlrm
xdrlib.pyo104480644editdlrm
xmllib.py348650644editdlrm
xmllib.pyc275500644editdlrm
xmllib.pyo275500644editdlrm
xmlrpclib.py521360644editdlrm
xmlrpclib.pyc458870644editdlrm
xmlrpclib.pyo457030644editdlrm
zipfile.py594770644editdlrm
zipfile.pyc429300644editdlrm
zipfile.pyo429300644editdlrm
_abcoll.py186190644editdlrm
_abcoll.pyc270340644editdlrm
_abcoll.pyo270340644editdlrm
_LWPCookieJar.py65530644editdlrm
_LWPCookieJar.pyc55120644editdlrm
_LWPCookieJar.pyo55120644editdlrm
_MozillaCookieJar.py57970644editdlrm
_MozillaCookieJar.pyc45130644editdlrm
_MozillaCookieJar.pyo44740644editdlrm
_osx_support.py191000644editdlrm
_osx_support.pyc120050644editdlrm
_osx_support.pyo120050644editdlrm
_pyio.py696300644editdlrm
_pyio.pyc669760644editdlrm
_pyio.pyo669760644editdlrm
_strptime.py207280644editdlrm
_strptime.pyc154320644editdlrm
_strptime.pyo154320644editdlrm
_sysconfigdata.py191820644editdlrm
_sysconfigdata.pyc223610644editdlrm
_sysconfigdata.pyo223610644editdlrm
_threading_local.py72600644editdlrm
_threading_local.pyc64900644editdlrm
_threading_local.pyo64900644editdlrm
_weakrefset.py59110644editdlrm
_weakrefset.pyc103020644editdlrm
_weakrefset.pyo103020644editdlrm
__future__.py43800644editdlrm
__future__.pyc43010644editdlrm
__future__.pyo43010644editdlrm
__phello__.foo.py640644editdlrm
__phello__.foo.pyc1380644editdlrm
__phello__.foo.pyo1380644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/doctest.pyc (85210B)
 [ bc!@sdZdZdddddddd d d d d ddddddddddddddddddd d!d"g!Zd#d$lZd#d$lZd#d$lZd#d$lZd#d$lZd#d$lZd#d$l Z d#d$l Z d#d$l Z d#d$l Z d#d$l Z d#d$lZd#d%lmZd#d&lmZed'd(ZiZd)ZedZedZedZedZedZedZeeBeBeBeBeBZed Zed Zed Zed ZeeBeBeBZ d*Z!d+Z"d,Z#d-d.Z$d/Z%e&ej'd0e(p)d1Z)d2d3Z*d4Z+d5efd6YZ,d7Z-d8Z.d9Z/d:e j0fd;YZ1d<Z2dfd=YZ3dfd>YZ4dfd?YZ5dfd@YZ6dfdAYZ7dfdBYZ8de9fdCYZ:de9fdDYZ;de7fdEYZ<e(a=e(e(e(e(e>dFe(e?e?dG Z@e>e(e(e(e(e>dFe(e?e5e(dH ZAe?dIe(dFdJZBdfdKYZCdFaDdLZEdMe jFfdNYZGdOeGfdPYZHe(e(e(e(dQZIdReGfdSYZJe>e(e(e5e(dTZKdUZLdVZMdWZNe?e(dXZOe?e(dYZPe?dZZQd[fd\YZRieRd[6d]d^6d_d`6dadb6dcdd6dedf6ZSdgZTeUdhkrejVeTnd$S(isModule doctest -- a framework for running examples in docstrings. In simplest use, end each module M to be tested with: def _test(): import doctest doctest.testmod() if __name__ == "__main__": _test() Then running the module as a script will cause the examples in the docstrings to get executed and verified: python M.py This won't display anything unless an example fails, in which case the failing example(s) and the cause(s) of the failure(s) are printed to stdout (why not stderr? because stderr is a lame hack <0.2 wink>), and the final line of output is "Test failed.". Run it with the -v switch instead: python M.py -v and a detailed report of all examples tried is printed to stdout, along with assorted summaries at the end. You can force verbose mode by passing "verbose=True" to testmod, or prohibit it by passing "verbose=False". In either of those cases, sys.argv is not examined by testmod. There are a variety of other ways to run doctests, including integration with the unittest framework, and support for running non-Python text files containing doctests. There are also many ways to override parts of doctest's default behaviors. See the Library Reference Manual for details. sreStructuredText entregister_optionflagtDONT_ACCEPT_TRUE_FOR_1tDONT_ACCEPT_BLANKLINEtNORMALIZE_WHITESPACEtELLIPSIStSKIPtIGNORE_EXCEPTION_DETAILtCOMPARISON_FLAGSt REPORT_UDIFFt REPORT_CDIFFt REPORT_NDIFFtREPORT_ONLY_FIRST_FAILUREtREPORTING_FLAGStExampletDocTestt DocTestParsert DocTestFindert DocTestRunnert OutputCheckertDocTestFailuretUnexpectedExceptiont DebugRunnerttestmodttestfiletrun_docstring_examplestTestert DocTestSuitet DocFileSuitetset_unittest_reportflagstscript_from_examplest testsourcet debug_srctdebugiN(tStringIO(t namedtuplet TestResultssfailed attemptedcCstj|dtt>S(Ni(tOPTIONFLAGS_BY_NAMEt setdefaulttlen(tname((s,/opt/alt/python27/lib64/python2.7/doctest.pyRss s...cCsUd}xHtjD]=}|j|d}|tt|kr||jO}qqW|S(s Return the compiler-flags associated with the future features that have been imported into the given namespace (globs). iN(t __future__tall_feature_namestgettNonetgetattrt compiler_flag(tglobstflagstfnametfeature((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_extract_future_flagss icCs{tj|r|St|ttfrDt|ttdgS|dkrkt j t j |j dSt ddS(s Return the module specified by `module`. In particular: - If `module` is a module, then return module. - If `module` is a string, then import and return the module with that name. - If `module` is None, then return the calling module. The calling module is assumed to be the module of the stack frame at the given depth in the call stack. t*t__name__s"Expected a module, string, or NoneN(tinspecttismodulet isinstancetstrtunicodet __import__tglobalstlocalsR+tsystmodulest _getframet f_globalst TypeError(tmoduletdepth((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_normalize_modules  cCs|rvt|d}t||}t|drvt|jdrs|jj|}|jtjd|fSqvnt|d}|j |fSWdQXdS(Nit __loader__tget_datas tU( RDt_module_relative_paththasattrRERFtreplacetostlineseptopentread(tfilenametpackagetmodule_relativet file_contentstf((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_load_testfilestencodingsutf-8icCs;t|tr$|jtd}ntjd|d|S(s Add the given number of space characters to the beginning of every non-blank line in `s`, and return the result. If the string `s` is Unicode, it is encoded using the stdout encoding and the `backslashreplace` error handler. tbackslashreplaces (?m)^(?!$)t (R7R9tencodet _encodingtretsub(tstindent((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_indentscCs;t}|\}}}tj|||d||jS(sz Return a string containing a traceback message for the given exc_info tuple (as returned by sys.exc_info()). tfile(R!t tracebacktprint_exceptiontgetvalue(texc_infotexcouttexc_typetexc_valtexc_tb((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_exception_tracebacks t _SpoofOutcBseZdZddZRS(cCsNtj|}|r2|jd r2|d7}nt|drJ|`n|S(Ns t softspace(R!RbtendswithRIRj(tselftresult((s,/opt/alt/python27/lib64/python2.7/doctest.pyRbs   cCsAtj||t|dr(|`n|js=d|_ndS(NRjt(R!ttruncateRIRjtbuf(Rltsize((s,/opt/alt/python27/lib64/python2.7/doctest.pyRos   N(R4t __module__RbR+Ro(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRis cCs&t|kr||kS|jt}t|dks=tdt|}}|d}|r|j|rt|}|d=qtSn|d}|r|j|r|t|8}|d=qtSn||krtSxC|D];}|j|||}|dkrtS|t|7}qWtS(s_ Essentially the only subtle case: >>> _ellipsis_match('aa...aa', 'aaa') False iii( tELLIPSIS_MARKERtsplitR&tAssertionErrort startswithtFalseRktfindtTrue(twanttgottwststartpostendpostw((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_ellipsis_matchs2          cCs"|j}|rd|SdSdS(s)Return a commented form of the given lines# t#N(trstrip(tline((s,/opt/alt/python27/lib64/python2.7/doctest.pyt _comment_lineAs cCsdt|}}|jd}|dkr7|}n|jdd|}|dkra|}n|jdd|}|dkr|d}n|||!S(Nis t:t.i(R&Rxtrfind(tmsgtstarttendti((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_strip_exception_detailsIs       t_OutputRedirectingPdbcBs5eZdZdZddZdZdZRS(s A specialized version of the python debugger that redirects stdout to a given stream when interacting with the user. Stdout is *not* redirected when traced code is executed. cCs5||_t|_tjj|d|d|_dS(Ntstdouti(t_OutputRedirectingPdb__outRwt$_OutputRedirectingPdb__debugger_usedtpdbtPdbt__init__t use_rawinput(Rltout((s,/opt/alt/python27/lib64/python2.7/doctest.pyRis  cCs>t|_|dkr'tjj}ntjj||dS(N( RyRR+R=R?tf_backRRt set_trace(Rltframe((s,/opt/alt/python27/lib64/python2.7/doctest.pyRps  cCs |jrtjj|ndS(N(RRRt set_continue(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyRvs cGs=tj}|jt_ztjj||SWd|t_XdS(N(R=RRRRttrace_dispatch(Rltargst save_stdout((s,/opt/alt/python27/lib64/python2.7/doctest.pyR|s   N(R4Rrt__doc__RR+RRR(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRcs    cCstj|std|n|jdr:tdnt|dretjj|j d}nw|j dkrt t j dkrt j ddkrtjjt j dd}qtj}ntd|d tjj||jdS( NsExpected a module: %rt/s1Module-relative files may not have absolute pathst__file__it__main__Rns+Can't resolve paths relative to the module s (it has no __file__)(R5R6RARvt ValueErrorRIRKtpathRtRR4R&R=targvtcurdirtjoin(RBRtbasedir((s,/opt/alt/python27/lib64/python2.7/doctest.pyRHs (  cBs>eZdZdddddZdZdZdZRS(sn A single doctest example, consisting of source code and expected output. `Example` defines the following attributes: - source: A single Python statement, always ending with a newline. The constructor adds a newline if needed. - want: The expected output from running the source code (either from stdout, or a traceback in case of exception). `want` ends with a newline unless it's empty, in which case it's an empty string. The constructor adds a newline if needed. - exc_msg: The exception message generated by the example, if the example is expected to generate an exception; or `None` if it is not expected to generate an exception. This exception message is compared against the return value of `traceback.format_exception_only()`. `exc_msg` ends with a newline unless it's `None`. The constructor adds a newline if needed. - lineno: The line number within the DocTest string containing this Example where the Example begins. This line number is zero-based, with respect to the beginning of the DocTest. - indent: The example's indentation in the DocTest string. I.e., the number of space characters that precede the example's first prompt. - options: A dictionary mapping from option flags to True or False, which is used to override default options for this example. Any option flags not contained in this dictionary are left at their default value (as specified by the DocTestRunner's optionflags). By default, no options are set. icCs|jds|d7}n|r?|jd r?|d7}n|dk rh|jd rh|d7}n||_||_||_||_|dkri}n||_||_dS(Ns (RkR+tsourceRztlinenoR]toptionstexc_msg(RlRRzRRR]R((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs         cCst|t|k rtS|j|jko|j|jko|j|jko|j|jko|j|jko|j|jkS(N(ttypetNotImplementedRRzRR]RR(Rltother((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__eq__scCs ||k S(N((RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__ne__scCs(t|j|j|j|j|jfS(N(thashRRzRR]R(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__hash__sN(R4RrRR+RRRR(((s,/opt/alt/python27/lib64/python2.7/doctest.pyR s "   cBsDeZdZdZdZdZdZdZdZRS(se A collection of doctest examples that should be run in a single namespace. Each `DocTest` defines the following attributes: - examples: the list of examples. - globs: The namespace (aka globals) that the examples should be run in. - name: A name identifying the DocTest (typically, the name of the object whose docstring this DocTest was extracted from). - filename: The name of the file that this DocTest was extracted from, or `None` if the filename is unknown. - lineno: The line number within filename where this DocTest begins, or `None` if the line number is unavailable. This line number is zero-based, with respect to the beginning of the file. - docstring: The string that the examples were extracted from, or `None` if the string is unavailable. cCs\t|t std||_||_|j|_||_||_||_ dS(s Create a new DocTest containing the given examples. The DocTest's globals are initialized with a copy of `globs`. s8DocTest no longer accepts str; use DocTestParser insteadN( R7t basestringRutexamplest docstringtcopyR.R'ROR(RlRR.R'RORR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR s     cCslt|jdkrd}n1t|jdkr<d}ndt|j}d|j|j|j|fS(Nis no examplesis 1 examples %d exampless(R&RR'ROR(RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__repr__s  cCst|t|k rtS|j|jko|j|jko|j|jko|j|jko|j|jko|j|jkS(N(RRRRR.R'ROR(RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR#scCs ||k S(N((RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR.scCs"t|j|j|j|jfS(N(RRR'ROR(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR1scCsVt|tsdSt|j|j|jt|f|j|j|jt|fS(Ni(R7RtcmpR'RORtid(RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__cmp__5s!( R4RrRRRRRRR(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs   cBseZdZejdejejBZejdejejBejBZ ejdj Z ddZ dZ ddZdZejd ejZd Zejd ejZd Zd ZdZRS(sD A class used to parse strings containing doctest examples. s # Source consists of a PS1 line followed by zero or more PS2 lines. (?P (?:^(?P [ ]*) >>> .*) # PS1 line (?:\n [ ]* \.\.\. .*)*) # PS2 lines \n? # Want consists of any non-blank lines that do not start with PS1. (?P (?:(?![ ]*$) # Not a blank line (?![ ]*>>>) # Not a line starting with PS1 .+$\n? # But any other line )*) s # Grab the traceback header. Different versions of Python have # said different things on the first traceback line. ^(?P Traceback\ \( (?: most\ recent\ call\ last | innermost\ last ) \) : ) \s* $ # toss trailing whitespace on the header. (?P .*?) # don't blink: absorb stuff until... ^ (?P \w+ .*) # a line *starts* with alphanum. s ^[ ]*(#.*)?$sc Csx|j}|j|}|dkrYdjg|jdD]}||^q=}ng}d\}}x|jj|D]}|j|||j!||jd||j7}|j |||\} } } } |j | s.|jt | | | d|d|t |j dd| n||jd|j|j7}|j}q~W|j|||S(s= Divide the given string into examples and intervening text, and return them as a list of alternating Examples and strings. Line numbers for the Examples are 0-based. The optional argument `name` is a name identifying this string, and is only used for error messages. is RR]R(ii(t expandtabst _min_indentRRtt _EXAMPLE_REtfinditertappendRtcountt_parse_examplet_IS_BLANK_OR_COMMENTR R&tgroupR( RltstringR't min_indenttltoutputtcharnoRtmRRRzR((s,/opt/alt/python27/lib64/python2.7/doctest.pytparseos&  2 ! %cCs%t|j|||||||S(s" Extract all doctest examples from the given string, and collect them into a `DocTest` object. `globs`, `name`, `filename`, and `lineno` are attributes for the new `DocTest` object. See the documentation for `DocTest` for more information. (Rt get_examples(RlRR.R'ROR((s,/opt/alt/python27/lib64/python2.7/doctest.pyt get_doctests cCs2g|j||D]}t|tr|^qS(s Extract all doctest examples from the given string, and return them as a list of `Example` objects. Line numbers are 0-based, because it's most common in doctests that nothing interesting appears on the same line as opening triple-quote, and so the first interesting line is called "line 1" then. The optional argument `name` is a name identifying this string, and is only used for error messages. (RR7R (RlRR'tx((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs c Cs~t|jd}|jdjd}|j|||||j|dd|d||djg|D]}||d^qr}|jd}|jd} t| dkrtjd | d r| d =n|j| d|||t|djg| D]} | |^q}|jj|}|rS|jd } nd } |j |||} || || fS( s Given a regular expression match from `_EXAMPLE_RE` (`m`), return a pair `(source, want)`, where `source` is the matched example's source code (with prompts and indentation stripped); and `want` is the example's expected output (with indentation stripped). `name` is the string's name, and `lineno` is the line number where the example starts; both are used for error messages. R]Rs iRWRiRzs *$iRN( R&RRtt_check_prompt_blankt _check_prefixRRZtmatcht _EXCEPTION_RER+t _find_options( RlRR'RR]t source_linestslRRzt want_linestwlRR((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs$ "*( &s#\s*doctest:\s*([^\n\'"]*)$c Csi}x|jj|D]}|jdjddj}xp|D]h}|ddksm|dtkrtd|d||fnt|d}|ddk||$                 cCs|dkrtStj|dk r8|tj|kStj|rW|j|jkStj|rv|j|j kSt |dr|j|j kSt |t rtSt ddS(sY Return true if the given object is defined in the given module. Rrs"object must be a class or functionN(R+RyR5Rt isfunctionRt func_globalstisclassR4RrRIR7tpropertyR(RlRBtobject((s,/opt/alt/python27/lib64/python2.7/doctest.pyt _from_modules c Cs |jrd|GHnt||kr+dSd|t|<|j|||||}|dk rr|j|ntj|r|jrx|jj D]n\} } d|| f} tj | stj | r|j || r|j || | ||||qqWntj|r|jrxt|dij D]\} } t| tswtdt| fntj | ptj | ptj| ptj| pt| tstdt| fnd|| f} |j || | ||||q@Wntj |r|jrx|jj D]\} } t| trit|| } nt| trt|| j} ntj | stj | st| tr<|j || r<d|| f} |j || | ||||q<q<WndS( sm Find tests for the given object and any contained objects, and add them to `tests`. sFinding tests in %sNis%s.%st__test__s5DocTestFinder.find: __test__ keys must be strings: %rs`DocTestFinder.find: __test__ values must be strings, functions, methods, classes, or modules: %rs%s.__test__.%s(RRt _get_testR+RR5R6RRtitemsRRRRR,R7RRRtismethodt staticmethodt classmethodtim_funcR( RlRRR'RBRR.tseenttesttvalnametval((s,/opt/alt/python27/lib64/python2.7/doctest.pyRsP   %c Cst|tr|}ncyC|jdkr3d}n'|j}t|tsZt|}nWnttfk rzd}nX|j||}|jr| rdS|dkrd}n2t |d|j }|ddkr|d }n|j j |||||S( ss Return a DocTest for the given object, if it defines a docstring; otherwise, return None. RnRis.pycs.pyoiN(s.pycs.pyo( R7RRR+R8RAtAttributeErrort _find_linenoRR,R4RR( RlRR'RBR.RRRRO((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs(       cCsd}tj|rd}ntj|r|dkr=dStjdt|dd}x6t|D]%\}}|j|ri|}PqiqiWntj |r|j }ntj |r|j }ntj |r|j}ntj|r|j}ntj|r)t|ddd}n|dk r|dkrI|dStjd}x7t|t|D]}|j||rn|SqnWndS( s Return a line number of the given object's docstring. Note: this method assumes that the object has a docstring. is^\s*class\s*%s\bR4t-tco_firstlinenois(^|.*:)\s*\w*("|')N(R+R5R6RRZRR,RRRRRt func_codet istracebackttb_frametisframetf_codetiscodetrangeR&(RlRRRtpatRR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR s<           N( R4RrRRwRRyRR+RxRRRR (((s,/opt/alt/python27/lib64/python2.7/doctest.pyR*s ]  ? %cBseZdZddZddddZdZdZdZdZ d Z d Z d Z e jd Zdd ZddedZddZdZRS(s2 A class used to run DocTest test cases, and accumulate statistics. The `run` method is used to process a single DocTest case. It returns a tuple `(f, t)`, where `t` is the number of test cases tried, and `f` is the number of test cases that failed. >>> tests = DocTestFinder().find(_TestClass) >>> runner = DocTestRunner(verbose=False) >>> tests.sort(key = lambda test: test.name) >>> for test in tests: ... print test.name, '->', runner.run(test) _TestClass -> TestResults(failed=0, attempted=2) _TestClass.__init__ -> TestResults(failed=0, attempted=2) _TestClass.get -> TestResults(failed=0, attempted=2) _TestClass.square -> TestResults(failed=0, attempted=1) The `summarize` method prints a summary of all the test cases that have been run by the runner, and returns an aggregated `(f, t)` tuple: >>> runner.summarize(verbose=1) 4 items passed all tests: 2 tests in _TestClass 2 tests in _TestClass.__init__ 2 tests in _TestClass.get 1 tests in _TestClass.square 7 tests in 4 items. 7 passed and 0 failed. Test passed. TestResults(failed=0, attempted=7) The aggregated number of tried examples and failed examples is also available via the `tries` and `failures` attributes: >>> runner.tries 7 >>> runner.failures 0 The comparison between expected outputs and actual outputs is done by an `OutputChecker`. This comparison may be customized with a number of option flags; see the documentation for `testmod` for more information. If the option flags are insufficient, then the comparison may also be customized by passing a subclass of `OutputChecker` to the constructor. The test runner's display output can be controlled in two ways. First, an output function (`out) can be passed to `TestRunner.run`; this function will be called with strings that should be displayed. It defaults to `sys.stdout.write`. If capturing the output is not sufficient, then the display output can be also customized by subclassing DocTestRunner, and overriding the methods `report_start`, `report_success`, `report_unexpected_exception`, and `report_failure`. R3iFicCsv|p t|_|dkr0dtjk}n||_||_||_d|_d|_ i|_ t |_ dS(sc Create a new test runner. Optional keyword arg `checker` is the `OutputChecker` that should be used to compare the expected outputs and actual outputs of doctest examples. Optional keyword arg 'verbose' prints lots of stuff if true, only failures if false; by default, it's true iff '-v' is in sys.argv. Optional argument `optionflags` can be used to control how the test runner compares expected output to actual output, and how it displays failures. See the documentation for `testmod` for more information. s-viN( Rt_checkerR+R=RRt optionflagstoriginal_optionflagsttriestfailurest_name2ftRit_fakeout(RltcheckerRR((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs       cCs_|jr[|jr=|dt|jdt|jq[|dt|jdndS(s Report that the test runner is about to process the given example. (Only displays a message if verbose=True) sTrying: s Expecting: sExpecting nothing N(RRzR^R(RlRR texample((s,/opt/alt/python27/lib64/python2.7/doctest.pyt report_starts   (cCs|jr|dndS(st Report that the given example ran successfully. (Only displays a message if verbose=True) sok N(R(RlRR R R{((s,/opt/alt/python27/lib64/python2.7/doctest.pytreport_successs cCs3||j|||jj|||jdS(s7 Report that the given example failed. N(t_failure_headerRtoutput_differenceR(RlRR R R{((s,/opt/alt/python27/lib64/python2.7/doctest.pytreport_failurescCs.||j||dtt|dS(sO Report that the given example raised an unexpected exception. sException raised: N(R#R^Rh(RlRR R Rc((s,/opt/alt/python27/lib64/python2.7/doctest.pytreport_unexpected_exceptionscCs|jg}|jrs|jdk rJ|jdk rJ|j|jd}nd}|jd|j||jfn!|jd|jd|jf|jd|j}|jt|dj|S(Nit?sFile "%s", line %s, in %ssLine %s, in %ssFailed example:s ( tDIVIDERRORR+RR'RR^R(RlR R RRR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR#s   !  cBsid}}|j}ed\}}} |jj} x e|jD]\} } |je@of|dk} ||_| jrxH| jjD]4\}}|r|j|O_q|j|M_qWn|je @rqDn|d7}| s|j ||| nd|j | f}y7e | j |d|d|jU|jjd }Wn3ek r_n ej}|jjnX|jj}|jjd|}|d kr| | j||jr|}qnej}ej|d d}| s|e|7}n| jd kr(| }n^| | j||jrI|}n=|je@r| e| je||jr|}qn||kr| s<|j||| |q<qD||kr| s|j ||| |n|d7}qD|| kr$| s|j!||| |n|d7}qDe"sDt#d|fqDW||_|j$|||e%||S( s Run the examples in `test`. Write the outcome of each example with one of the `DocTestRunner.report_*` methods, using the writer function `out`. `compileflags` is the set of compiler flags that should be used to execute examples. Return a tuple `(f, t)`, where `t` is the number of examples tried, and `f` is the number of examples that failed. The examples are run in the namespace `test.globs`. iiistsingleiisunknown outcomeN(&RRRt check_outputRRR RRRR!R'RRR.tdebuggerRR+tKeyboardInterruptR=RcRRbRoRzR`tformat_exception_onlyRhRRRR"R%R&RwRut_DocTestRunner__record_outcomeR#(RlR t compileflagsRRRRtSUCCESStFAILUREtBOOMtcheckt examplenumR tquiett optionflagR ROt exceptionR{toutcomeRcR((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__runs                             cCs^|jj|jd\}}||||f|j|j<|j|7_|j|7_dS(s{ Record the fact that the given DocTest (`test`) generated `f` failures out of `t` tried examples. iN(ii(RR*R'RR(RlR RStttf2tt2((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__record_outcomedss..+)\[(?P\d+)\]>$cCs|jj|}|r|jd|jjkr|jjt|jd}|j}t|t r|j dd}n|j t S|j ||SdS(NR'R4tasciiRV(t%_DocTestRunner__LINECACHE_FILENAME_RERRR R'RtintRR7R9RXt splitlinesRytsave_linecache_getlines(RlROtmodule_globalsRR R((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__patched_linecache_getlinesqs!  cCs||_|dkr't|j}ntj}|dkrH|j}n|jt_tj }t ||_ |j j |j j t_ t j|_|jt _tj}tjt_z|j|||SWd|t_|t_ |jt _|t_|r |jjnXdS(sJ Run the examples in `test`, and display the results using the writer function `out`. The examples are run in the namespace `test.globs`. If `clear_globs` is true (the default), then this namespace will be cleared after the test runs, to help with garbage collection. If you would like to examine the namespace after the test completes, then use `clear_globs=False`. `compileflags` gives the set of flags that should be used by the Python compiler when running the examples. If not specified, then it will default to the set of future-import flags that apply to `globs`. The output of each example is checked using `DocTestRunner.check_output`, and the results are formatted by the `DocTestRunner.report_*` methods. N(R R+R2R.R=RtwriteRRRRR+tresetRRRBt*_DocTestRunner__patched_linecache_getlinest displayhookt__displayhook__t_DocTestRunner__runtclear(RlR R/Rt clear_globsRtsave_set_tracetsave_displayhook((s,/opt/alt/python27/lib64/python2.7/doctest.pytrun|s.                c Cs |dkr|j}ng}g}g}d}}x|jjD]}|\}\} } | | ksnt|| 7}|| 7}| dkr|j|qD| dkr|j|| fqD|j|qDW|r^|rt|GdGH|jx|D]} dG| GHqWn|r^t|GdGH|jx&|D]\} } d| | fGHq9Wq^n|r|jGHt|GdGH|jx/|D]$\} \} } d| | | fGHqWn|r|GdGt|jGd GH||Gd G|Gd GHn|rd G|Gd GHn|rdGHnt ||S(s Print a summary of all the test cases that have been run by this DocTestRunner, and return a tuple `(f, t)`, where `f` is the total number of failed examples, and `t` is the total number of tried examples. The optional `verbose` argument controls how detailed the summary is. If the verbosity is not specified, then the DocTestRunner's verbosity is used. isitems had no tests:s sitems passed all tests:s %3d tests in %ssitems had failures:s %3d of %3d in %sstests insitems.s passed andsfailed.s***Test Failed***s failures.s Test passed.N( R+RRRRuRR&RR(R#( RlRtnoteststpassedtfailedttotaltttotalfRR'RSR:tthingR((s,/opt/alt/python27/lib64/python2.7/doctest.pyt summarizesR           cCsv|j}xf|jjD]U\}\}}||kr^||\}}||}||}n||f|| 9cBs)eZdZdZdZdZRS(s_ A class used to check the whether the actual output from a doctest example matches the expected output. `OutputChecker` defines two methods: `check_output`, which compares a given pair of outputs, and returns true if they match; and `output_difference`, which returns a string describing the differences between two outputs. cCs||krtS|t@sI||fd kr0tS||fd krItSn|t@stjdtjtd|}tjdd|}||krtSn|t@rdj|j }dj|j }||krtSn|t @rt ||rtSnt S( s Return True iff the actual output from an example (`got`) matches the expected output (`want`). These strings are always considered to match if they are identical; but depending on what option flags the test runner is using, several non-exact match types are also possible. See the documentation for `TestRunner` for more information about option flags. sTrue s1 sFalse s0 s (?m)^%s\s*?$Rns (?m)^\s*?$RW(sTrue s1 (sFalse s0 ( RyRRRZR[tescapetBLANKLINE_MARKERRRRtRRRw(RlRzR{R((s,/opt/alt/python27/lib64/python2.7/doctest.pyR*s,        cCsL|ttBtB@stS|t@r$tS|jddkoK|jddkS(Ns i(RR R RwRyR(RlRzR{R((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_do_a_fancy_diff>s c Cs|j}|t@s+tjdt|}n|j|||rA|jt}|jt}|t@rt j ||dd}t |d}d}n|t @rt j ||dd}t |d}d}nR|t@rt jdt j} t | j||}d}nds&td d |td j|S|rg|rgd t|t|fS|r{d t|S|rdt|SdSdS(s Return a string describing the differences between the expected output for a given example (`example`) and the actual output (`got`). `optionflags` is the set of option flags used to compare `want` and `got`. s(?m)^[ ]*(?= )tnis#unified diff with -expected +actuals-context diff with expected followed by actualtcharjunksndiff with -expected +actualisBad diff optionsDifferences (%s): RnsExpected: %sGot: %ssExpected: %sGot nothing sExpected nothing Got: %ssExpected nothing Got nothing N(RzRRZR[RZR[RARyRtdifflibt unified_difftlistR t context_diffR tDiffertIS_CHARACTER_JUNKtcompareRuR^R( RlR R{RRzRt got_linestdifftkindtengine((s,/opt/alt/python27/lib64/python2.7/doctest.pyR$Us6         (R4RrRR*R[R$(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs 6 cBs eZdZdZdZRS(sA DocTest example has failed in debugging mode. The exception instance has variables: - test: the DocTest object being run - example: the Example object that failed - got: the actual output cCs||_||_||_dS(N(R R R{(RlR R R{((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs  cCs t|jS(N(R8R (Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyt__str__s(R4RrRRRi(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs  cBs eZdZdZdZRS(sA DocTest example has encountered an unexpected exception The exception instance has variables: - test: the DocTest object being run - example: the Example object that failed - exc_info: the exception info cCs||_||_||_dS(N(R R Rc(RlR R Rc((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs  cCs t|jS(N(R8R (Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyRis(R4RrRRRi(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs  cBs2eZdZddedZdZdZRS(s{ Run doc tests but raise an exception as soon as there is a failure. If an unexpected exception occurs, an UnexpectedException is raised. It contains the test, the example, and the original exception: >>> runner = DebugRunner(verbose=False) >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42', ... {}, 'foo', 'foo.py', 0) >>> try: ... runner.run(test) ... except UnexpectedException, failure: ... pass >>> failure.test is test True >>> failure.example.want '42\n' >>> exc_info = failure.exc_info >>> raise exc_info[0], exc_info[1], exc_info[2] Traceback (most recent call last): ... KeyError We wrap the original exception to give the calling application access to the test and example information. If the output doesn't match, then a DocTestFailure is raised: >>> test = DocTestParser().get_doctest(''' ... >>> x = 1 ... >>> x ... 2 ... ''', {}, 'foo', 'foo.py', 0) >>> try: ... runner.run(test) ... except DocTestFailure, failure: ... pass DocTestFailure objects provide access to the test: >>> failure.test is test True As well as to the example: >>> failure.example.want '2\n' and the actual output: >>> failure.got '1\n' If a failure or error occurs, the globals are left intact: >>> del test.globs['__builtins__'] >>> test.globs {'x': 1} >>> test = DocTestParser().get_doctest(''' ... >>> x = 2 ... >>> raise KeyError ... ''', {}, 'foo', 'foo.py', 0) >>> runner.run(test) Traceback (most recent call last): ... UnexpectedException: >>> del test.globs['__builtins__'] >>> test.globs {'x': 2} But the globals are cleared if there is no error: >>> test = DocTestParser().get_doctest(''' ... >>> x = 2 ... ''', {}, 'foo', 'foo.py', 0) >>> runner.run(test) TestResults(failed=0, attempted=1) >>> test.globs {} cCs5tj||||t}|r1|jjn|S(N(RRORwR.RK(RlR R/RRLtr((s,/opt/alt/python27/lib64/python2.7/doctest.pyROscCst|||dS(N(R(RlRR R Rc((s,/opt/alt/python27/lib64/python2.7/doctest.pyR& scCst|||dS(N(R(RlRR R R{((s,/opt/alt/python27/lib64/python2.7/doctest.pyR% sN(R4RrRR+RyROR&R%(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRsY ic Cs|dkr!tjjd}ntj|sFtd|fn|dkr^|j}ntd|} |rt d|d|} nt d|d|} x3| j ||d|d|D]} | j | qW|r| j ntdkr| an tj| t| j| jS( s* m=None, name=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False, exclude_empty=False Test examples in docstrings in functions and classes reachable from module m (or the current module if m is not supplied), starting with m.__doc__. Also test examples reachable from dict m.__test__ if it exists and is not None. m.__test__ maps names to functions, classes and strings; function and class docstrings are tested even if the name is private; strings are tested directly, as if they were docstrings. Return (#failures, #tests). See help(doctest) for an overview. Optional keyword arg "name" gives the name of the module; by default use m.__name__. Optional keyword arg "globs" gives a dict to be used as the globals when executing examples; by default, use m.__dict__. A copy of this dict is actually used for each docstring, so that each docstring's examples start with a clean slate. Optional keyword arg "extraglobs" gives a dictionary that should be merged into the globals that are used to execute examples. By default, no extra globals are used. This is new in 2.4. Optional keyword arg "verbose" prints lots of stuff if true, prints only failures if false; by default, it's true iff "-v" is in sys.argv. Optional keyword arg "report" prints a summary at the end when true, else prints nothing at the end. In verbose mode, the summary is detailed, else very brief (in fact, empty if all tests passed). Optional keyword arg "optionflags" or's together module constants, and defaults to 0. This is new in 2.3. Possible values (see the docs for details): DONT_ACCEPT_TRUE_FOR_1 DONT_ACCEPT_BLANKLINE NORMALIZE_WHITESPACE ELLIPSIS SKIP IGNORE_EXCEPTION_DETAIL REPORT_UDIFF REPORT_CDIFF REPORT_NDIFF REPORT_ONLY_FIRST_FAILURE Optional keyword arg "raise_on_error" raises an exception on the first unexpected exception or failure. This allows failures to be post-mortem debugged. Advanced tomfoolery: testmod runs methods of a local instance of class doctest.Tester, then merges the results into (or creates) global Tester instance doctest.master. Methods of doctest.master can be called directly too, if you want to do something unusual. Passing report=0 to testmod is especially useful then, to delay displaying a summary. Invoke doctest.master.summarize(verbose) when you're done fiddling. Rstestmod: module required; %rRRRR.RN(R+R=R>R*R5R6RAR4RRRRxRORVtmasterRXR#RR( RR'R.RtreportRRtraise_on_errorRtfindertrunnerR ((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs$E   %    c Csl|r| rtdnt|||\} }|dkrUtjj|}n|dkrji}n |j}|dk r|j|nd|krd|d>> import doctest >>> old = doctest._unittest_reportflags >>> doctest.set_unittest_reportflags(REPORT_NDIFF | ... REPORT_ONLY_FIRST_FAILURE) == old True >>> doctest._unittest_reportflags == (REPORT_NDIFF | ... REPORT_ONLY_FIRST_FAILURE) True Only reporting flags can be set: >>> doctest.set_unittest_reportflags(ELLIPSIS) Traceback (most recent call last): ... ValueError: ('Only reporting flags allowed', 8) >>> doctest.set_unittest_reportflags(old) == (REPORT_NDIFF | ... REPORT_ONLY_FIRST_FAILURE) True sOnly reporting flags allowed(R Rt_unittest_reportflags(R/told((s,/opt/alt/python27/lib64/python2.7/doctest.pyR\s t DocTestCasecBseZdd d d dZdZdZdZdZdZdZ dZ d Z d Z d Z e Zd ZRS(icCsAtjj|||_||_||_||_||_dS(N(tunittesttTestCaseRt_dt_optionflagst _dt_checkert_dt_testt _dt_setUpt _dt_tearDown(RlR RtsetUpttearDownR((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs     cCs,|j}|jdk r(|j|ndS(N(RRR+(RlR ((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs cCs9|j}|jdk r(|j|n|jjdS(N(RRR+R.RK(RlR ((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs cCs|j}tj}t}|j}|t@s;|tO}ntd|d|jdt }z5dd|_ |j |d|j dt \}}Wd|t_X|r|j |j|jndS(NRRRRiFRRL(RR=RR!RR RRRRwR(ROREtfailureExceptiontformat_failureRb(RlR RtnewRRoRR((s,/opt/alt/python27/lib64/python2.7/doctest.pytrunTests        " cCsj|j}|jdkr!d}n d|j}dj|jjdd}d|j|j|||fS(Nsunknown line numbers%sRis:Failed doctest test for %s File "%s", line %s, in %s %s(RRR+RR'RtRO(RlterrR Rtlname((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs   cCsO|jtd|jd|jdt}|j|jdt|jdS(sRun the test case without results and without catching exceptions The unit test framework includes a debug method on test cases and test suites to support post-mortem debugging. The test code is run in such a way that errors are not caught. This way a caller can catch the errors and initiate post-mortem debugging. The DocTestCase provides a debug method that raises UnexpectedException errors if there is an unexpected exception: >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42', ... {}, 'foo', 'foo.py', 0) >>> case = DocTestCase(test) >>> try: ... case.debug() ... except UnexpectedException, failure: ... pass The UnexpectedException contains the test, the example, and the original exception: >>> failure.test is test True >>> failure.example.want '42\n' >>> exc_info = failure.exc_info >>> raise exc_info[0], exc_info[1], exc_info[2] Traceback (most recent call last): ... KeyError If the output doesn't match, then a DocTestFailure is raised: >>> test = DocTestParser().get_doctest(''' ... >>> x = 1 ... >>> x ... 2 ... ''', {}, 'foo', 'foo.py', 0) >>> case = DocTestCase(test) >>> try: ... case.debug() ... except DocTestFailure, failure: ... pass DocTestFailure objects provide access to the test: >>> failure.test is test True As well as to the example: >>> failure.example.want '2\n' and the actual output: >>> failure.got '1\n' RRRRLN(RRRRRwRORR(RlRo((s,/opt/alt/python27/lib64/python2.7/doctest.pyR s B cCs |jjS(N(RR'(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCstt|t|k rtS|j|jkos|j|jkos|j|jkos|j|jkos|j|jkS(N(RRRRRRR(RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCs ||k S(N((RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCs"t|j|j|j|jfS(N(RRRRR(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCs4|jjjd}d|ddj|d fS(NRs%s (%s)i(RR'RtR(RlR'((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCsd|jjS(Ns Doctest: (RR'(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pytshortDescription sN(R4RrR+RRRRRR RRRRRRiR(((s,/opt/alt/python27/lib64/python2.7/doctest.pyRs     H    tSkipDocTestCasecBs2eZdZdZdZdZeZRS(cCs||_tj|ddS(N(RBRRR+(RlRB((s,/opt/alt/python27/lib64/python2.7/doctest.pyR$ s cCs|jddS(Ns-DocTestSuite will not work with -O2 and above(tskipTest(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR( scCsdS(N((Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyt test_skip+ scCsd|jjS(NsSkipping tests from %s(RBR4(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR. s(R4RrRRRRRi(((s,/opt/alt/python27/lib64/python2.7/doctest.pyR# s     c Ks*|d krt}nt|}|j|d|d|}| r{tjjdkr{tj}|j t ||S|st |dn|j tj}xz|D]r}t |jdkrqn|js |j}|dd kr|d }n||_n|j t||qW|S( s Convert doctest tests for a module to a unittest test suite. This converts each documentation string in a module that contains doctest tests to a unittest test case. If any of the tests in a doc string fail, then the test case fails. An exception is raised showing the name of the file containing the test and a (sometimes approximate) line number. The `module` argument provides the module to be tested. The argument can be either a module or a module name. If no argument is given, the calling module is used. A number of options may be provided as keyword arguments: setUp A set-up function. This is called before running the tests in each file. The setUp function will be passed a DocTest object. The setUp function can access the test globals as the globs attribute of the test passed. tearDown A tear-down function. This is called after running the tests in each file. The tearDown function will be passed a DocTest object. The tearDown function can access the test globals as the globs attribute of the test passed. globs A dictionary containing initial global variables for the tests. optionflags A set of doctest option flags expressed as an integer. R.Rishas no docstringsiis.pycs.pyoiN(s.pycs.pyo(R+RRDRxR=R/toptimizeRt TestSuitetaddTestRRRR&RRORR( RBR.Rt test_finderRRtsuiteR RO((s,/opt/alt/python27/lib64/python2.7/doctest.pyR4 s,%           t DocFileCasecBs)eZdZdZeZdZRS(cCsdj|jjjdS(Nt_R(RRR'Rt(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCs |jjS(N(RRO(Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCsd|jj|jj|fS(Ns2Failed doctest test for %s File "%s", line 0 %s(RR'RO(RlR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR s(R4RrRRRiR(((s,/opt/alt/python27/lib64/python2.7/doctest.pyR} s  c Ks|dkri}n |j}|r=| r=tdnt|||\}}d|krn||d>> text = ''' ... Here are examples of simple math. ... ... Python has super accurate integer addition ... ... >>> 2 + 2 ... 5 ... ... And very friendly error messages: ... ... >>> 1/0 ... To Infinity ... And ... Beyond ... ... You can use logic if you want: ... ... >>> if 0: ... ... blah ... ... blah ... ... ... ... Ho hum ... ''' >>> print script_from_examples(text) # Here are examples of simple math. # # Python has super accurate integer addition # 2 + 2 # Expected: ## 5 # # And very friendly error messages: # 1/0 # Expected: ## To Infinity ## And ## Beyond # # You can use logic if you want: # if 0: blah blah # # Ho hum is # Expected:s s## Ri( RRR7R RRRzRtRtpopR(R\RtpieceRzR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR s:  4.cCs{t|}tj|}g|D]}|j|kr%|^q%}|s^t|dn|d}t|j}|S(sExtract the test sources from a doctest docstring as a script. Provide the module (or dotted name of the module) containing the test to be debugged and the name (within the module) of the object with the doc string with tests to be debugged. snot found in testsi(RDRRxR'RRR(RBR'RR:R ttestsrc((s,/opt/alt/python27/lib64/python2.7/doctest.pyRC s ( cCs t|}t|||dS(s4Debug a single doctest docstring, in argument `src`'N(Rt debug_script(tsrctpmR.R((s,/opt/alt/python27/lib64/python2.7/doctest.pyRS s cCsddl}tjdd}t|d}|j||jz|r\|j}ni}|ryt|||Wqtj dGH|j tj dqXn|j d|||Wdt j |XdS( s7Debug a test script. `src` is the script, as a string.iNs.pyt doctestdebugRiis execfile(%r)(RttempfiletmktempRMREtcloseRtexecfileR=Rct post_mortemRORKtremove(RRR.Rt srcfilenameRS((s,/opt/alt/python27/lib64/python2.7/doctest.pyRX s"   cCs2t|}t||}t|||jdS(sDebug a single doctest docstring. Provide the module (or dotted name of the module) containing the test to be debugged and the name (within the module) of the object with the docstring with tests to be debugged. N(RDRRR(RBR'RR((s,/opt/alt/python27/lib64/python2.7/doctest.pyR x s t _TestClasscBs)eZdZdZdZdZRS(s A pointless class, for sanity-checking of docstring testing. Methods: square() get() >>> _TestClass(13).get() + _TestClass(-12).get() 1 >>> hex(_TestClass(13).square().get()) '0xa9' cCs ||_dS(sval -> _TestClass object with associated value val. >>> t = _TestClass(123) >>> print t.get() 123 N(R (RlR ((s,/opt/alt/python27/lib64/python2.7/doctest.pyR scCs|jd|_|S(sosquare() -> square TestClass's associated value >>> _TestClass(13).square().get() 169 i(R (Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pytsquare scCs|jS(s}get() -> return TestClass's associated value. >>> x = _TestClass(-42) >>> print x.get() -42 (R (Rl((s,/opt/alt/python27/lib64/python2.7/doctest.pyR* s(R4RrRRRR*(((s,/opt/alt/python27/lib64/python2.7/doctest.pyR s  s Example of a string object, searched as-is. >>> x = 1; y = 2 >>> x + y, x * y (3, 2) Rs In 2.2, boolean expressions displayed 0 or 1. By default, we still accept them. This can be disabled by passing DONT_ACCEPT_TRUE_FOR_1 to the new optionflags argument. >>> 4 == 4 1 >>> 4 == 4 True >>> 4 > 4 0 >>> 4 > 4 False sbool-int equivalences Blank lines can be marked with : >>> print 'foo\n\nbar\n' foo bar s blank liness If the ellipsis flag is used, then '...' can be used to elide substrings in the desired output: >>> print range(1000) #doctest: +ELLIPSIS [0, 1, 2, ..., 999] tellipsiss| If the whitespace normalization flag is used, then differences in whitespace are ignored. >>> print range(30) #doctest: +NORMALIZE_WHITESPACE [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] swhitespace normalizationcCs1gtjdD]"}|r|ddkr|^q}|stjjtjd}dtkrtjj|\}}ndj|GHdSx|D]}|jdrtjj |\}}tjj d|t |d }tjd=t |\}}nt |d t\}}|rdSqWdS( NiiRREsusage: {0} [-v] file ...is.pyiRQ(R=RRKRRpR;tsplitexttformatRkRttinsertR:RRRw(targt testfilesR'RROtdirnameRR((s,/opt/alt/python27/lib64/python2.7/doctest.pyt_test s$6  R(WRt __docformat__t__all__R(R=R`R5RRKRZRR^RRRuR!t collectionsR"R#R$RRRRRRRRRR R R R RZRsR2RDRTR,t __stdout__R+RYR^RhRiRRRRRRHR RRRRRt ExceptionRRRRkRyRwRRRRRRRRRRRRRRRRRR RRRR4texit(((s,/opt/alt/python27/lib64/python2.7/doctest.pyt.s  H0                 1  $ $HL)n  f    z? $I   I R  ,