Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/cgitb.pyc
mò ‚=5Dc @ s§ d Z d Z d Z d k Z d „ Z g Z d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z d d „ Z d f d „ ƒ YZ e ƒ i Z d d d d d „ Z d S( s™ More comprehensive traceback formatting for Python scripts. To enable this module, do: import cgitb; cgitb.enable() at the top of your script. The optional arguments to enable() are: display - if true, tracebacks are displayed in the web browser logdir - if set, tracebacks are written to files in this directory context - number of lines of source code to show for each stack frame format - 'text' or 'html' controls the output format By default, tracebacks are displayed but not saved, the context is 5 lines and the output format is 'html' (for backwards compatibility with the original use of this module) Alternatively, if you have caught an exception and want cgitb to display it for you, call cgitb.handler(). The optional argument to handler() is a 3-item tuple (etype, evalue, etb) just like the value of sys.exc_info(). The default handler displays output as HTML. s Ka-Ping Yees $Revision: 39082 $Nc C s d S( sA Return a string that resets the CGI and browser to a known state.s' <!--: spam Content-Type: text/html <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> --> </font> </font> </font> </script> </object> </blockquote> </pre> </table> </table> </table> </table> </table> </font> </font> </font>N( ( ( ( t /usr/lib/python2.4/cgitb.pyt reset s c C s | o d | d Sn d Sd S( Ns <small>s </small>t ( t text( R ( ( R t small( s c C s | o d | d Sn d Sd S( Ns <strong>s </strong>R ( R ( R ( ( R t strong. s c C s | o d | d Sn d Sd S( Ns <font color="#909090">s </font>R ( R ( R ( ( R t grey4 s c C sÒ | | j o d | | f Sn | | i j o d | i | f Sn d | i j ot | i d } t | ƒ t h ƒ j o# | | j o d | | f SqÄ qÈ t | | ƒ o d t | | ƒ f SqÈ n d t f S( s9 Find the value for a given name in the given environment.t localt globalt __builtins__t builtinN( t namet localst framet f_globalst builtinst typet hasattrt getattrt Nonet __UNDEF__( R R R R ( ( R t lookup: s c C sO d k } d k } g d d d t f \ } } } } } x| i | ƒ D]\ } } } } } | | i j o Pn | | i j o | | i j o€ | d j oA | t j o0 t | | t ƒ } | i | | | | f ƒ qqAt | | | ƒ \ } } | i | | | f ƒ n2 | d j o | | d 7} | } n d \ } } | } qF W| S( sE Scan one logical line of Python and look up values of variables used.NR t .( NR ( t tokenizet keywordR R t varst lasttokent parentt prefixt valuet generate_tokenst readert ttypet tokent startt endt linet NEWLINEt NAMEt kwlistR t appendR R R t where( R R R R R# R R R! R R"