| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/meh/ |
Upload File : |
Ñò
ÏnðJc @ s| d d k Z d d k Z d d k l Z d d k Z d d k Z d d k Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿN( t
joinfieldst
ExceptionDumpc B sk e Z d Z d „ Z e d „ ƒ Z d „ Z d „ Z d d g d „ Z d „ Z e d „ ƒ Z
d
„ Z RS( sÎ This class represents a traceback and contains several useful methods
for manipulating a traceback. In general, clients should not have to
use this class. It is mainly for internal use.
c C sc | \ } } } t i | ƒ o t i | ƒ } n | | _ | | _ | | _ | | _ h | _ d S( s“ Create a new ExceptionDump instance. Instance attributes:
(type, value, stack) -- These are the values provided by python
when an exception is generated, and are
what ExceptionDump wraps to make more
useful.
conf -- An instance of the Config object.
N( t inspectt istracebackt getinnerframest conft stackt typet valuet _dumpHash( t selft .1t configObjt tyR R ( ( s, /usr/lib/python2.6/site-packages/meh/dump.pyt __init__$ s
c C s= | i o+ | i o! t i | i | i ƒ d i ƒ Sd Sd S( Ni t ( R R t tracebackt format_exception_onlyt strip( R
( ( s, /usr/lib/python2.6/site-packages/meh/dump.pyt desc8 s !c C s’ | i ƒ } | i d d | i i | i i f ƒ | i d d ƒ | i d j o3 | i d j o# | i t i
| i | i ƒ ƒ n t | d ƒ S( Ni s %s %s exception report
i s# Traceback (most recent call last):
R ( t
_format_stackt insertR t programNamet programVersionR t NoneR t extendR R R ( R
t lst( ( s, /usr/lib/python2.6/site-packages/meh/dump.pyt __str__C s & #c C s„ g } xn | i D]c \ } } } } } } t | ƒ t g ƒ j o d i | ƒ } n | } | i | | | | f ƒ q Wt i | ƒ S( NR ( R R t joint appendR t format_list( R
t framest framet fnt linenot funct ctxt idxt code( ( s, /usr/lib/python2.6/site-packages/meh/dump.pyR N s
i R c
C s¹ d „ } yO | i i t | ƒ ƒ p d | i t | ƒ <n | i d | i i ƒ d SWn! t j
o | i d ƒ d SX| i i i d ƒ p | i i i d ƒ o | i d | f ƒ d S| i d | i i ƒ d | d } xÌ| i i ƒ D]»\ } } | i
d
| i i ƒ o qö n | d j o | d | }
n | }
t d
| ƒ o5 t d | ƒ | j o | i d | |
f ƒ qö n t | ƒ t
i j oŸ | i d | |
f ƒ d } xn | D]f } | p | i d ƒ n d } | | ƒ o | i d | f ƒ qÈ| i | | | d d | ƒqÈW| i d ƒ qö t | ƒ t
i j oó | i d | |
f ƒ d } x | i ƒ D]´ \ }
} | p | i d ƒ n d } t |
ƒ t
i j o | i d |
f ƒ n | i d |
f ƒ | | ƒ o | i d | f ƒ qƒ| i | | | d d |
d | ƒqƒW| i d ƒ qö | | ƒ o | i d | |
| f ƒ qö | i d | |
f ƒ | i | | | d d |
d | ƒqö Wd S( Nc S s@ t | ƒ t i t i t i t i t i t i t i t i g j S( N(
R t typest BooleanTypet ComplexTypet FloatTypet IntTypet LongTypet NoneTypet
StringTypet UnicodeType( t instance( ( s, /usr/lib/python2.6/site-packages/meh/dump.pyt __isSimpleTypee s s Already dumped (%s instance)
s Cannot dump object
R t __repr__s %s
s! %s instance, containing members:
t i s _%s__R t .s instance.%s is not Nones id(instance.%s)s %s%s: Skipped
s %s%s: [i s , i s %st skipLists ]
s %s%s: {s '%s': s %s: t parentkeys }
s %s%s: %s
s %s%s: ( R t has_keyt idR t writet __class__t __name__t TypeErrort __dict__t itemst
startswitht evalR R' t ListTypet
_dumpClasst DictTypeR. ( R
R0 t fdt levelR6 R5 t _ExceptionDump__isSimpleTypet padt keyR t curkeyt firstt itemt kt v( ( s, /usr/lib/python2.6/site-packages/meh/dump.pyRB \ st
!
'
c s g } t i t ƒ ƒ } | i | i d d i ƒ x6 | i i D]( } y t d | d
| ƒ Wq@ q@ Xq@ W| i d d } | i d ƒ yy xr | i i
ƒ D]a \ } } | i ƒ ‰ t t
‡ f d † | i i ƒ ƒ d j o q n | i d | | f ƒ q WWn n Xy' | i d ƒ | i | | d | ƒWn$ | i d ƒ t i d
| ƒ n Xx¦ | i i D]˜ } yR t | d
ƒ }
d | f } x% | o | i | ƒ |
i ƒ } qW|
i ƒ Wqht j
o qh| i d | f ƒ t i d
| ƒ qhXqhWd
S( së Dump the local variables and all attributes of a given object to an
open file descriptor. The lists of files and attrs to ignore are
all taken from a Config object instance provided when the
ExceptionDump class was created.
fd -- An open file descriptor to write everything to.
obj -- Any Python object. This object will have all its attributes
written out, except for those mentioned in the attrSkipList.
iÿÿÿÿi s idSkipList.append(id(obj.%s))s%
Local variables in innermost frame:
c s ˆ i | ƒ d j S( iÿÿÿÿ( t find( t s( t
loweredKey( s, /usr/lib/python2.6/site-packages/meh/dump.pyt <lambda>× s s %s: %s
s
R5 s'
Exception occurred during state dump:
t rs
%s:
s)
Exception occurred during %s file copy:
N( t copyt localst updateR t f_localsR t attrSkipListR@ R R9 R>