Current Path : /usr/local/lib/python2.5/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/cgitb.pyo |
³ò h”Rc @ sª d Z d Z d Z d d k Z d „ Z g Z d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z d d „ Z d d 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: 55349 $iÿÿÿÿ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>( ( ( ( s! /usr/local/lib/python2.5/cgitb.pyt reset s c C s | o d | d Sn d Sd S( Ns <small>s </small>t ( ( t text( ( s! /usr/local/lib/python2.5/cgitb.pyt small) s c C s | o d | d Sn d Sd S( Ns <strong>s </strong>R ( ( R ( ( s! /usr/local/lib/python2.5/cgitb.pyt strong/ s c C s | o d | d Sn d Sd S( Ns <font color="#909090">s </font>R ( ( R ( ( s! /usr/local/lib/python2.5/cgitb.pyt grey5 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 f_globalst typet hasattrt getattrt Nonet __UNDEF__( t namet framet localst builtins( ( s! /usr/local/lib/python2.5/cgitb.pyt lookup; s c C sU d d k } d 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 ƒ qqGt | | | ƒ \ } } | i | | | f ƒ n2 | d j o | | d 7} | } n d \ } } | } qL W| S( sE Scan one logical line of Python and look up values of variables used.iÿÿÿÿNR t .( NR ( t tokenizet keywordR R t generate_tokenst NEWLINEt NAMEt kwlistR t appendR ( t readerR R R R t varst lasttokent parentt prefixt valuet ttypet tokent startt endt linet where( ( s! /usr/local/lib/python2.5/cgitb.pyt scanvarsK s&