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: etc.py
#._cv_part guppy.etc.etc from StringIO import StringIO def reptable(tb): if not tb: return 0, [] maxlens = [0]*len(tb[0]) for r in tb: if r == '-': continue for i, e in enumerate(r): maxlens[i] = max(maxlens[i], len(str(e))+1) sumlens = len(maxlens) for s in maxlens: sumlens += s out = [] for r in tb: if r == '-': out.append( '-'*min(sumlens, 75) ) else: so = '' for i, e in enumerate(r): s = str(e) if s.startswith('!>'): s = s[2:] fillright = 1 elif s.isdigit(): fillright = 1 else: fillright = 0 ml = maxlens[i]-1 fill = ' '*(ml -len(s)) if fillright: s = fill + s else: if 1 or i + 1 < len(r): s = s + fill so += s + ' ' out.append(so) return maxlens, out def ptable(tb, f=None): if f is None: import sys f = sys.stdout _, lines = reptable(tb) for line in lines: line = line.rstrip() print >>f, line def strtable(tb): f = StringIO() ptable(tb, f) return f.getvalue() def str2int(s, msg = 'Hexadecimal literal in the form [-]0x... expected'): # xxx clumsy -- there should be a builtin function for this ! if s.startswith('-'): sign = -1 s = s [1:] else: sign = 1 if not s.startswith('0x'): raise ValueError, msg s = s[2:] if s.endswith('l') or s.endswith('L'): s = s[:-1] return int(s, 16) * sign
Upload File
Create Folder