/usr/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.pyc61430644editdlrm
abc.pyo60870644editdlrm
aifc.py345790644editdlrm
aifc.pyc304590644editdlrm
aifc.pyo304590644editdlrm
antigravity.py600644editdlrm
antigravity.pyc2030644editdlrm
antigravity.pyo2030644editdlrm
anydbm.py26630644editdlrm
anydbm.pyc28000644editdlrm
anydbm.pyo28000644editdlrm
argparse.py892280644editdlrm
argparse.pyc643670644editdlrm
argparse.pyo642020644editdlrm
ast.py118050644editdlrm
ast.pyc129380644editdlrm
ast.pyo129380644editdlrm
asynchat.py115810644editdlrm
asynchat.pyc88100644editdlrm
asynchat.pyo88100644editdlrm
asyncore.py209430644editdlrm
asyncore.pyc188930644editdlrm
asyncore.pyo188930644editdlrm
atexit.py17050644editdlrm
atexit.pyc22030644editdlrm
atexit.pyo22030644editdlrm
audiodev.py75970644editdlrm
audiodev.pyc84690644editdlrm
audiodev.pyo84690644editdlrm
base64.py118060755editdlrm
base64.pyc112970644editdlrm
base64.pyo112970644editdlrm
BaseHTTPServer.py227470644editdlrm
BaseHTTPServer.pyc217220644editdlrm
BaseHTTPServer.pyo217220644editdlrm
Bastion.py57440644editdlrm
Bastion.pyc66600644editdlrm
Bastion.pyo66600644editdlrm
bdb.py217140644editdlrm
bdb.pyc191010644editdlrm
bdb.pyo191010644editdlrm
binhex.py146980644editdlrm
binhex.pyc154600644editdlrm
binhex.pyo154600644editdlrm
bisect.py25950644editdlrm
bisect.pyc30710644editdlrm
bisect.pyo30710644editdlrm
calendar.py233840644editdlrm
calendar.pyc279130644editdlrm
calendar.pyo279130644editdlrm
cgi.py363080755editdlrm
cgi.pyc333660644editdlrm
cgi.pyo333660644editdlrm
CGIHTTPServer.py130890644editdlrm
CGIHTTPServer.pyc110180644editdlrm
CGIHTTPServer.pyo110180644editdlrm
cgitb.py121750644editdlrm
cgitb.pyc121380644editdlrm
cgitb.pyo121380644editdlrm
chunk.py54190644editdlrm
chunk.pyc56020644editdlrm
chunk.pyo56020644editdlrm
cmd.py150260644editdlrm
cmd.pyc140390644editdlrm
cmd.pyo140390644editdlrm
code.py101890644editdlrm
code.pyc103340644editdlrm
code.pyo103340644editdlrm
codecs.py361430644editdlrm
codecs.pyc368240644editdlrm
codecs.pyo368240644editdlrm
codeop.py59990644editdlrm
codeop.pyc65970644editdlrm
codeop.pyo65970644editdlrm
collections.py277980644editdlrm
collections.pyc261630644editdlrm
collections.pyo261120644editdlrm
colorsys.py36910644editdlrm
colorsys.pyc39910644editdlrm
colorsys.pyo39910644editdlrm
commands.py25450644editdlrm
commands.pyc24690644editdlrm
commands.pyo24690644editdlrm
compileall.py77630644editdlrm
compileall.pyc70170644editdlrm
compileall.pyo70170644editdlrm
ConfigParser.py277460644editdlrm
ConfigParser.pyc252130644editdlrm
ConfigParser.pyo252130644editdlrm
contextlib.py44240644editdlrm
contextlib.pyc44540644editdlrm
contextlib.pyo44540644editdlrm
Cookie.py265380644editdlrm
Cookie.pyc226580644editdlrm
Cookie.pyo226580644editdlrm
cookielib.py654860644editdlrm
cookielib.pyc547250644editdlrm
cookielib.pyo545370644editdlrm
copy.py115330644editdlrm
copy.pyc121700644editdlrm
copy.pyo120780644editdlrm
copy_reg.py69740644editdlrm
copy_reg.pyc51670644editdlrm
copy_reg.pyo51230644editdlrm
cProfile.py65730755editdlrm
cProfile.pyc63950644editdlrm
cProfile.pyo63950644editdlrm
crypt.py22920644editdlrm
crypt.pyc29600644editdlrm
crypt.pyo29600644editdlrm
csv.py167080644editdlrm
csv.pyc135070644editdlrm
csv.pyo135070644editdlrm
dbhash.py4980644editdlrm
dbhash.pyc7180644editdlrm
dbhash.pyo7180644editdlrm
decimal.py2219330644editdlrm
decimal.pyc1721550644editdlrm
decimal.pyo1721550644editdlrm
difflib.py823250644editdlrm
difflib.pyc618980644editdlrm
difflib.pyo618470644editdlrm
dircache.py11260644editdlrm
dircache.pyc15760644editdlrm
dircache.pyo15760644editdlrm
dis.py64990644editdlrm
dis.pyc62280644editdlrm
dis.pyo62280644editdlrm
doctest.py1050950644editdlrm
doctest.pyc836370644editdlrm
doctest.pyo833500644editdlrm
DocXMLRPCServer.py107680644editdlrm
DocXMLRPCServer.pyc101950644editdlrm
DocXMLRPCServer.pyo100860644editdlrm
dumbdbm.py91410644editdlrm
dumbdbm.pyc67460644editdlrm
dumbdbm.pyo67460644editdlrm
dummy_thread.py44180644editdlrm
dummy_thread.pyc53940644editdlrm
dummy_thread.pyo53940644editdlrm
dummy_threading.py28040644editdlrm
dummy_threading.pyc12850644editdlrm
dummy_threading.pyo12850644editdlrm
filecmp.py95880644editdlrm
filecmp.pyc96220644editdlrm
filecmp.pyo96220644editdlrm
fileinput.py137460644editdlrm
fileinput.pyc145000644editdlrm
fileinput.pyo145000644editdlrm
fnmatch.py33150644editdlrm
fnmatch.pyc36140644editdlrm
fnmatch.pyo36140644editdlrm
formatter.py149110644editdlrm
formatter.pyc191780644editdlrm
formatter.pyo191780644editdlrm
fpformat.py47320644editdlrm
fpformat.pyc47030644editdlrm
fpformat.pyo47030644editdlrm
fractions.py223900644editdlrm
fractions.pyc197110644editdlrm
fractions.pyo197110644editdlrm
ftplib.py385550644editdlrm
ftplib.pyc349390644editdlrm
ftplib.pyo349390644editdlrm
functools.py48060644editdlrm
functools.pyc66290644editdlrm
functools.pyo66290644editdlrm
genericpath.py32010644editdlrm
genericpath.pyc35170644editdlrm
genericpath.pyo35170644editdlrm
getopt.py73190644editdlrm
getopt.pyc66540644editdlrm
getopt.pyo66090644editdlrm
getpass.py55630644editdlrm
getpass.pyc47440644editdlrm
getpass.pyo47440644editdlrm
gettext.py226660644editdlrm
gettext.pyc180040644editdlrm
gettext.pyo180040644editdlrm
glob.py31140644editdlrm
glob.pyc29430644editdlrm
glob.pyo29430644editdlrm
gzip.py190280644editdlrm
gzip.pyc152360644editdlrm
gzip.pyo152360644editdlrm
hashlib.py78410644editdlrm
hashlib.pyc69190644editdlrm
hashlib.pyo69190644editdlrm
heapq.py182950644editdlrm
heapq.pyc145640644editdlrm
heapq.pyo145640644editdlrm
hmac.py45880644editdlrm
hmac.pyc45420644editdlrm
hmac.pyo45420644editdlrm
htmlentitydefs.py180560644editdlrm
htmlentitydefs.pyc63670644editdlrm
htmlentitydefs.pyo63670644editdlrm
htmllib.py128690644editdlrm
htmllib.pyc203090644editdlrm
htmllib.pyo203090644editdlrm
HTMLParser.py171710644editdlrm
HTMLParser.pyc137270644editdlrm
HTMLParser.pyo134220644editdlrm
httplib.py533060644editdlrm
httplib.pyc387240644editdlrm
httplib.pyo385400644editdlrm
ihooks.py189860644editdlrm
ihooks.pyc213720644editdlrm
ihooks.pyo213720644editdlrm
imaplib.py483660644editdlrm
imaplib.pyc450110644editdlrm
imaplib.pyo423100644editdlrm
imghdr.py35410644editdlrm
imghdr.pyc48380644editdlrm
imghdr.pyo48380644editdlrm
imputil.py257640644editdlrm
imputil.pyc156230644editdlrm
imputil.pyo154450644editdlrm
inspect.py430080644editdlrm
inspect.pyc402290644editdlrm
inspect.pyo402290644editdlrm
io.py33220644editdlrm
io.pyc35890644editdlrm
io.pyo35890644editdlrm
keyword.py19950755editdlrm
keyword.pyc21050644editdlrm
keyword.pyo21050644editdlrm
linecache.py40270644editdlrm
linecache.pyc32720644editdlrm
linecache.pyo32720644editdlrm
locale.py1028340644editdlrm
locale.pyc566100644editdlrm
locale.pyo566100644editdlrm
macpath.py62890644editdlrm
macpath.pyc76810644editdlrm
macpath.pyo76810644editdlrm
macurl2path.py27310644editdlrm
macurl2path.pyc22440644editdlrm
macurl2path.pyo22440644editdlrm
mailbox.py812400644editdlrm
mailbox.pyc767170644editdlrm
mailbox.pyo766700644editdlrm
mailcap.py84040644editdlrm
mailcap.pyc79550644editdlrm
mailcap.pyo79550644editdlrm
markupbase.py146430644editdlrm
markupbase.pyc92670644editdlrm
markupbase.pyo90710644editdlrm
md5.py3580644editdlrm
md5.pyc3780644editdlrm
md5.pyo3780644editdlrm
mhlib.py334340644editdlrm
mhlib.pyc337770644editdlrm
mhlib.pyo337770644editdlrm
mimetools.py71680644editdlrm
mimetools.pyc82010644editdlrm
mimetools.pyo82010644editdlrm
mimetypes.py210280644editdlrm
mimetypes.pyc184890644editdlrm
mimetypes.pyo184890644editdlrm
MimeWriter.py64820644editdlrm
MimeWriter.pyc73640644editdlrm
MimeWriter.pyo73640644editdlrm
mimify.py150200755editdlrm
mimify.pyc120010644editdlrm
mimify.pyo120010644editdlrm
modulefinder.py244610644editdlrm
modulefinder.pyc191270644editdlrm
modulefinder.pyo190450644editdlrm
multifile.py48200644editdlrm
multifile.pyc54200644editdlrm
multifile.pyo53780644editdlrm
mutex.py18780644editdlrm
mutex.pyc25160644editdlrm
mutex.pyo25160644editdlrm
netrc.py58880644editdlrm
netrc.pyc47140644editdlrm
netrc.pyo47140644editdlrm
new.py6100644editdlrm
new.pyc8620644editdlrm
new.pyo8620644editdlrm
nntplib.py214700644editdlrm
nntplib.pyc210440644editdlrm
nntplib.pyo210440644editdlrm
ntpath.py194290644editdlrm
ntpath.pyc131290644editdlrm
ntpath.pyo131290644editdlrm
nturl2path.py24190644editdlrm
nturl2path.pyc18150644editdlrm
nturl2path.pyo18150644editdlrm
numbers.py103190644editdlrm
numbers.pyc140120644editdlrm
numbers.pyo140120644editdlrm
opcode.py54740644editdlrm
opcode.pyc61450644editdlrm
opcode.pyo61450644editdlrm
optparse.py612030644editdlrm
optparse.pyc538940644editdlrm
optparse.pyo538110644editdlrm
os.py259100644editdlrm
os.pyc256890644editdlrm
os.pyo256890644editdlrm
os2emxpath.py46350644editdlrm
os2emxpath.pyc45250644editdlrm
os2emxpath.pyo45250644editdlrm
pdb.doc79140644editdlrm
pdb.py460980755editdlrm
pdb.pyc436690644editdlrm
pdb.pyo436690644editdlrm
pickle.py454890644editdlrm
pickle.pyc385600644editdlrm
pickle.pyo383640644editdlrm
pickletools.py745230644editdlrm
pickletools.pyc570320644editdlrm
pickletools.pyo561710644editdlrm
pipes.py95820644editdlrm
pipes.pyc93080644editdlrm
pipes.pyo93080644editdlrm
pkgutil.py202430644editdlrm
pkgutil.pyc189590644editdlrm
pkgutil.pyo189590644editdlrm
platform.py528010755editdlrm
platform.pyc379710644editdlrm
platform.pyo379710644editdlrm
plistlib.py158100644editdlrm
plistlib.pyc199630644editdlrm
plistlib.pyo198770644editdlrm
popen2.py84160644editdlrm
popen2.pyc90250644editdlrm
popen2.pyo89830644editdlrm
poplib.py128240644editdlrm
poplib.pyc133450644editdlrm
poplib.pyo133450644editdlrm
posixfile.py80030644editdlrm
posixfile.pyc76520644editdlrm
posixfile.pyo76520644editdlrm
posixpath.py142930644editdlrm
posixpath.pyc114620644editdlrm
posixpath.pyo114620644editdlrm
pprint.py117770644editdlrm
pprint.pyc101940644editdlrm
pprint.pyo100170644editdlrm
profile.py227810755editdlrm
profile.pyc164560644editdlrm
profile.pyo162090644editdlrm
pstats.py267120644editdlrm
pstats.pyc250130644editdlrm
pstats.pyo250130644editdlrm
pty.py50580644editdlrm
pty.pyc49660644editdlrm
pty.pyo49660644editdlrm
pyclbr.py133880644editdlrm
pyclbr.pyc96510644editdlrm
pyclbr.pyo96510644editdlrm
pydoc.py957390755editdlrm
pydoc.pyc923420644editdlrm
pydoc.pyo922780644editdlrm
py_compile.py59360644editdlrm
py_compile.pyc64280644editdlrm
py_compile.pyo64280644editdlrm
Queue.py85770644editdlrm
Queue.pyc94240644editdlrm
Queue.pyo94240644editdlrm
quopri.py69680755editdlrm
quopri.pyc65740644editdlrm
quopri.pyo65740644editdlrm
random.py324570644editdlrm
random.pyc257040644editdlrm
random.pyo257040644editdlrm
re.py134230644editdlrm
re.pyc134130644editdlrm
re.pyo134130644editdlrm
repr.py42960644editdlrm
repr.pyc53850644editdlrm
repr.pyo53850644editdlrm
rexec.py201480644editdlrm
rexec.pyc238070644editdlrm
rexec.pyo238070644editdlrm
rfc822.py335420644editdlrm
rfc822.pyc318130644editdlrm
rfc822.pyo318130644editdlrm
rlcompleter.py59910644editdlrm
rlcompleter.pyc60780644editdlrm
rlcompleter.pyo60780644editdlrm
robotparser.py76950644editdlrm
robotparser.pyc80030644editdlrm
robotparser.pyo80030644editdlrm
runpy.py110810644editdlrm
runpy.pyc88030644editdlrm
runpy.pyo88030644editdlrm
sched.py50880644editdlrm
sched.pyc49940644editdlrm
sched.pyo49940644editdlrm
sets.py190500644editdlrm
sets.pyc168950644editdlrm
sets.pyo168950644editdlrm
sgmllib.py178840644editdlrm
sgmllib.pyc154360644editdlrm
sgmllib.pyo154360644editdlrm
sha.py3930644editdlrm
sha.pyc4210644editdlrm
sha.pyo4210644editdlrm
shelve.py81780644editdlrm
shelve.pyc102560644editdlrm
shelve.pyo102560644editdlrm
shlex.py111640644editdlrm
shlex.pyc75580644editdlrm
shlex.pyo75580644editdlrm
shutil.py198710644editdlrm
shutil.pyc192590644editdlrm
shutil.pyo192590644editdlrm
SimpleHTTPServer.py79970644editdlrm
SimpleHTTPServer.pyc80100644editdlrm
SimpleHTTPServer.pyo80100644editdlrm
SimpleXMLRPCServer.py258120644editdlrm
SimpleXMLRPCServer.pyc228630644editdlrm
SimpleXMLRPCServer.pyo228630644editdlrm
site.py212960644editdlrm
site.pyc207860644editdlrm
site.pyo207860644editdlrm
smtpd.py185420755editdlrm
smtpd.pyc158830644editdlrm
smtpd.pyo158830644editdlrm
smtplib.py321340755editdlrm
smtplib.pyc303040644editdlrm
smtplib.pyo303040644editdlrm
sndhdr.py59730644editdlrm
sndhdr.pyc73610644editdlrm
sndhdr.pyo73610644editdlrm
socket.py206150644editdlrm
socket.pyc161520644editdlrm
socket.pyo160660644editdlrm
SocketServer.py239480644editdlrm
SocketServer.pyc240870644editdlrm
SocketServer.pyo240870644editdlrm
sre.py3840644editdlrm
sre.pyc5190644editdlrm
sre.pyo5190644editdlrm
sre_compile.py198230644editdlrm
sre_compile.pyc125600644editdlrm
sre_compile.pyo124040644editdlrm
sre_constants.py71970644editdlrm
sre_constants.pyc61950644editdlrm
sre_constants.pyo61950644editdlrm
sre_parse.py307000644editdlrm
sre_parse.pyc211560644editdlrm
sre_parse.pyo211560644editdlrm
ssl.py393100644editdlrm
ssl.pyc327160644editdlrm
ssl.pyo327160644editdlrm
stat.py18420644editdlrm
stat.pyc27510644editdlrm
stat.pyo27510644editdlrm
statvfs.py8980644editdlrm
statvfs.pyc6200644editdlrm
statvfs.pyo6200644editdlrm
string.py215480644editdlrm
string.pyc204590644editdlrm
string.pyo204590644editdlrm
StringIO.py106620644editdlrm
StringIO.pyc114800644editdlrm
StringIO.pyo114800644editdlrm
stringold.py124490644editdlrm
stringold.pyc125490644editdlrm
stringold.pyo125490644editdlrm
stringprep.py135220644editdlrm
stringprep.pyc144870644editdlrm
stringprep.pyo144150644editdlrm
struct.py820644editdlrm
struct.pyc2390644editdlrm
struct.pyo2390644editdlrm
subprocess.py505200644editdlrm
subprocess.pyc323980644editdlrm
subprocess.pyo323980644editdlrm
sunau.py172220644editdlrm
sunau.pyc183940644editdlrm
sunau.pyo183940644editdlrm
sunaudio.py13990644editdlrm
sunaudio.pyc19870644editdlrm
sunaudio.pyo19870644editdlrm
symbol.py20570755editdlrm
symbol.pyc30260644editdlrm
symbol.pyo30260644editdlrm
symtable.py74370644editdlrm
symtable.pyc117860644editdlrm
symtable.pyo116550644editdlrm
sysconfig.py228520644editdlrm
sysconfig.pyc178180644editdlrm
sysconfig.pyo178180644editdlrm
tabnanny.py113390755editdlrm
tabnanny.pyc82470644editdlrm
tabnanny.pyo82470644editdlrm
tarfile.py906550644editdlrm
tarfile.pyc761930644editdlrm
tarfile.pyo761930644editdlrm
telnetlib.py270360644editdlrm
telnetlib.pyc231540644editdlrm
telnetlib.pyo231540644editdlrm
tempfile.py195470644editdlrm
tempfile.pyc203440644editdlrm
tempfile.pyo203440644editdlrm
textwrap.py172800644editdlrm
textwrap.pyc120970644editdlrm
textwrap.pyo120050644editdlrm
this.py10020644editdlrm
this.pyc12200644editdlrm
this.pyo12200644editdlrm
threading.py473770644editdlrm
threading.pyc427260644editdlrm
threading.pyo405520644editdlrm
timeit.py127910755editdlrm
timeit.pyc121830644editdlrm
timeit.pyo121830644editdlrm
toaiff.py31420644editdlrm
toaiff.pyc31060644editdlrm
toaiff.pyo31060644editdlrm
token.py29220644editdlrm
token.pyc38160644editdlrm
token.pyo38160644editdlrm
tokenize.py174830644editdlrm
tokenize.pyc145050644editdlrm
tokenize.pyo144490644editdlrm
trace.py298910755editdlrm
trace.pyc227930644editdlrm
trace.pyo227300644editdlrm
traceback.py112850644editdlrm
traceback.pyc116790644editdlrm
traceback.pyo116790644editdlrm
tty.py8790644editdlrm
tty.pyc13170644editdlrm
tty.pyo13170644editdlrm
types.py20940644editdlrm
types.pyc27250644editdlrm
types.pyo27250644editdlrm
urllib.py602280644editdlrm
urllib.pyc512410644editdlrm
urllib.pyo511460644editdlrm
urllib2.py525410644editdlrm
urllib2.pyc473020644editdlrm
urllib2.pyo472070644editdlrm
urlparse.py204610644editdlrm
urlparse.pyc180150644editdlrm
urlparse.pyo180150644editdlrm
user.py16270644editdlrm
user.pyc17240644editdlrm
user.pyo17240644editdlrm
UserDict.py70600644editdlrm
UserDict.pyc97110644editdlrm
UserDict.pyo97110644editdlrm
UserList.py36440644editdlrm
UserList.pyc65770644editdlrm
UserList.pyo65770644editdlrm
UserString.py96870755editdlrm
UserString.pyc148640644editdlrm
UserString.pyo148640644editdlrm
uu.py66970755editdlrm
uu.pyc43900644editdlrm
uu.pyo43900644editdlrm
uuid.py235300644editdlrm
uuid.pyc233660644editdlrm
uuid.pyo232500644editdlrm
warnings.py148230644editdlrm
warnings.pyc135100644editdlrm
warnings.pyo127210644editdlrm
wave.py185820644editdlrm
wave.pyc200130644editdlrm
wave.pyo198690644editdlrm
weakref.py148300644editdlrm
weakref.pyc164410644editdlrm
weakref.pyo164410644editdlrm
webbrowser.py227250755editdlrm
webbrowser.pyc197500644editdlrm
webbrowser.pyo197050644editdlrm
whichdb.py33790644editdlrm
whichdb.pyc22410644editdlrm
whichdb.pyo22410644editdlrm
wsgiref.egg-info1870644editdlrm
xdrlib.py60690644editdlrm
xdrlib.pyc99020644editdlrm
xdrlib.pyo99020644editdlrm
xmllib.py348650644editdlrm
xmllib.pyc268480644editdlrm
xmllib.pyo268480644editdlrm
xmlrpclib.py521360644editdlrm
xmlrpclib.pyc441060644editdlrm
xmlrpclib.pyo439220644editdlrm
zipfile.py594770644editdlrm
zipfile.pyc421370644editdlrm
zipfile.pyo421370644editdlrm
_abcoll.py186190644editdlrm
_abcoll.pyc256820644editdlrm
_abcoll.pyo256820644editdlrm
_LWPCookieJar.py65530644editdlrm
_LWPCookieJar.pyc54340644editdlrm
_LWPCookieJar.pyo54340644editdlrm
_MozillaCookieJar.py57970644editdlrm
_MozillaCookieJar.pyc44610644editdlrm
_MozillaCookieJar.pyo44220644editdlrm
_osx_support.py191000644editdlrm
_osx_support.pyc117580644editdlrm
_osx_support.pyo117580644editdlrm
_pyio.py696300644editdlrm
_pyio.pyc647010644editdlrm
_pyio.pyo647010644editdlrm
_strptime.py207280644editdlrm
_strptime.pyc151720644editdlrm
_strptime.pyo151720644editdlrm
_sysconfigdata.py197320644editdlrm
_sysconfigdata.pyc229680644editdlrm
_sysconfigdata.pyo229680644editdlrm
_threading_local.py72600644editdlrm
_threading_local.pyc63730644editdlrm
_threading_local.pyo63730644editdlrm
_weakrefset.py59110644editdlrm
_weakrefset.pyc96780644editdlrm
_weakrefset.pyo96780644editdlrm
__future__.py43800644editdlrm
__future__.pyc42230644editdlrm
__future__.pyo42230644editdlrm
__phello__.foo.py640644editdlrm
__phello__.foo.pyc1250644editdlrm
__phello__.foo.pyo1250644editdlrm
Edit: /usr/lib64/python2.7/doctest.pyo (83350B)
 zfc!@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/usr/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/usr/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/usr/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/usr/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/usr/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/usr/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/usr/lib64/python2.7/doctest.pyRbs   cCsAtj||t|dr(|`n|js=d|_ndS(NRjt(R!ttruncateRIRjtbuf(Rltsize((s/usr/lib64/python2.7/doctest.pyRos   N(R4t __module__RbR+Ro(((s/usr/lib64/python2.7/doctest.pyRis cCst|kr||kS|jt}dt|}}|d}|rt|j|rmt|}|d=qttSn|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 ii(tELLIPSIS_MARKERtsplitR&t startswithtFalseRktfindtTrue(twanttgottwststartpostendpostw((s/usr/lib64/python2.7/doctest.pyt_ellipsis_matchs0          cCs"|j}|rd|SdSdS(s)Return a commented form of the given lines# t#N(trstrip(tline((s/usr/lib64/python2.7/doctest.pyt _comment_lineAs cCsdt|}}|jd}|dkr7|}n|jdd|}|dkra|}n|jdd|}|dkr|d}n|||!S(Nis t:t.i(R&Rwtrfind(tmsgtstarttendti((s/usr/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__outRvt$_OutputRedirectingPdb__debugger_usedtpdbtPdbt__init__t use_rawinput(Rltout((s/usr/lib64/python2.7/doctest.pyRis  cCs>t|_|dkr'tjj}ntjj||dS(N( RxRR+R=R?tf_backRRt set_trace(Rltframe((s/usr/lib64/python2.7/doctest.pyRps  cCs |jrtjj|ndS(N(RRRt set_continue(Rl((s/usr/lib64/python2.7/doctest.pyRvs cGs=tj}|jt_ztjj||SWd|t_XdS(N(R=RRRRttrace_dispatch(Rltargst save_stdout((s/usr/lib64/python2.7/doctest.pyR|s   N(R4Rrt__doc__RR+RRR(((s/usr/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__)(R5R6RARut ValueErrorRIRKtpathRtRR4R&R=targvtcurdirtjoin(RBRtbasedir((s/usr/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+tsourceRytlinenoR]toptionstexc_msg(RlRRyRRR]R((s/usr/lib64/python2.7/doctest.pyRs         cCst|t|k rtS|j|jko|j|jko|j|jko|j|jko|j|jko|j|jkS(N(ttypetNotImplementedRRyRR]RR(Rltother((s/usr/lib64/python2.7/doctest.pyt__eq__scCs ||k S(N((RlR((s/usr/lib64/python2.7/doctest.pyt__ne__scCs(t|j|j|j|j|jfS(N(thashRRyRR]R(Rl((s/usr/lib64/python2.7/doctest.pyt__hash__sN(R4RrRR+RRRR(((s/usr/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@||_||_|j|_||_||_||_dS(s Create a new DocTest containing the given examples. The DocTest's globals are initialized with a copy of `globs`. N(texamplest docstringtcopyR.R'ROR(RlRR.R'RORR((s/usr/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/usr/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/usr/lib64/python2.7/doctest.pyR#scCs ||k S(N((RlR((s/usr/lib64/python2.7/doctest.pyR.scCs"t|j|j|j|jfS(N(RRR'ROR(Rl((s/usr/lib64/python2.7/doctest.pyR1scCsVt|tsdSt|j|j|jt|f|j|j|jt|fS(Ni(R7RtcmpR'RORtid(RlR((s/usr/lib64/python2.7/doctest.pyt__cmp__5s!( R4RrRRRRRRR(((s/usr/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_indenttltoutputtcharnoRtmRRRyR((s/usr/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/usr/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/usr/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 iRWRiRys *$iRN( R&RRtt_check_prompt_blankt _check_prefixRRZtmatcht _EXCEPTION_RER+t _find_options( RlRR'RR]t source_linestslRRyt want_linestwlRR((s/usr/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+RxR5Rt isfunctionRt func_globalstisclassR4RrRIR7tpropertyR(RlRBtobject((s/usr/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,R7t basestringRRtismethodt staticmethodt classmethodtim_funcR( RlRRR'RBRR.tseenttesttvalnametval((s/usr/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/usr/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/usr/lib64/python2.7/doctest.pyR s<           N( R4RrRRvRRxRR+RwRRRR (((s/usr/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/usr/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(RRyR^R(RlRRtexample((s/usr/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(RlRRRRz((s/usr/lib64/python2.7/doctest.pytreport_successs cCs3||j|||jj|||jdS(s7 Report that the given example failed. N(t_failure_headerRtoutput_differenceR(RlRRRRz((s/usr/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(RlRRRRc((s/usr/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(RlRRRRR((s/usr/lib64/python2.7/doctest.pyR"s   !  cBsQd}}|j}ed\}}} |jj} xe|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|}|dkr| | j||jr|}qnej}ej|d d}| s|e|7}n| jdkr(| }n^| | j||jrI|}n=|je@r| e| je||jr|}qn||kr| s$|j||| |q$qD||kr| s|j ||| |n|d7}qD|| krD| s|j!||| |n|d7}qDqDW||_|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`. iiistsingleiiN($RRRt check_outputRRR RRRR R'RRR.tdebuggerRR+tKeyboardInterruptR=RcRRbRoRyR`tformat_exception_onlyRhRRRR!R$R%t_DocTestRunner__record_outcomeR#(RlRt compileflagsRRRRtSUCCESStFAILUREtBOOMtcheckt examplenumRtquiett optionflagR ROt exceptionRztoutcomeRcR((s/usr/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(RlRRStttf2tt2((s/usr/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'R3tasciiRV(t%_DocTestRunner__LINECACHE_FILENAME_RERRRR'RtintRR7R9RXt splitlinesRxtsave_linecache_getlines(RlROtmodule_globalsRRR((s/usr/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(RR+R2R.R=RtwriteRRRRR*tresetRRRAt*_DocTestRunner__patched_linecache_getlinest displayhookt__displayhook__t_DocTestRunner__runtclear(RlRR.Rt clear_globsRtsave_set_tracetsave_displayhook((s/usr/lib64/python2.7/doctest.pytrun|s.                c Cs|dkr|j}ng}g}g}d}}x|jjD]w}|\}\} } || 7}|| 7}| dkr|j|qD| dkr|j|| fqD|j|qDW|rL|rt|GdGH|jx|D]} dG| GHqWn|rLt|GdGH|jx&|D]\} } d| | fGHq'WqLn|r|jGHt|GdGH|jx/|D]$\} \} } d| | | fGHqzWn|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+RRRRR&RR'R#( RlRtnoteststpassedtfailedttotaltttotalfRR'RSR9tthingR((s/usr/lib64/python2.7/doctest.pyt summarizesP           cCsv|j}xf|jjD]U\}\}}||kr^||\}}||}||}n||f||RFRxRNRURW(((s/usr/lib64/python2.7/doctest.pyRRs7 $     {  > 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 ( RxRRRZR[tescapetBLANKLINE_MARKERRRRtRRRv(RlRyRzR((s/usr/lib64/python2.7/doctest.pyR)s,        cCsL|ttBtB@stS|t@r$tS|jddkoK|jddkS(Ns i(RR R RvRxR(RlRyRzR((s/usr/lib64/python2.7/doctest.pyt_do_a_fancy_diff>s c Cs|j}|t@s+tjdt|}n|j|||r/|jt}|jt}|t@rt j ||dd}t |d}d}n{|t @rt j ||dd}t |d}d}n@|t@rt jdt j} t | j||}d}nd|td j|S|rU|rUd t|t|fS|rid t|S|r}d t|Sd SdS(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 +actualsDifferences (%s): RnsExpected: %sGot: %ssExpected: %sGot nothing sExpected nothing Got: %ssExpected nothing Got nothing N(RyRRZR[RYRZR@RxRtdifflibt unified_difftlistR t context_diffR tDiffertIS_CHARACTER_JUNKtcompareR^R( RlRRzRRyRt got_linestdifftkindtengine((s/usr/lib64/python2.7/doctest.pyR#Us4         (R4RrRR)RZR#(((s/usr/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(RRRz(RlRRRz((s/usr/lib64/python2.7/doctest.pyRs  cCs t|jS(N(R8R(Rl((s/usr/lib64/python2.7/doctest.pyt__str__s(R4RrRRRh(((s/usr/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(RRRc(RlRRRc((s/usr/lib64/python2.7/doctest.pyRs  cCs t|jS(N(R8R(Rl((s/usr/lib64/python2.7/doctest.pyRhs(R4RrRRRh(((s/usr/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(RRNRvR.RJ(RlRR.RRKtr((s/usr/lib64/python2.7/doctest.pyRNscCst|||dS(N(R(RlRRRRc((s/usr/lib64/python2.7/doctest.pyR% scCst|||dS(N(R(RlRRRRz((s/usr/lib64/python2.7/doctest.pyR$ sN(R4RrRR+RxRNR%R$(((s/usr/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*R5R6RAR4RRRRwRNRUtmasterRWR#RR( RR'R.RtreportRRtraise_on_errorRtfindertrunnerR((s/usr/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/usr/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(RlRRtsetUpttearDownR((s/usr/lib64/python2.7/doctest.pyRs     cCs,|j}|jdk r(|j|ndS(N(RRR+(RlR((s/usr/lib64/python2.7/doctest.pyRs cCs9|j}|jdk r(|j|n|jjdS(N(RRR+R.RJ(RlR((s/usr/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(NRRRR iFRRK(RR=RR!RR RRRRvR'RNRDtfailureExceptiontformat_failureRb(RlRRtnewRRnRR((s/usr/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(RlterrRRtlname((s/usr/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' RRRRKN(RRRRRvRNRR(RlRn((s/usr/lib64/python2.7/doctest.pyR s B cCs |jjS(N(RR'(Rl((s/usr/lib64/python2.7/doctest.pyR scCstt|t|k rtS|j|jkos|j|jkos|j|jkos|j|jkos|j|jkS(N(RRRRRRR(RlR((s/usr/lib64/python2.7/doctest.pyR scCs ||k S(N((RlR((s/usr/lib64/python2.7/doctest.pyR scCs"t|j|j|j|jfS(N(RRRRR(Rl((s/usr/lib64/python2.7/doctest.pyR scCs4|jjjd}d|ddj|d fS(NRs%s (%s)i(RR'RtR(RlR'((s/usr/lib64/python2.7/doctest.pyR scCsd|jjS(Ns Doctest: (RR'(Rl((s/usr/lib64/python2.7/doctest.pytshortDescription sN(R4RrR+RRRRRR RRRRRRhR(((s/usr/lib64/python2.7/doctest.pyRs     H    tSkipDocTestCasecBs2eZdZdZdZdZeZRS(cCs||_tj|ddS(N(RBRRR+(RlRB((s/usr/lib64/python2.7/doctest.pyR$ s cCs|jddS(Ns-DocTestSuite will not work with -O2 and above(tskipTest(Rl((s/usr/lib64/python2.7/doctest.pyR( scCsdS(N((Rl((s/usr/lib64/python2.7/doctest.pyt test_skip+ scCsd|jjS(NsSkipping tests from %s(RBR4(Rl((s/usr/lib64/python2.7/doctest.pyR. s(R4RrRRRRRh(((s/usr/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+RRDRwR=R/toptimizeRt TestSuitetaddTestRRRR&RRORR( RBR.Rt test_finderRRtsuiteRRO((s/usr/lib64/python2.7/doctest.pyR4 s,%           t DocFileCasecBs)eZdZdZeZdZRS(cCsdj|jjjdS(Nt_R(RRR'Rt(Rl((s/usr/lib64/python2.7/doctest.pyR scCs |jjS(N(RRO(Rl((s/usr/lib64/python2.7/doctest.pyR scCsd|jj|jj|fS(Ns2Failed doctest test for %s File "%s", line 0 %s(RR'RO(RlR((s/usr/lib64/python2.7/doctest.pyR s(R4RrRRRhR(((s/usr/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 RRRyRtRtpopR(R\RtpieceRyR((s/usr/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(RDRRwR'RRR(RBR'RR9Rttestsrc((s/usr/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/usr/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 doctestdebugR~iis execfile(%r)(RttempfiletmktempRMRDtcloseRtexecfileR=Rct post_mortemRNRKtremove(RRR.Rt srcfilenameRS((s/usr/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/usr/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/usr/lib64/python2.7/doctest.pyR scCs|jd|_|S(sosquare() -> square TestClass's associated value >>> _TestClass(13).square().get() 169 i(R (Rl((s/usr/lib64/python2.7/doctest.pytsquare scCs|jS(s}get() -> return TestClass's associated value. >>> x = _TestClass(-42) >>> print x.get() -42 (R (Rl((s/usr/lib64/python2.7/doctest.pyR* s(R4RrRRRR*(((s/usr/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( NiiR REsusage: {0} [-v] file ...is.pyiRQ(R=RRKRRoR;tsplitexttformatRkRttinsertR:RRRv(targt testfilesR'RROtdirnameRR((s/usr/lib64/python2.7/doctest.pyt_test s$6  R(WRt __docformat__t__all__R(R=R`R5RRKRZRR]RRRtR!t collectionsR"R#R$RRRRRRRRRR R R R RYRsR2RDRTR,t __stdout__R+RYR^RhRiRRRRRRHR RRRRRt ExceptionRRRRjRxRvRRRRRRRRRRRRRRRRRR RRRR4texit(((s/usr/lib64/python2.7/doctest.pyt.s  H0                 1  $ $HL)n  f    z? $I   I R  ,