Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
guppy
/
etc
/
📁
..
📄
Cat.py
(3.31 KB)
📄
Cat.pyc
(6.63 KB)
📄
Cat.pyo
(6.63 KB)
📄
Code.py
(1.09 KB)
📄
Code.pyc
(1.53 KB)
📄
Code.pyo
(1.53 KB)
📄
Compat.py
(922 B)
📄
Compat.pyc
(1.11 KB)
📄
Compat.pyo
(1.11 KB)
📄
ExecfileWithModuleInfo.py
(1.71 KB)
📄
ExecfileWithModuleInfo.pyc
(2.62 KB)
📄
ExecfileWithModuleInfo.pyo
(2.62 KB)
📄
FSA.py
(4.92 KB)
📄
FSA.pyc
(7.35 KB)
📄
FSA.pyo
(7.35 KB)
📄
Glue.py
(10.84 KB)
📄
Glue.pyc
(14.6 KB)
📄
Glue.pyo
(14.57 KB)
📄
Help.py
(7.39 KB)
📄
Help.pyc
(9.76 KB)
📄
Help.pyo
(9.71 KB)
📄
IterPermute.py
(1.79 KB)
📄
IterPermute.pyc
(2.65 KB)
📄
IterPermute.pyo
(2.22 KB)
📄
KanExtension.py
(16.47 KB)
📄
KanExtension.pyc
(24.4 KB)
📄
KanExtension.pyo
(24.3 KB)
📄
KnuthBendix.py
(7.58 KB)
📄
KnuthBendix.pyc
(10.37 KB)
📄
KnuthBendix.pyo
(9.7 KB)
📄
OutputHandling.py
(6.68 KB)
📄
OutputHandling.pyc
(13.06 KB)
📄
OutputHandling.pyo
(13.06 KB)
📄
RE.py
(18.49 KB)
📄
RE.pyc
(32.58 KB)
📄
RE.pyo
(32.53 KB)
📄
RE_Rect.py
(8.47 KB)
📄
RE_Rect.pyc
(11.5 KB)
📄
RE_Rect.pyo
(11.41 KB)
📄
Unpack.py
(1.9 KB)
📄
Unpack.pyc
(2.91 KB)
📄
Unpack.pyo
(2.91 KB)
📄
__init__.py
(163 B)
📄
__init__.pyc
(791 B)
📄
__init__.pyo
(791 B)
📄
cmd.py
(14.66 KB)
📄
cmd.pyc
(14.43 KB)
📄
cmd.pyo
(14.43 KB)
📄
etc.py
(1.4 KB)
📄
etc.pyc
(2.14 KB)
📄
etc.pyo
(2.14 KB)
📄
textView.py
(3.04 KB)
📄
textView.pyc
(3.46 KB)
📄
textView.pyo
(3.46 KB)
📄
tkcursors.py
(1.57 KB)
📄
tkcursors.pyc
(2.39 KB)
📄
tkcursors.pyo
(2.39 KB)
📄
xterm.py
(2.03 KB)
📄
xterm.pyc
(2.29 KB)
📄
xterm.pyo
(2.29 KB)
Editing: ExecfileWithModuleInfo.py
#._cv_part guppy.etc.ExecfileWithModuleInfo import sys, os, imp, md5 _VERBOSE = True _RELOAD_ALWAYS = True # False _MAGIC = '#._cv_part' modsums = {} def pyname(m): fname = m.__file__ if not fname.endswith('.py'): se = os.path.splitext(fname) fname = se[0]+'.py' return fname def calc_stringsum(s): return md5.md5(s).digest() def calc_modsum(m): return calc_stringsum(open(pyname(m)).read()) def execfile(filename, globs=None, locs=None): if globs==None: # Do this in an interior frame to not change caller's sys.exc_info() def get_globs(): try: 1/0 except: try: typ, val, trb = sys.exc_info() frame = trb.tb_frame.f_back.f_back globs = frame.f_globals finally: del typ,val,trb return globs globs = get_globs() file = open(filename) text = file.read() file.close() if text.startswith(_MAGIC): ix = len(_MAGIC) else: ix = text.find('\n'+_MAGIC) if ix == -1: code = compile(text, filename, 'exec') exec code in globs, locs return ix = ix + len(_MAGIC) + 1 eix = text.find('\n', ix) name = text[ix:eix] name=name.strip() m = sys.modules.get(name) if m is None: if _VERBOSE: print '%s.execfile: importing'%__name__, name __import__(name, globs, locs, []) m = sys.modules[name] msum = calc_modsum(m) modsums[m.__name__] = msum tsum = calc_stringsum(text) else: msum = modsums.get(m.__name__) if msum != calc_modsum(m): msum = '' tsum = calc_stringsum(text) if _RELOAD_ALWAYS or msum != tsum: if _VERBOSE: print '%s.execfile: reloading'%__name__, name fname = pyname(m) code = compile(text, fname, 'exec') exec code in m.__dict__ modsums[m.__name__] = tsum
Upload File
Create Folder