ok
Direktori : /proc/self/root/opt/alt/python33/lib64/python3.3/__pycache__/ |
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/__pycache__/cgitb.cpython-33.pyo |
� nyMa / c @ s% d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d � Z g Z d d � Z d d � Z d d � Z d d � Z d d � Z d d d � Z d d d � Z Gd d � d � Z e � j Z d d d d d d � Z d S( u� 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. i Nc C s d S( uA Return a string that resets the CGI and browser to a known state.u' <!--: 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>( ( ( ( u* /opt/alt/python33/lib64/python3.3/cgitb.pyu reset# s u resetc C s | r d | d Sd Sd S( Nu <small>u </small>u ( ( u text( ( u* /opt/alt/python33/lib64/python3.3/cgitb.pyu small. s u smallc C s | r d | d Sd Sd S( Nu <strong>u </strong>u ( ( u text( ( u* /opt/alt/python33/lib64/python3.3/cgitb.pyu strong4 s u strongc C s | r d | d Sd Sd S( Nu <font color="#909090">u </font>u ( ( u text( ( u* /opt/alt/python33/lib64/python3.3/cgitb.pyu grey: s u greyc C s� | | k r d | | f S| | j k r: d | j | f Sd | j k r� | j d } t | � t i � k r� | | k r� d | | f Sq� t | | � r� d t | | � f Sn d t f S( u9 Find the value for a given name in the given environment.u localu globalu __builtins__u builtinN( u f_globalsu typeu hasattru getattru Noneu __UNDEF__( u nameu frameu localsu builtins( ( u* /opt/alt/python33/lib64/python3.3/cgitb.pyu lookup@ s u lookupc C s2 g d d d t f \ } } } } } xt j | � D]� \ } } } } } | t j k r\ Pn | t j k r� | t j k r� | d k r� | t k r� t | | t � } | j | | | | f � q� q$t | | | � \ } } | j | | | f � n/ | d k r| | d 7} | } n d \ } } | } q4 W| S( uE Scan one logical line of Python and look up values of variables used.u u .N( Nu ( u Noneu __UNDEF__u tokenizeu generate_tokensu NEWLINEu NAMEu keywordu kwlistu getattru appendu lookup( u readeru frameu localsu varsu lasttokenu parentu prefixu valueu ttypeu tokenu startu endu lineu where( ( u* /opt/alt/python33/lib64/python3.3/cgitb.pyu scanvarsP s"