Module Expr Str Assign NameStore Str Assign NameStore Str Import alias FunctionDef arguments args defaults body Expr Str Return Str decorator_list Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body If NameLoad body Return BinOpAdd BinOpAdd Str NameLoad Str orelse Return Str decorator_list FunctionDef arguments args NameParam defaults body If NameLoad body Return BinOpAdd BinOpAdd Str NameLoad Str orelse Return Str decorator_list FunctionDef arguments args NameParam defaults body If NameLoad body Return BinOpAdd BinOpAdd Str NameLoad Str orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Return TupleLoad Str SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIs Call NameLoad NameLoad Call NameLoad Dict body If CompareIn NameLoad NameLoad body Return TupleLoad Str SubscriptLoad NameLoad Index NameLoad orelse If Call NameLoad NameLoad NameLoad body Return TupleLoad Str Call NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias alias Assign TupleStore NameStore NameStore NameStore NameStore NameStore TupleLoad ListLoad NameLoad NameLoad Str NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Break If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad Str body If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body AugAssignAdd NameStore BinOpAdd NameLoad Str Assign NameStore NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad Str Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args TupleStore NameStore NameStore NameStore NameParam defaults Num body Expr Str Import alias alias alias alias alias alias alias If CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str Str BinOpAdd BinOpAdd NameLoad Str NameLoad Str Assign NameStore BinOpAdd BinOpAdd Str Call NameLoad BinOpMult Str Num Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore NameStore Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If CompareNotEq NameLoad Str body Assign NameStore BinOpAdd BinOpAdd Str Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword Lambda arguments args NameParam defaults BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults ListLoad NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Num TryFinally body Return Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num finalbody AugAssignAdd SubscriptStore NameLoad Index Num Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad BinOpMod Str TupleLoad Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpSub NameLoad NameLoad For NameStore NameLoad body Assign NameStore BinOpAdd Call NameLoad BinOpAdd BinOpMult Str BinOpSub Num Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Str Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore TupleLoad Dict ListLoad For TupleStore NameStore NameStore NameStore NameLoad body If CompareIn NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad Num If CompareIsNot NameLoad NameLoad body If CompareIn NameLoad TupleLoad Str Str body Assign NameStore BinOpAdd BinOpMod Str NameLoad Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore BinOpAdd NameLoad Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad BinOpMod Str TupleLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body For NameStore Call NameLoad NameLoad body If CompareEq SubscriptLoad NameLoad Slice Num Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Import alias Return BinOpAdd BinOpAdd BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args TupleStore NameStore NameStore NameStore NameParam defaults Num body Expr Str Import alias alias alias alias alias alias alias If CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad NameLoad Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If CompareNotEq NameLoad Str body Assign NameStore BinOpAdd BinOpAdd Str NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword Lambda arguments args NameParam defaults BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults ListLoad NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Num TryFinally body Return Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num finalbody AugAssignAdd SubscriptStore NameLoad Index Num Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad BinOpMod Str TupleLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpSub NameLoad NameLoad For NameStore NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore TupleLoad Dict ListLoad For TupleStore NameStore NameStore NameStore NameLoad body If CompareIn NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad Num If CompareIsNot NameLoad NameLoad body If CompareEq NameLoad Str body Assign NameStore BinOpAdd Str NameLoad orelse If CompareNotEq NameLoad Str body Assign NameStore BinOpAdd NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str Num NameLoad NameLoad Import alias Return BinOpAdd BinOpAdd BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad BinOpMod Str Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Num NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore BoolOpOr BoolOpAnd CompareEq AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Import alias Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str NameLoad Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Import alias alias Assign NameStore SubscriptLoad ListLoad Str Str Index CompareEq AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad handlers ExceptHandler body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Pass decorator_list decorator_list Assign NameStore AttributeLoad Call NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad Num Str body Expr Str Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list
N/A N/A 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.
 N/A __author__ Ka-Ping Yee N/A __version__ $Revision: 55348 $ N/A sys reset N/A N/A N/A N/A N/A Return a string that resets the CGI and browser to a known state. N/A <!--: 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/A N/A __UNDEF__ N/A small N/A N/A text N/A N/A N/A text N/A N/A N/A N/A <small> text </small> N/A N/A N/A strong N/A N/A text N/A N/A N/A text N/A N/A N/A N/A <strong> text </strong> N/A N/A N/A grey N/A N/A text N/A N/A N/A text N/A N/A N/A N/A <font color="#909090"> text </font> N/A N/A N/A lookup N/A N/A name frame locals N/A N/A N/A Find the value for a given name in the given environment. N/A N/A name locals N/A N/A N/A local N/A locals N/A name N/A N/A name N/A frame f_globals N/A N/A N/A global N/A N/A frame f_globals N/A name N/A N/A __builtins__ N/A frame f_globals N/A N/A builtins N/A N/A frame f_globals N/A __builtins__ N/A N/A N/A type builtins N/A type N/A N/A N/A N/A name builtins N/A N/A N/A builtin N/A builtins N/A name N/A N/A N/A hasattr builtins name N/A N/A N/A builtin N/A getattr builtins name N/A N/A None __UNDEF__ N/A scanvars N/A N/A reader frame locals N/A N/A N/A Scan one logical line of Python and look up values of variables used. N/A tokenize keyword N/A N/A vars lasttoken parent prefix value N/A N/A None None __UNDEF__ N/A N/A ttype token start end line N/A N/A tokenize generate_tokens reader N/A N/A N/A ttype N/A tokenize NEWLINE N/A N/A N/A N/A N/A ttype N/A tokenize NAME N/A token N/A keyword kwlist N/A N/A N/A lasttoken . N/A N/A N/A parent __UNDEF__ N/A N/A value N/A getattr parent token __UNDEF__ N/A N/A N/A vars append N/A N/A prefix token prefix value N/A N/A N/A where value N/A lookup token frame locals N/A N/A N/A vars append N/A token where value N/A N/A N/A token . N/A N/A prefix N/A lasttoken . N/A parent value N/A N/A N/A parent prefix N/A None N/A lasttoken token N/A vars N/A html N/A N/A N/A etype evalue etb context N/A 5 N/A N/A Return a nice HTML document describing a given traceback. N/A os types time traceback linecache inspect pydoc N/A N/A N/A type etype N/A types ClassType N/A N/A etype N/A etype __name__ N/A pyver N/A N/A N/A Python  N/A N/A N/A N/A sys version split N/A 0 :  N/A sys executable N/A date N/A N/A time ctime N/A N/A time time N/A head N/A N/A <body bgcolor="#f0f0f8"> N/A N/A N/A pydoc html heading N/A <big><big>%s</big></big> N/A strong N/A N/A N/A pydoc html escape N/A str etype #ffffff #6622aa N/A N/A pyver <br> date 
<p>A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.</p> N/A indent N/A N/A <tt> N/A small N/A &nbsp; 5 &nbsp;</tt> N/A frames N/A N/A records N/A N/A inspect getinnerframes etb context N/A N/A frame file lnum func lines index records N/A N/A file N/A N/A file N/A N/A N/A os path abspath file N/A link N/A <a href="file://%s">%s</a> N/A file N/A N/A N/A pydoc html escape file N/A N/A file link ? N/A N/A args varargs varkw locals N/A N/A inspect getargvalues frame N/A call N/A N/A func ? N/A N/A call N/A N/A in  N/A strong func N/A N/A inspect formatargvalues args varargs varkw locals formatvalue N/A N/A N/A value N/A N/A = N/A N/A N/A pydoc html repr value N/A highlight N/A reader N/A N/A lnum N/A N/A lnum N/A N/A N/A highlight N/A N/A lnum N/A 0 1 N/A N/A N/A N/A N/A linecache getline file N/A lnum N/A 0 N/A N/A N/A lnum N/A 0 1 N/A N/A vars N/A scanvars reader frame locals N/A rows N/A N/A <tr><td bgcolor="#d8bbff">%s%s %s</td></tr> N/A <big>&nbsp;</big> link call N/A N/A index None N/A N/A i N/A lnum index N/A line lines N/A N/A num N/A N/A small N/A N/A &nbsp; N/A 5 N/A len N/A str i N/A str i &nbsp; N/A line N/A <tt>%s%s</tt> N/A num N/A N/A N/A pydoc html preformat line N/A N/A i highlight N/A N/A N/A N/A rows append N/A <tr><td bgcolor="#ffccee">%s</td></tr> line N/A N/A N/A N/A rows append N/A <tr><td>%s</td></tr> N/A grey line N/A i 1 N/A N/A done dump N/A N/A N/A N/A N/A name where value vars N/A N/A N/A name done N/A N/A N/A N/A done N/A name 1 N/A N/A value __UNDEF__ N/A N/A N/A where N/A global builtin N/A N/A name N/A N/A <em>%s</em>  where N/A strong name N/A N/A N/A where local N/A N/A name N/A strong name N/A N/A name N/A where N/A strong N/A N/A N/A name split . N/A -1 N/A N/A N/A dump append N/A %s&nbsp;= %s N/A name N/A N/A N/A pydoc html repr value N/A N/A N/A N/A dump append N/A name  <em>undefined</em> N/A N/A N/A rows append N/A <tr><td>%s</td></tr> N/A small N/A grey N/A N/A ,  join dump N/A N/A N/A frames append N/A 
<table width="100%%" cellspacing=0 cellpadding=0 border=0>
%s</table> N/A N/A join rows N/A exception N/A N/A <p>%s: %s N/A N/A strong N/A N/A N/A pydoc html escape N/A str etype N/A N/A N/A pydoc html escape N/A str evalue N/A N/A isinstance evalue BaseException N/A N/A name N/A dir evalue N/A N/A N/A N/A name N/A 1 _ N/A N/A N/A value N/A N/A N/A pydoc html repr N/A getattr evalue name N/A N/A N/A exception append N/A 
<br>%s%s&nbsp;=
%s N/A indent name value N/A traceback N/A N/A N/A N/A head N/A N/A join frames N/A N/A join exception N/A 


<!-- The above is a description of an error in a Python program, formatted
     for a Web browser because the 'cgitb' module was enabled.  In case you
     are not reading this in a Web browser, here is the original traceback:

%s
-->
 N/A N/A N/A pydoc html escape N/A N/A join N/A N/A traceback format_exception etype evalue etb N/A text N/A N/A N/A etype evalue etb context N/A 5 N/A N/A Return a plain text document describing a given traceback. N/A os types time traceback linecache inspect pydoc N/A N/A N/A type etype N/A types ClassType N/A N/A etype N/A etype __name__ N/A pyver N/A N/A N/A Python  N/A N/A N/A N/A sys version split N/A 0 :  N/A sys executable N/A date N/A N/A time ctime N/A N/A time time N/A head N/A N/A %s
%s
%s
 N/A N/A str etype pyver date 
A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.
 N/A frames N/A N/A records N/A N/A inspect getinnerframes etb context N/A N/A frame file lnum func lines index records N/A N/A file N/A N/A file N/A N/A N/A os path abspath file ? N/A N/A args varargs varkw locals N/A N/A inspect getargvalues frame N/A call N/A N/A func ? N/A N/A call N/A N/A in  func N/A N/A inspect formatargvalues args varargs varkw locals formatvalue N/A N/A N/A value N/A N/A = N/A N/A N/A pydoc text repr value N/A highlight N/A reader N/A N/A lnum N/A N/A lnum N/A N/A N/A highlight N/A N/A lnum N/A 0 1 N/A N/A N/A N/A N/A linecache getline file N/A lnum N/A 0 N/A N/A N/A lnum N/A 0 1 N/A N/A vars N/A scanvars reader frame locals N/A rows N/A N/A  %s %s N/A file call N/A N/A index None N/A N/A i N/A lnum index N/A line lines N/A N/A num N/A %5d  i N/A N/A N/A rows append N/A num N/A N/A line rstrip N/A i 1 N/A N/A done dump N/A N/A N/A N/A N/A name where value vars N/A N/A N/A name done N/A N/A N/A N/A done N/A name 1 N/A N/A value __UNDEF__ N/A N/A N/A where global N/A N/A name N/A global  name N/A N/A N/A where local N/A N/A name N/A where N/A N/A N/A name split . N/A -1 N/A N/A N/A dump append N/A %s = %s N/A name N/A N/A N/A pydoc text repr value N/A N/A N/A N/A dump append N/A name  undefined N/A N/A N/A rows append N/A N/A join dump N/A N/A N/A frames append N/A 
%s
 N/A N/A join rows N/A exception N/A N/A %s: %s N/A N/A str etype N/A str evalue N/A N/A isinstance evalue BaseException N/A N/A name N/A dir evalue N/A N/A value N/A N/A N/A pydoc text repr N/A getattr evalue name N/A N/A N/A exception append N/A 
%s%s = %s N/A N/A 4 name value N/A traceback N/A N/A N/A N/A head N/A N/A join frames N/A N/A join exception N/A 

The above is a description of an error in a Python program.  Here is
the original traceback:

%s
 N/A N/A join N/A N/A traceback format_exception etype evalue etb N/A Hook N/A N/A N/A A hook to replace sys.excepthook that shows tracebacks in HTML. __init__ N/A N/A self display logdir context file format N/A 1 None 5 None html N/A N/A N/A self display display N/A N/A self logdir logdir N/A N/A self context context N/A N/A self file N/A file N/A sys stdout N/A N/A self format format N/A __call__ N/A N/A self etype evalue etb N/A N/A N/A N/A N/A self handle N/A etype evalue etb N/A handle N/A N/A self info N/A None N/A N/A info N/A info N/A N/A sys exc_info N/A N/A N/A self format html N/A N/A N/A N/A N/A self file write N/A reset N/A formatter N/A N/A N/A N/A self format html html text N/A plain False N/A N/A N/A doc N/A formatter info N/A self context N/A N/A N/A N/A traceback N/A doc N/A N/A join N/A N/A traceback format_exception info N/A plain True N/A N/A self display N/A N/A plain N/A N/A doc N/A N/A N/A N/A doc replace & &amp; replace < &lt; N/A N/A N/A N/A self file write N/A N/A <pre> doc </pre>
 N/A N/A N/A N/A N/A self file write N/A doc N/A N/A N/A N/A N/A self file write <p>A problem occurred in a Python script.
 N/A N/A N/A self logdir None N/A N/A os tempfile N/A suffix N/A N/A .txt .html N/A N/A N/A self format html N/A N/A fd path N/A N/A tempfile mkstemp suffix suffix dir N/A self logdir N/A N/A N/A file N/A N/A os fdopen fd w N/A N/A N/A file write doc N/A N/A N/A file close N/A msg N/A <p> %s contains the description of this error. path N/A N/A N/A N/A msg N/A <p> Tried to save traceback to %s, but failed. path N/A N/A N/A N/A self file write N/A msg N/A N/A N/A N/A N/A N/A self file flush N/A N/A N/A N/A N/A N/A N/A handler N/A N/A Hook handle enable N/A N/A display logdir context format N/A 1 None 5 html N/A N/A Install an exception handler that formats tracebacks as HTML.

    The optional argument 'display' can be set to 0 to suppress sending the
    traceback to the browser, and 'logdir' can be set to a directory to cause
    tracebacks to be written to files there. N/A N/A sys excepthook N/A Hook display display logdir logdir context context format format N/A