Hackfut Security File Manager
Current Path:
/usr/lib64/python2.6
usr
/
lib64
/
python2.6
/
📁
..
📄
BaseHTTPServer.py
(21.46 KB)
📄
BaseHTTPServer.pyc
(21.07 KB)
📄
BaseHTTPServer.pyo
(21.07 KB)
📄
Bastion.py
(5.61 KB)
📄
Bastion.pyc
(6.51 KB)
📄
Bastion.pyo
(6.51 KB)
📄
CGIHTTPServer.py
(12.47 KB)
📄
CGIHTTPServer.pyc
(10.57 KB)
📄
CGIHTTPServer.pyo
(10.57 KB)
📄
ConfigParser.py
(25.38 KB)
📄
ConfigParser.pyc
(23.31 KB)
📄
ConfigParser.pyo
(23.31 KB)
📄
Cookie.py
(25.05 KB)
📄
Cookie.pyc
(21.9 KB)
📄
Cookie.pyo
(21.9 KB)
📁
Demo
📁
Doc
📄
DocXMLRPCServer.py
(10.35 KB)
📄
DocXMLRPCServer.pyc
(9.72 KB)
📄
DocXMLRPCServer.pyo
(9.62 KB)
📄
HTMLParser.py
(13.26 KB)
📄
HTMLParser.pyc
(11.97 KB)
📄
HTMLParser.pyo
(11.67 KB)
📄
MimeWriter.py
(6.33 KB)
📄
MimeWriter.pyc
(7.21 KB)
📄
MimeWriter.pyo
(7.21 KB)
📄
Queue.py
(8.37 KB)
📄
Queue.pyc
(9.23 KB)
📄
Queue.pyo
(9.23 KB)
📄
SimpleHTTPServer.py
(7.25 KB)
📄
SimpleHTTPServer.pyc
(7.58 KB)
📄
SimpleHTTPServer.pyo
(7.58 KB)
📄
SimpleXMLRPCServer.py
(21.48 KB)
📄
SimpleXMLRPCServer.pyc
(19.17 KB)
📄
SimpleXMLRPCServer.pyo
(19.17 KB)
📄
SocketServer.py
(21.8 KB)
📄
SocketServer.pyc
(22.6 KB)
📄
SocketServer.pyo
(22.6 KB)
📄
StringIO.py
(10.37 KB)
📄
StringIO.pyc
(11.26 KB)
📄
StringIO.pyo
(11.26 KB)
📁
Tools
📄
UserDict.py
(5.64 KB)
📄
UserDict.pyc
(8.68 KB)
📄
UserDict.pyo
(8.68 KB)
📄
UserList.py
(3.56 KB)
📄
UserList.pyc
(6.45 KB)
📄
UserList.pyo
(6.45 KB)
📄
UserString.py
(9.46 KB)
📄
UserString.pyc
(14.57 KB)
📄
UserString.pyo
(14.57 KB)
📄
_LWPCookieJar.py
(6.4 KB)
📄
_LWPCookieJar.pyc
(5.47 KB)
📄
_LWPCookieJar.pyo
(5.47 KB)
📄
_MozillaCookieJar.py
(5.67 KB)
📄
_MozillaCookieJar.pyc
(4.41 KB)
📄
_MozillaCookieJar.pyo
(4.37 KB)
📄
__future__.py
(4.28 KB)
📄
__future__.pyc
(4.13 KB)
📄
__future__.pyo
(4.13 KB)
📄
__phello__.foo.py
(64 B)
📄
__phello__.foo.pyc
(125 B)
📄
__phello__.foo.pyo
(125 B)
📄
_abcoll.py
(13.91 KB)
📄
_abcoll.pyc
(21.08 KB)
📄
_abcoll.pyo
(21.08 KB)
📄
_strptime.py
(19.29 KB)
📄
_strptime.pyc
(14.62 KB)
📄
_strptime.pyo
(14.62 KB)
📄
_threading_local.py
(6.95 KB)
📄
_threading_local.pyc
(6.24 KB)
📄
_threading_local.pyo
(6.24 KB)
📄
abc.py
(6.87 KB)
📄
abc.pyc
(5.93 KB)
📄
abc.pyo
(5.87 KB)
📄
aifc.py
(32.41 KB)
📄
aifc.pyc
(28.87 KB)
📄
aifc.pyo
(28.87 KB)
📄
anydbm.py
(2.56 KB)
📄
anydbm.pyc
(2.71 KB)
📄
anydbm.pyo
(2.71 KB)
📄
ast.py
(11.08 KB)
📄
ast.pyc
(12.48 KB)
📄
ast.pyo
(12.48 KB)
📄
asynchat.py
(11.13 KB)
📄
asynchat.pyc
(8.53 KB)
📄
asynchat.pyo
(8.53 KB)
📄
asyncore.py
(19.59 KB)
📄
asyncore.pyc
(18.02 KB)
📄
asyncore.pyo
(18.02 KB)
📄
atexit.py
(1.67 KB)
📄
atexit.pyc
(2.16 KB)
📄
atexit.pyo
(2.16 KB)
📄
audiodev.py
(7.42 KB)
📄
audiodev.pyc
(8.34 KB)
📄
audiodev.pyo
(8.34 KB)
📄
base64.py
(11.07 KB)
📄
base64.pyc
(10.75 KB)
📄
base64.pyo
(10.75 KB)
📄
bdb.py
(20.11 KB)
📄
bdb.pyc
(18.13 KB)
📄
bdb.pyo
(18.13 KB)
📄
binhex.py
(14.53 KB)
📄
binhex.pyc
(15.5 KB)
📄
binhex.pyo
(15.5 KB)
📄
bisect.py
(2.6 KB)
📄
bisect.pyc
(3.1 KB)
📄
bisect.pyo
(3.1 KB)
📁
bsddb
📄
cProfile.py
(6.19 KB)
📄
cProfile.pyc
(6.09 KB)
📄
cProfile.pyo
(6.09 KB)
📄
calendar.py
(22.57 KB)
📄
calendar.pyc
(27.5 KB)
📄
calendar.pyo
(27.5 KB)
📄
cgi.py
(33.67 KB)
📄
cgi.pyc
(32.05 KB)
📄
cgi.pyo
(32.05 KB)
📄
cgitb.py
(11.87 KB)
📄
cgitb.pyc
(12.17 KB)
📄
cgitb.pyo
(12.17 KB)
📄
chunk.py
(5.25 KB)
📄
chunk.pyc
(5.51 KB)
📄
chunk.pyo
(5.51 KB)
📄
cmd.py
(14.61 KB)
📄
cmd.pyc
(13.63 KB)
📄
cmd.pyo
(13.63 KB)
📄
code.py
(9.98 KB)
📄
code.pyc
(10.18 KB)
📄
code.pyo
(10.18 KB)
📄
codecs.py
(34.44 KB)
📄
codecs.pyc
(35.86 KB)
📄
codecs.pyo
(35.86 KB)
📄
codeop.py
(5.86 KB)
📄
codeop.pyc
(6.48 KB)
📄
codeop.pyo
(6.48 KB)
📄
collections.py
(13.41 KB)
📄
collections.pyc
(14.12 KB)
📄
collections.pyo
(14.07 KB)
📄
colorsys.py
(3.38 KB)
📄
colorsys.pyc
(3.95 KB)
📄
colorsys.pyo
(3.95 KB)
📄
commands.py
(2.48 KB)
📄
commands.pyc
(2.43 KB)
📄
commands.pyo
(2.43 KB)
📄
compileall.py
(5.16 KB)
📄
compileall.pyc
(4.88 KB)
📄
compileall.pyo
(4.88 KB)
📁
compiler
📁
config
📄
contextlib.py
(4.04 KB)
📄
contextlib.pyc
(4.05 KB)
📄
contextlib.pyo
(4.05 KB)
📄
cookielib.py
(62.94 KB)
📄
cookielib.pyc
(53.95 KB)
📄
cookielib.pyo
(53.76 KB)
📄
copy.py
(10.92 KB)
📄
copy.pyc
(11.4 KB)
📄
copy.pyo
(11.31 KB)
📄
copy_reg.py
(6.64 KB)
📄
copy_reg.pyc
(5.06 KB)
📄
copy_reg.pyo
(5.01 KB)
📄
crypt.py
(2.18 KB)
📄
crypt.pyc
(2.98 KB)
📄
crypt.pyo
(2.98 KB)
📄
csv.py
(15.36 KB)
📄
csv.pyc
(12.92 KB)
📄
csv.pyo
(12.92 KB)
📁
ctypes
📁
curses
📄
dbhash.py
(535 B)
📄
dbhash.pyc
(760 B)
📄
dbhash.pyo
(760 B)
📄
decimal.py
(194.6 KB)
📄
decimal.pyc
(152.03 KB)
📄
decimal.pyo
(151.97 KB)
📄
difflib.py
(79.18 KB)
📄
difflib.pyc
(59.76 KB)
📄
difflib.pyo
(59.71 KB)
📄
dircache.py
(1.1 KB)
📄
dircache.pyc
(1.55 KB)
📄
dircache.pyo
(1.55 KB)
📄
dis.py
(6.3 KB)
📄
dis.pyc
(6.22 KB)
📄
dis.pyo
(6.22 KB)
📁
distutils
📄
doctest.py
(99.14 KB)
📄
doctest.pyc
(79.1 KB)
📄
doctest.pyo
(78.81 KB)
📄
dumbdbm.py
(8.61 KB)
📄
dumbdbm.pyc
(6.43 KB)
📄
dumbdbm.pyo
(6.43 KB)
📄
dummy_thread.py
(4.31 KB)
📄
dummy_thread.pyc
(5.29 KB)
📄
dummy_thread.pyo
(5.29 KB)
📄
dummy_threading.py
(2.74 KB)
📄
dummy_threading.pyc
(1.27 KB)
📄
dummy_threading.pyo
(1.27 KB)
📁
email
📁
encodings
📄
filecmp.py
(9.25 KB)
📄
filecmp.pyc
(9.41 KB)
📄
filecmp.pyo
(9.41 KB)
📄
fileinput.py
(13.81 KB)
📄
fileinput.pyc
(14.58 KB)
📄
fileinput.pyo
(14.58 KB)
📄
fnmatch.py
(3.16 KB)
📄
fnmatch.pyc
(3.5 KB)
📄
fnmatch.pyo
(3.5 KB)
📄
formatter.py
(14.56 KB)
📄
formatter.pyc
(18.85 KB)
📄
formatter.pyo
(18.85 KB)
📄
fpformat.py
(4.59 KB)
📄
fpformat.pyc
(4.62 KB)
📄
fpformat.pyo
(4.62 KB)
📄
fractions.py
(19.6 KB)
📄
fractions.pyc
(17.69 KB)
📄
fractions.pyo
(17.69 KB)
📄
ftplib.py
(28.51 KB)
📄
ftplib.pyc
(27.83 KB)
📄
ftplib.pyo
(27.83 KB)
📄
functools.py
(2.11 KB)
📄
functools.pyc
(1.88 KB)
📄
functools.pyo
(1.88 KB)
📄
genericpath.py
(2.95 KB)
📄
genericpath.pyc
(3.21 KB)
📄
genericpath.pyo
(3.21 KB)
📄
getopt.py
(7.16 KB)
📄
getopt.pyc
(6.57 KB)
📄
getopt.pyo
(6.53 KB)
📄
getpass.py
(5.4 KB)
📄
getpass.pyc
(4.64 KB)
📄
getpass.pyo
(4.64 KB)
📄
gettext.py
(19.5 KB)
📄
gettext.pyc
(15.39 KB)
📄
gettext.pyo
(15.39 KB)
📄
glob.py
(2.2 KB)
📄
glob.pyc
(2.35 KB)
📄
glob.pyo
(2.35 KB)
📄
gzip.py
(16.36 KB)
📄
gzip.pyc
(14.05 KB)
📄
gzip.pyo
(14.05 KB)
📄
hashlib.py
(4.32 KB)
📄
hashlib.pyc
(3.89 KB)
📄
hashlib.pyo
(3.89 KB)
📄
heapq.py
(15.62 KB)
📄
heapq.pyc
(12.4 KB)
📄
heapq.pyo
(12.4 KB)
📄
hmac.py
(4.42 KB)
📄
hmac.pyc
(4.4 KB)
📄
hmac.pyo
(4.4 KB)
📁
hotshot
📄
htmlentitydefs.py
(17.63 KB)
📄
htmlentitydefs.pyc
(6.22 KB)
📄
htmlentitydefs.pyo
(6.22 KB)
📄
htmllib.py
(12.57 KB)
📄
htmllib.pyc
(19.91 KB)
📄
htmllib.pyo
(19.91 KB)
📄
httplib.py
(46.77 KB)
📄
httplib.pyc
(36.17 KB)
📄
httplib.pyo
(35.98 KB)
📁
idlelib
📄
ihooks.py
(17.04 KB)
📄
ihooks.pyc
(20.35 KB)
📄
ihooks.pyo
(20.27 KB)
📄
imaplib.py
(46.65 KB)
📄
imaplib.pyc
(44.17 KB)
📄
imaplib.pyo
(41.48 KB)
📄
imghdr.py
(3.46 KB)
📄
imghdr.pyc
(4.79 KB)
📄
imghdr.pyo
(4.79 KB)
📄
imputil.py
(25.4 KB)
📄
imputil.pyc
(15.66 KB)
📄
imputil.pyo
(15.49 KB)
📄
inspect.py
(37.29 KB)
📄
inspect.pyc
(36.29 KB)
📄
inspect.pyo
(36.29 KB)
📄
io.py
(64.61 KB)
📄
io.pyc
(61.56 KB)
📄
io.pyo
(61.56 KB)
📁
json
📄
keyword.py
(1.95 KB)
📄
keyword.pyc
(2.07 KB)
📄
keyword.pyo
(2.07 KB)
📁
lib-dynload
📁
lib-tk
📁
lib2to3
📄
linecache.py
(4.03 KB)
📄
linecache.pyc
(3.19 KB)
📄
linecache.pyo
(3.19 KB)
📄
locale.py
(80.74 KB)
📄
locale.pyc
(45.58 KB)
📄
locale.pyo
(45.58 KB)
📁
logging
📄
macpath.py
(6.11 KB)
📄
macpath.pyc
(7.53 KB)
📄
macpath.pyo
(7.53 KB)
📄
macurl2path.py
(3.2 KB)
📄
macurl2path.pyc
(2.76 KB)
📄
macurl2path.pyo
(2.76 KB)
📄
mailbox.py
(74.05 KB)
📄
mailbox.pyc
(74.29 KB)
📄
mailbox.pyo
(74.24 KB)
📄
mailcap.py
(7.25 KB)
📄
mailcap.pyc
(7.02 KB)
📄
mailcap.pyo
(7.02 KB)
📄
markupbase.py
(14.01 KB)
📄
markupbase.pyc
(9.24 KB)
📄
markupbase.pyo
(9.05 KB)
📄
md5.py
(410 B)
📄
md5.pyc
(378 B)
📄
md5.pyo
(378 B)
📄
mhlib.py
(32.65 KB)
📄
mhlib.pyc
(33.34 KB)
📄
mhlib.pyo
(33.34 KB)
📄
mimetools.py
(7 KB)
📄
mimetools.pyc
(8.13 KB)
📄
mimetools.pyo
(8.13 KB)
📄
mimetypes.py
(18.38 KB)
📄
mimetypes.pyc
(16.48 KB)
📄
mimetypes.pyo
(16.48 KB)
📄
mimify.py
(14.67 KB)
📄
mimify.pyc
(11.93 KB)
📄
mimify.pyo
(11.93 KB)
📄
modulefinder.py
(23.71 KB)
📄
modulefinder.pyc
(18.56 KB)
📄
modulefinder.pyo
(18.48 KB)
📄
multifile.py
(4.71 KB)
📄
multifile.pyc
(5.35 KB)
📄
multifile.pyo
(5.31 KB)
📁
multiprocessing
📄
mutex.py
(1.82 KB)
📄
mutex.pyc
(2.47 KB)
📄
mutex.pyo
(2.47 KB)
📄
netrc.py
(4.01 KB)
📄
netrc.pyc
(3.52 KB)
📄
netrc.pyo
(3.52 KB)
📄
new.py
(706 B)
📄
new.pyc
(910 B)
📄
new.pyo
(910 B)
📄
nntplib.py
(20.97 KB)
📄
nntplib.pyc
(20.68 KB)
📄
nntplib.pyo
(20.68 KB)
📄
ntpath.py
(17.34 KB)
📄
ntpath.pyc
(11.35 KB)
📄
ntpath.pyo
(11.3 KB)
📄
nturl2path.py
(2.19 KB)
📄
nturl2path.pyc
(1.74 KB)
📄
nturl2path.pyo
(1.74 KB)
📄
numbers.py
(10.03 KB)
📄
numbers.pyc
(13.64 KB)
📄
numbers.pyo
(13.64 KB)
📄
opcode.py
(5.13 KB)
📄
opcode.pyc
(5.78 KB)
📄
opcode.pyo
(5.78 KB)
📄
optparse.py
(59.42 KB)
📄
optparse.pyc
(52.97 KB)
📄
optparse.pyo
(52.89 KB)
📄
ordereddict.py
(36 B)
📄
ordereddict.pyc
(185 B)
📄
ordereddict.pyo
(185 B)
📄
os.py
(25.2 KB)
📄
os.pyc
(25.2 KB)
📄
os.pyo
(25.2 KB)
📄
os2emxpath.py
(4.5 KB)
📄
os2emxpath.pyc
(4.43 KB)
📄
os2emxpath.pyo
(4.43 KB)
📄
pdb.doc
(7.71 KB)
📄
pdb.py
(44.27 KB)
📄
pdb.pyc
(42.79 KB)
📄
pdb.pyo
(42.79 KB)
📄
pickle.py
(43.76 KB)
📄
pickle.pyc
(37.74 KB)
📄
pickle.pyo
(37.54 KB)
📄
pickletools.py
(72.61 KB)
📄
pickletools.pyc
(55.8 KB)
📄
pickletools.pyo
(54.93 KB)
📄
pipes.py
(9.42 KB)
📄
pipes.pyc
(9.24 KB)
📄
pipes.pyo
(9.24 KB)
📄
pkgutil.py
(19.53 KB)
📄
pkgutil.pyc
(18.57 KB)
📄
pkgutil.pyo
(18.57 KB)
📁
plat-linux2
📄
platform.py
(51.39 KB)
📄
platform.pyc
(37.87 KB)
📄
platform.pyo
(37.87 KB)
📄
plistlib.py
(14.83 KB)
📄
plistlib.pyc
(18.88 KB)
📄
plistlib.pyo
(18.79 KB)
📄
popen2.py
(8.22 KB)
📄
popen2.pyc
(8.85 KB)
📄
popen2.pyo
(8.81 KB)
📄
poplib.py
(12.52 KB)
📄
poplib.pyc
(13.1 KB)
📄
poplib.pyo
(13.1 KB)
📄
posixfile.py
(7.82 KB)
📄
posixfile.pyc
(7.54 KB)
📄
posixfile.pyo
(7.54 KB)
📄
posixpath.py
(12.81 KB)
📄
posixpath.pyc
(10.93 KB)
📄
posixpath.pyo
(10.93 KB)
📄
pprint.py
(11.65 KB)
📄
pprint.pyc
(10.15 KB)
📄
pprint.pyo
(9.98 KB)
📄
profile.py
(22.96 KB)
📄
profile.pyc
(16.29 KB)
📄
profile.pyo
(16.05 KB)
📄
pstats.py
(26.67 KB)
📄
pstats.pyc
(24.75 KB)
📄
pstats.pyo
(24.75 KB)
📄
pty.py
(4.75 KB)
📄
pty.pyc
(4.8 KB)
📄
pty.pyo
(4.8 KB)
📄
py_compile.py
(5.5 KB)
📄
py_compile.pyc
(6.4 KB)
📄
py_compile.pyo
(6.4 KB)
📄
pyclbr.py
(12.97 KB)
📄
pyclbr.pyc
(9.5 KB)
📄
pyclbr.pyo
(9.5 KB)
📄
pydoc.py
(90.27 KB)
📄
pydoc.pyc
(88.92 KB)
📄
pydoc.pyo
(88.85 KB)
📄
pydoc_topics.py
(413.21 KB)
📄
pydoc_topics.pyc
(398.04 KB)
📄
pydoc_topics.pyo
(398.04 KB)
📄
quopri.py
(6.81 KB)
📄
quopri.pyc
(6.53 KB)
📄
quopri.pyo
(6.53 KB)
📄
random.py
(31.22 KB)
📄
random.pyc
(24.52 KB)
📄
random.pyo
(24.52 KB)
📄
re.py
(12.66 KB)
📄
re.pyc
(12.86 KB)
📄
re.pyo
(12.86 KB)
📄
repr.py
(4.2 KB)
📄
repr.pyc
(5.31 KB)
📄
repr.pyo
(5.31 KB)
📄
rexec.py
(19.68 KB)
📄
rexec.pyc
(23.65 KB)
📄
rexec.pyo
(23.65 KB)
📄
rfc822.py
(32.51 KB)
📄
rfc822.pyc
(31.36 KB)
📄
rfc822.pyo
(31.36 KB)
📄
rlcompleter.py
(5.73 KB)
📄
rlcompleter.pyc
(5.93 KB)
📄
rlcompleter.pyo
(5.93 KB)
📄
robotparser.py
(6.85 KB)
📄
robotparser.pyc
(7.67 KB)
📄
robotparser.pyo
(7.67 KB)
📄
runpy.py
(5.29 KB)
📄
runpy.pyc
(3.89 KB)
📄
runpy.pyo
(3.89 KB)
📄
sched.py
(4.97 KB)
📄
sched.pyc
(4.89 KB)
📄
sched.pyo
(4.89 KB)
📄
sets.py
(18.6 KB)
📄
sets.pyc
(16.6 KB)
📄
sets.pyo
(16.6 KB)
📄
sgmllib.py
(17.46 KB)
📄
sgmllib.pyc
(15.23 KB)
📄
sgmllib.pyo
(15.23 KB)
📄
sha.py
(445 B)
📄
sha.pyc
(421 B)
📄
sha.pyo
(421 B)
📄
shelve.py
(7.89 KB)
📄
shelve.pyc
(10.05 KB)
📄
shelve.pyo
(10.05 KB)
📄
shlex.py
(10.88 KB)
📄
shlex.pyc
(7.53 KB)
📄
shlex.pyo
(7.53 KB)
📄
shutil.py
(8.43 KB)
📄
shutil.pyc
(9.33 KB)
📄
shutil.pyo
(9.33 KB)
📁
site-packages
📄
site.py
(18.74 KB)
📄
site.pyc
(18.38 KB)
📄
site.pyo
(18.38 KB)
📄
smtpd.py
(18.48 KB)
📄
smtpd.pyc
(15.81 KB)
📄
smtpd.pyo
(15.81 KB)
📄
smtplib.py
(30.2 KB)
📄
smtplib.pyc
(29.04 KB)
📄
smtplib.pyo
(29.04 KB)
📄
sndhdr.py
(5.83 KB)
📄
sndhdr.pyc
(7.25 KB)
📄
sndhdr.pyo
(7.25 KB)
📄
socket.py
(19.68 KB)
📄
socket.pyc
(15.75 KB)
📄
socket.pyo
(15.67 KB)
📁
sqlite3
📄
sre.py
(384 B)
📄
sre.pyc
(519 B)
📄
sre.pyo
(519 B)
📄
sre_compile.py
(16.12 KB)
📄
sre_compile.pyc
(11.21 KB)
📄
sre_compile.pyo
(11.1 KB)
📄
sre_constants.py
(6.97 KB)
📄
sre_constants.pyc
(5.95 KB)
📄
sre_constants.pyo
(5.95 KB)
📄
sre_parse.py
(26.25 KB)
📄
sre_parse.pyc
(19.23 KB)
📄
sre_parse.pyo
(19.23 KB)
📄
ssl.py
(14.48 KB)
📄
ssl.pyc
(13.35 KB)
📄
ssl.pyo
(13.35 KB)
📄
stat.py
(1.68 KB)
📄
stat.pyc
(2.64 KB)
📄
stat.pyo
(2.64 KB)
📄
statvfs.py
(898 B)
📄
statvfs.pyc
(620 B)
📄
statvfs.pyo
(620 B)
📄
string.py
(20.26 KB)
📄
string.pyc
(19.6 KB)
📄
string.pyo
(19.6 KB)
📄
stringold.py
(12.16 KB)
📄
stringold.pyc
(12.3 KB)
📄
stringold.pyo
(12.3 KB)
📄
stringprep.py
(13.21 KB)
📄
stringprep.pyc
(14.19 KB)
📄
stringprep.pyo
(14.11 KB)
📄
struct.py
(82 B)
📄
struct.pyc
(239 B)
📄
struct.pyo
(239 B)
📄
subprocess.py
(56.59 KB)
📄
subprocess.pyc
(40.11 KB)
📄
subprocess.pyo
(40.05 KB)
📄
sunau.py
(16.15 KB)
📄
sunau.pyc
(17.65 KB)
📄
sunau.pyo
(17.65 KB)
📄
sunaudio.py
(1.37 KB)
📄
sunaudio.pyc
(1.95 KB)
📄
sunaudio.pyo
(1.95 KB)
📄
symbol.py
(2 KB)
📄
symbol.pyc
(2.95 KB)
📄
symbol.pyo
(2.95 KB)
📄
symtable.py
(7.73 KB)
📄
symtable.pyc
(12.31 KB)
📄
symtable.pyo
(12.19 KB)
📄
tabnanny.py
(11.07 KB)
📄
tabnanny.pyc
(8.14 KB)
📄
tabnanny.pyo
(8.14 KB)
📄
tarfile.py
(84.81 KB)
📄
tarfile.pyc
(71.79 KB)
📄
tarfile.pyo
(71.79 KB)
📄
telnetlib.py
(21.3 KB)
📄
telnetlib.pyc
(19.45 KB)
📄
telnetlib.pyo
(19.45 KB)
📄
tempfile.py
(17.36 KB)
📄
tempfile.pyc
(19.11 KB)
📄
tempfile.pyo
(19.11 KB)
📁
test
📄
textwrap.py
(16.49 KB)
📄
textwrap.pyc
(11.52 KB)
📄
textwrap.pyo
(11.43 KB)
📄
this.py
(1002 B)
📄
this.pyc
(1.21 KB)
📄
this.pyo
(1.21 KB)
📄
threading.py
(31.06 KB)
📄
threading.pyc
(27.49 KB)
📄
threading.pyo
(25.47 KB)
📄
timeit.py
(11.72 KB)
📄
timeit.pyc
(11.55 KB)
📄
timeit.pyo
(11.55 KB)
📄
toaiff.py
(3.07 KB)
📄
toaiff.pyc
(3.06 KB)
📄
toaiff.pyo
(3.06 KB)
📄
token.py
(2.88 KB)
📄
token.pyc
(3.75 KB)
📄
token.pyo
(3.75 KB)
📄
tokenize.py
(15.94 KB)
📄
tokenize.pyc
(13.69 KB)
📄
tokenize.pyo
(13.6 KB)
📄
trace.py
(29.61 KB)
📄
trace.pyc
(22.51 KB)
📄
trace.pyo
(22.45 KB)
📄
traceback.py
(10.95 KB)
📄
traceback.pyc
(11.4 KB)
📄
traceback.pyo
(11.4 KB)
📄
tty.py
(879 B)
📄
tty.pyc
(1.29 KB)
📄
tty.pyo
(1.29 KB)
📄
types.py
(2.27 KB)
📄
types.pyc
(2.56 KB)
📄
types.pyo
(2.56 KB)
📄
unittest.py
(30.43 KB)
📄
unittest.pyc
(34.04 KB)
📄
unittest.pyo
(34.04 KB)
📄
urllib.py
(57.64 KB)
📄
urllib.pyc
(50.14 KB)
📄
urllib.pyo
(50.05 KB)
📄
urllib2.py
(49.39 KB)
📄
urllib2.pyc
(44.74 KB)
📄
urllib2.pyo
(44.65 KB)
📄
urlparse.py
(14.16 KB)
📄
urlparse.pyc
(13.72 KB)
📄
urlparse.pyo
(13.72 KB)
📄
user.py
(1.59 KB)
📄
user.pyc
(1.7 KB)
📄
user.pyo
(1.7 KB)
📄
uu.py
(5.8 KB)
📄
uu.pyc
(4.14 KB)
📄
uu.pyo
(4.14 KB)
📄
uuid.py
(20.45 KB)
📄
uuid.pyc
(20.78 KB)
📄
uuid.pyo
(20.78 KB)
📄
warnings.py
(13.84 KB)
📄
warnings.pyc
(12.74 KB)
📄
warnings.pyo
(11.92 KB)
📄
wave.py
(17.53 KB)
📄
wave.pyc
(18.98 KB)
📄
wave.pyo
(18.98 KB)
📄
weakref.py
(9.85 KB)
📄
weakref.pyc
(13.06 KB)
📄
weakref.pyo
(13.06 KB)
📄
webbrowser.py
(20.58 KB)
📄
webbrowser.pyc
(18.32 KB)
📄
webbrowser.pyo
(18.27 KB)
📄
whichdb.py
(3.27 KB)
📄
whichdb.pyc
(2.19 KB)
📄
whichdb.pyo
(2.19 KB)
📁
wsgiref
📄
xdrlib.py
(5.38 KB)
📄
xdrlib.pyc
(8.94 KB)
📄
xdrlib.pyo
(8.94 KB)
📁
xml
📄
xmllib.py
(34.05 KB)
📄
xmllib.pyc
(26.63 KB)
📄
xmllib.pyo
(26.63 KB)
📄
xmlrpclib.py
(46.66 KB)
📄
xmlrpclib.pyc
(40.52 KB)
📄
xmlrpclib.pyo
(40.34 KB)
📄
zipfile.py
(51.85 KB)
📄
zipfile.pyc
(36.77 KB)
📄
zipfile.pyo
(36.77 KB)
Editing: bdb.py
"""Debugger basics""" import sys import os import types __all__ = ["BdbQuit","Bdb","Breakpoint"] class BdbQuit(Exception): """Exception to give up completely""" class Bdb: """Generic Python debugger base class. This class takes care of details of the trace facility; a derived class should implement user interaction. The standard debugger class (pdb.Pdb) is an example. """ def __init__(self): self.breaks = {} self.fncache = {} def canonic(self, filename): if filename == "<" + filename[1:-1] + ">": return filename canonic = self.fncache.get(filename) if not canonic: canonic = os.path.abspath(filename) canonic = os.path.normcase(canonic) self.fncache[filename] = canonic return canonic def reset(self): import linecache linecache.checkcache() self.botframe = None self._set_stopinfo(None, None) def trace_dispatch(self, frame, event, arg): if self.quitting: return # None if event == 'line': return self.dispatch_line(frame) if event == 'call': return self.dispatch_call(frame, arg) if event == 'return': return self.dispatch_return(frame, arg) if event == 'exception': return self.dispatch_exception(frame, arg) if event == 'c_call': return self.trace_dispatch if event == 'c_exception': return self.trace_dispatch if event == 'c_return': return self.trace_dispatch print 'bdb.Bdb.dispatch: unknown debugging event:', repr(event) return self.trace_dispatch def dispatch_line(self, frame): if self.stop_here(frame) or self.break_here(frame): self.user_line(frame) if self.quitting: raise BdbQuit return self.trace_dispatch def dispatch_call(self, frame, arg): # XXX 'arg' is no longer used if self.botframe is None: # First call of dispatch since reset() self.botframe = frame.f_back # (CT) Note that this may also be None! return self.trace_dispatch if not (self.stop_here(frame) or self.break_anywhere(frame)): # No need to trace this function return # None self.user_call(frame, arg) if self.quitting: raise BdbQuit return self.trace_dispatch def dispatch_return(self, frame, arg): if self.stop_here(frame) or frame == self.returnframe: self.user_return(frame, arg) if self.quitting: raise BdbQuit return self.trace_dispatch def dispatch_exception(self, frame, arg): if self.stop_here(frame): self.user_exception(frame, arg) if self.quitting: raise BdbQuit return self.trace_dispatch # Normally derived classes don't override the following # methods, but they may if they want to redefine the # definition of stopping and breakpoints. def stop_here(self, frame): # (CT) stopframe may now also be None, see dispatch_call. # (CT) the former test for None is therefore removed from here. if frame is self.stopframe: if self.stoplineno == -1: return False return frame.f_lineno >= self.stoplineno while frame is not None and frame is not self.stopframe: if frame is self.botframe: return True frame = frame.f_back return False def break_here(self, frame): filename = self.canonic(frame.f_code.co_filename) if not filename in self.breaks: return False lineno = frame.f_lineno if not lineno in self.breaks[filename]: # The line itself has no breakpoint, but maybe the line is the # first line of a function with breakpoint set by function name. lineno = frame.f_code.co_firstlineno if not lineno in self.breaks[filename]: return False # flag says ok to delete temp. bp (bp, flag) = effective(filename, lineno, frame) if bp: self.currentbp = bp.number if (flag and bp.temporary): self.do_clear(str(bp.number)) return True else: return False def do_clear(self, arg): raise NotImplementedError, "subclass of bdb must implement do_clear()" def break_anywhere(self, frame): return self.canonic(frame.f_code.co_filename) in self.breaks # Derived classes should override the user_* methods # to gain control. def user_call(self, frame, argument_list): """This method is called when there is the remote possibility that we ever need to stop in this function.""" pass def user_line(self, frame): """This method is called when we stop or break at this line.""" pass def user_return(self, frame, return_value): """This method is called when a return trap is set here.""" pass def user_exception(self, frame, exc_info): exc_type, exc_value, exc_traceback = exc_info """This method is called if an exception occurs, but only if we are to stop at or just below this level.""" pass def _set_stopinfo(self, stopframe, returnframe, stoplineno=0): self.stopframe = stopframe self.returnframe = returnframe self.quitting = 0 # stoplineno >= 0 means: stop at line >= the stoplineno # stoplineno -1 means: don't stop at all self.stoplineno = stoplineno # Derived classes and clients can call the following methods # to affect the stepping state. def set_until(self, frame): #the name "until" is borrowed from gdb """Stop when the line with the line no greater than the current one is reached or when returning from current frame""" self._set_stopinfo(frame, frame, frame.f_lineno+1) def set_step(self): """Stop after one line of code.""" self._set_stopinfo(None, None) def set_next(self, frame): """Stop on the next line in or below the given frame.""" self._set_stopinfo(frame, None) def set_return(self, frame): """Stop when returning from the given frame.""" self._set_stopinfo(frame.f_back, frame) def set_trace(self, frame=None): """Start debugging from `frame`. If frame is not specified, debugging starts from caller's frame. """ if frame is None: frame = sys._getframe().f_back self.reset() while frame: frame.f_trace = self.trace_dispatch self.botframe = frame frame = frame.f_back self.set_step() sys.settrace(self.trace_dispatch) def set_continue(self): # Don't stop except at breakpoints or when finished self._set_stopinfo(self.botframe, None, -1) if not self.breaks: # no breakpoints; run without debugger overhead sys.settrace(None) frame = sys._getframe().f_back while frame and frame is not self.botframe: del frame.f_trace frame = frame.f_back def set_quit(self): self.stopframe = self.botframe self.returnframe = None self.quitting = 1 sys.settrace(None) # Derived classes and clients can call the following methods # to manipulate breakpoints. These methods return an # error message is something went wrong, None if all is well. # Set_break prints out the breakpoint line and file:lineno. # Call self.get_*break*() to see the breakpoints or better # for bp in Breakpoint.bpbynumber: if bp: bp.bpprint(). def set_break(self, filename, lineno, temporary=0, cond = None, funcname=None): filename = self.canonic(filename) import linecache # Import as late as possible line = linecache.getline(filename, lineno) if not line: return 'Line %s:%d does not exist' % (filename, lineno) if not filename in self.breaks: self.breaks[filename] = [] list = self.breaks[filename] if not lineno in list: list.append(lineno) bp = Breakpoint(filename, lineno, temporary, cond, funcname) def clear_break(self, filename, lineno): filename = self.canonic(filename) if not filename in self.breaks: return 'There are no breakpoints in %s' % filename if lineno not in self.breaks[filename]: return 'There is no breakpoint at %s:%d' % (filename, lineno) # If there's only one bp in the list for that file,line # pair, then remove the breaks entry for bp in Breakpoint.bplist[filename, lineno][:]: bp.deleteMe() if not Breakpoint.bplist.has_key((filename, lineno)): self.breaks[filename].remove(lineno) if not self.breaks[filename]: del self.breaks[filename] def clear_bpbynumber(self, arg): try: number = int(arg) except: return 'Non-numeric breakpoint number (%s)' % arg try: bp = Breakpoint.bpbynumber[number] except IndexError: return 'Breakpoint number (%d) out of range' % number if not bp: return 'Breakpoint (%d) already deleted' % number self.clear_break(bp.file, bp.line) def clear_all_file_breaks(self, filename): filename = self.canonic(filename) if not filename in self.breaks: return 'There are no breakpoints in %s' % filename for line in self.breaks[filename]: blist = Breakpoint.bplist[filename, line] for bp in blist: bp.deleteMe() del self.breaks[filename] def clear_all_breaks(self): if not self.breaks: return 'There are no breakpoints' for bp in Breakpoint.bpbynumber: if bp: bp.deleteMe() self.breaks = {} def get_break(self, filename, lineno): filename = self.canonic(filename) return filename in self.breaks and \ lineno in self.breaks[filename] def get_breaks(self, filename, lineno): filename = self.canonic(filename) return filename in self.breaks and \ lineno in self.breaks[filename] and \ Breakpoint.bplist[filename, lineno] or [] def get_file_breaks(self, filename): filename = self.canonic(filename) if filename in self.breaks: return self.breaks[filename] else: return [] def get_all_breaks(self): return self.breaks # Derived classes and clients can call the following method # to get a data structure representing a stack trace. def get_stack(self, f, t): stack = [] if t and t.tb_frame is f: t = t.tb_next while f is not None: stack.append((f, f.f_lineno)) if f is self.botframe: break f = f.f_back stack.reverse() i = max(0, len(stack) - 1) while t is not None: stack.append((t.tb_frame, t.tb_lineno)) t = t.tb_next if f is None: i = max(0, len(stack) - 1) return stack, i # def format_stack_entry(self, frame_lineno, lprefix=': '): import linecache, repr frame, lineno = frame_lineno filename = self.canonic(frame.f_code.co_filename) s = '%s(%r)' % (filename, lineno) if frame.f_code.co_name: s = s + frame.f_code.co_name else: s = s + "<lambda>" if '__args__' in frame.f_locals: args = frame.f_locals['__args__'] else: args = None if args: s = s + repr.repr(args) else: s = s + '()' if '__return__' in frame.f_locals: rv = frame.f_locals['__return__'] s = s + '->' s = s + repr.repr(rv) line = linecache.getline(filename, lineno, frame.f_globals) if line: s = s + lprefix + line.strip() return s # The following two methods can be called by clients to use # a debugger to debug a statement, given as a string. def run(self, cmd, globals=None, locals=None): if globals is None: import __main__ globals = __main__.__dict__ if locals is None: locals = globals self.reset() sys.settrace(self.trace_dispatch) if not isinstance(cmd, types.CodeType): cmd = cmd+'\n' try: exec cmd in globals, locals except BdbQuit: pass finally: self.quitting = 1 sys.settrace(None) def runeval(self, expr, globals=None, locals=None): if globals is None: import __main__ globals = __main__.__dict__ if locals is None: locals = globals self.reset() sys.settrace(self.trace_dispatch) if not isinstance(expr, types.CodeType): expr = expr+'\n' try: return eval(expr, globals, locals) except BdbQuit: pass finally: self.quitting = 1 sys.settrace(None) def runctx(self, cmd, globals, locals): # B/W compatibility self.run(cmd, globals, locals) # This method is more useful to debug a single function call. def runcall(self, func, *args, **kwds): self.reset() sys.settrace(self.trace_dispatch) res = None try: res = func(*args, **kwds) except BdbQuit: pass finally: self.quitting = 1 sys.settrace(None) return res def set_trace(): Bdb().set_trace() class Breakpoint: """Breakpoint class Implements temporary breakpoints, ignore counts, disabling and (re)-enabling, and conditionals. Breakpoints are indexed by number through bpbynumber and by the file,line tuple using bplist. The former points to a single instance of class Breakpoint. The latter points to a list of such instances since there may be more than one breakpoint per line. """ # XXX Keeping state in the class is a mistake -- this means # you cannot have more than one active Bdb instance. next = 1 # Next bp to be assigned bplist = {} # indexed by (file, lineno) tuple bpbynumber = [None] # Each entry is None or an instance of Bpt # index 0 is unused, except for marking an # effective break .... see effective() def __init__(self, file, line, temporary=0, cond=None, funcname=None): self.funcname = funcname # Needed if funcname is not None. self.func_first_executable_line = None self.file = file # This better be in canonical form! self.line = line self.temporary = temporary self.cond = cond self.enabled = 1 self.ignore = 0 self.hits = 0 self.number = Breakpoint.next Breakpoint.next = Breakpoint.next + 1 # Build the two lists self.bpbynumber.append(self) if self.bplist.has_key((file, line)): self.bplist[file, line].append(self) else: self.bplist[file, line] = [self] def deleteMe(self): index = (self.file, self.line) self.bpbynumber[self.number] = None # No longer in list self.bplist[index].remove(self) if not self.bplist[index]: # No more bp for this f:l combo del self.bplist[index] def enable(self): self.enabled = 1 def disable(self): self.enabled = 0 def bpprint(self, out=None): if out is None: out = sys.stdout if self.temporary: disp = 'del ' else: disp = 'keep ' if self.enabled: disp = disp + 'yes ' else: disp = disp + 'no ' print >>out, '%-4dbreakpoint %s at %s:%d' % (self.number, disp, self.file, self.line) if self.cond: print >>out, '\tstop only if %s' % (self.cond,) if self.ignore: print >>out, '\tignore next %d hits' % (self.ignore) if (self.hits): if (self.hits > 1): ss = 's' else: ss = '' print >>out, ('\tbreakpoint already hit %d time%s' % (self.hits, ss)) # -----------end of Breakpoint class---------- def checkfuncname(b, frame): """Check whether we should break here because of `b.funcname`.""" if not b.funcname: # Breakpoint was set via line number. if b.line != frame.f_lineno: # Breakpoint was set at a line with a def statement and the function # defined is called: don't break. return False return True # Breakpoint set via function name. if frame.f_code.co_name != b.funcname: # It's not a function call, but rather execution of def statement. return False # We are in the right frame. if not b.func_first_executable_line: # The function is entered for the 1st time. b.func_first_executable_line = frame.f_lineno if b.func_first_executable_line != frame.f_lineno: # But we are not at the first line number: don't break. return False return True # Determines if there is an effective (active) breakpoint at this # line of code. Returns breakpoint number or 0 if none def effective(file, line, frame): """Determine which breakpoint for this file:line is to be acted upon. Called only if we know there is a bpt at this location. Returns breakpoint that was triggered and a flag that indicates if it is ok to delete a temporary bp. """ possibles = Breakpoint.bplist[file,line] for i in range(0, len(possibles)): b = possibles[i] if b.enabled == 0: continue if not checkfuncname(b, frame): continue # Count every hit when bp is enabled b.hits = b.hits + 1 if not b.cond: # If unconditional, and ignoring, # go on to next, else break if b.ignore > 0: b.ignore = b.ignore -1 continue else: # breakpoint and marker that's ok # to delete if temporary return (b,1) else: # Conditional bp. # Ignore count applies only to those bpt hits where the # condition evaluates to true. try: val = eval(b.cond, frame.f_globals, frame.f_locals) if val: if b.ignore > 0: b.ignore = b.ignore -1 # continue else: return (b,1) # else: # continue except: # if eval fails, most conservative # thing is to stop on breakpoint # regardless of ignore count. # Don't delete temporary, # as another hint to user. return (b,0) return (None, None) # -------------------- testing -------------------- class Tdb(Bdb): def user_call(self, frame, args): name = frame.f_code.co_name if not name: name = '???' print '+++ call', name, args def user_line(self, frame): import linecache name = frame.f_code.co_name if not name: name = '???' fn = self.canonic(frame.f_code.co_filename) line = linecache.getline(fn, frame.f_lineno, frame.f_globals) print '+++', fn, frame.f_lineno, name, ':', line.strip() def user_return(self, frame, retval): print '+++ return', retval def user_exception(self, frame, exc_stuff): print '+++ exception', exc_stuff self.set_continue() def foo(n): print 'foo(', n, ')' x = bar(n*10) print 'bar returned', x def bar(a): print 'bar(', a, ')' return a/2 def test(): t = Tdb() t.run('import bdb; bdb.foo(10)') # end
Upload File
Create Folder