Module Expr Str Assign NameStore Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias With Call NameLoad body If AttributeLoad NameLoad attr body Expr Call NameLoad Str Str NameLoad Import alias If AttributeLoad NameLoad attr body Expr Call NameLoad Str Str NameLoad Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args defaults vararg body Expr Str Global identifier identifier If BoolOpAnd NameLoad UnaryOpNot NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Pass If UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpMod NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults vararg body Expr Str Pass decorator_list Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr Num Num body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If CompareEq SubscriptLoad NameLoad Index Str Str body Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Return Call NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BoolOpAnd NameLoad CompareGt NameLoad NameLoad body Raise NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Str If CompareIn Str NameLoad body If NameLoad body Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad SubscriptLoad NameLoad Index Str orelse If SubscriptLoad AttributeLoad NameLoad attr Slice Num body If NameLoad body Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse If SubscriptLoad AttributeLoad NameLoad attr Slice Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Str Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str Expr Call NameLoad Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str Expr Call NameLoad Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call NameLoad NameLoad body Raise NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore BinOpAdd Str NameLoad Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Dict Assign NameStore Str While CompareNotEq NameLoad NameLoad body Assign NameStore Num Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass If CompareGt NameLoad Num body If BoolOpAnd NameLoad CompareGt NameLoad NameLoad body Raise NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Str Assign NameStore ListLoad While Num body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore NameLoad Break If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad TupleLoad NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Continue If CompareLt NameLoad Num body If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index Num NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Continue Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareNotEq NameLoad Str body Continue If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Continue If CompareIn NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGtE NameLoad Num body Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num attr If BoolOpAnd CompareGtE Call NameLoad NameLoad Num CompareEqEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict Assign NameStore NameLoad Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str AttributeLoad NameLoad attr Num Num body Expr Str Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign AttributeStore NameLoad attr NameLoad If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse If SubscriptLoad AttributeLoad NameLoad attr Slice Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Str Str If CompareIs NameLoad NameLoad body Assign NameStore Dict If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad Str Dict If CompareIn Str AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If BoolOpOr AttributeLoad NameLoad attr CompareNotEq NameLoad Str body Assign TupleStore NameStore NameStore TupleLoad Str Dict orelse Assign TupleStore NameStore NameStore TupleLoad Str Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Num If CompareIn Str AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad body Pass If BoolOpAnd NameLoad CompareGt NameLoad NameLoad body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq NameLoad Str body Raise NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise NameLoad Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad NameLoad Index Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIs Call NameLoad NameLoad Call NameLoad ListLoad body Return Call NameLoad Call NameLoad Str NameLoad orelse Return AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIs Call NameLoad NameLoad Call NameLoad ListLoad body Return AttributeLoad SubscriptLoad NameLoad Index Num attr orelse Return AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIs Call NameLoad NameLoad Call NameLoad ListLoad body Return Call NameLoad Call NameLoad Str NameLoad orelse Return ListLoad AttributeLoad NameLoad attr orelse Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise NameLoad Str Return Call NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise NameLoad Str Return Call NameLoad GeneratorExp CompareEq AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise NameLoad Str Return Call NameLoad GeneratorExp CompareEq AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad body Raise NameLoad BinOpMod Str TupleLoad NameLoad Assign AttributeStore NameLoad attr ListLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Dict NameLoad NameLoad NameLoad NameLoad While UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGtE AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Assign NameStore BinOpMult Num Num FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr If CompareGtE NameLoad Num body While CompareGt NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Num Break Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpSub NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareGt BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpLShift Num Num If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Num Break Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str Assign NameStore NameLoad While Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpLShift Num Num If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Num Break If BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Num Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Break If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Break Assign NameStore NameLoad If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore NameLoad orelse Assign NameStore Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Assign NameStore BinOpAdd Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore NameLoad While Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpLShift Num Num If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Num Break If BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Num Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Break If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Break Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Import alias Return Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr Num Num body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If CompareGt Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num body Raise NameLoad Str Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn SubscriptLoad NameLoad Index Num Str body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body If CompareGt Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad orelse Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults AttributeLoad NameLoad attr body Expr Str Print Str Print Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad FunctionDef arguments args defaults body Exec Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Call NameLoad decorator_list Print Str Expr Call NameLoad handlers ExceptHandler body Expr Call NameLoad Print Str Global identifier Assign NameStore Num TryExcept body Assign NameStore Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad handlers ExceptHandler body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Import alias Print Print Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str TupleLoad Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Call NameLoad SubscriptLoad NameLoad Index Num Delete NameDel decorator_list FunctionDef arguments args NameParam defaults AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print Print Str Print Str For NameStore NameLoad body Print Str Call NameLoad NameLoad Str Call NameLoad SubscriptLoad NameLoad Index NameLoad Print Str Print decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print Print Str If UnaryOpNot NameLoad body Print Str Print Str For NameStore NameLoad body Print BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Print BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad Call NameLoad NameLoad Str Print BinOpAdd Str Call NameLoad Call NameLoad NameLoad Print Str Print decorator_list FunctionDef arguments args defaults body Expr Str Print Print Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str Call NameLoad Call NameLoad NameLoad orelse Print Call NameLoad NameLoad Print decorator_list FunctionDef arguments args defaults body Print Print Str Print Print AttributeLoad NameLoad attr Print decorator_list FunctionDef arguments args defaults body Expr Str Print Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Import alias Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Support module for CGI (Common Gateway Interface) scripts.

This module defines a number of utilities for use by CGI scripts
written in Python.
 N/A __version__ 2.6 operator attrgetter N/A sys N/A os N/A urllib N/A UserDict N/A urlparse warnings filterwarnings catch_warnings warn N/A N/A catch_warnings N/A N/A N/A sys py3kwarning N/A N/A N/A filterwarnings ignore .*mimetools has been removed DeprecationWarning N/A mimetools N/A N/A sys py3kwarning N/A N/A N/A filterwarnings ignore .*rfc822 has been removed DeprecationWarning N/A rfc822 N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A StringIO StringIO N/A __all__ N/A MiniFieldStorage FieldStorage FormContentDict SvFormContentDict InterpFormContentDict FormContent parse parse_qs parse_qsl parse_multipart parse_header print_exception print_environ print_form print_directory print_arguments print_environ_usage escape N/A logfile N/A logfp None initlog N/A N/A N/A allargs N/A N/A Write a log message, if there is a log file.

    Even though this function is called initlog(), you should always
    use log(); log is a variable that is set either to initlog
    (initially), to dolog (once the log file has been opened), or to
    nolog (when logging is disabled).

    The first argument is a format string; the remaining arguments (if
    any) are arguments to the % operator, so e.g.
        log("%s: %s", "a", "b")
    will write "a: b" to the log file, followed by a newline.

    If the global logfp is not None, it should be a file object to
    which log data is written.

    If the global logfp is None, the global logfile may be a string
    giving a filename to open, in append mode.  This file should be
    world writable!!!  If the file can't be opened, logging is
    silently disabled (since there is no safe place where we could
    send an error message).

     N/A logfp log N/A N/A logfile N/A logfp N/A N/A N/A N/A logfp N/A open logfile a N/A N/A N/A IOError N/A N/A N/A N/A logfp N/A N/A log nolog N/A N/A log dolog N/A N/A log allargs N/A dolog N/A N/A fmt N/A args N/A N/A Write a log message to the log file.  See initlog() for docs. N/A N/A N/A logfp write N/A N/A fmt args N/A nolog N/A N/A N/A allargs N/A N/A Dummy function, assigned to log when logging is disabled. N/A N/A N/A log initlog N/A maxlen 0 parse N/A N/A fp environ keep_blank_values strict_parsing N/A None N/A os environ 0 0 N/A N/A Parse a query in the environment or from a file (default stdin)

        Arguments, all optional:

        fp              : file pointer; default: sys.stdin

        environ         : environment dictionary; default: os.environ

        keep_blank_values: flag indicating whether blank values in
            URL encoded forms should be treated as blank strings.
            A true value indicates that blanks should be retained as
            blank strings.  The default false value indicates that
            blank values are to be ignored and treated as if they were
            not included.

        strict_parsing: flag indicating what to do with parsing errors.
            If false (the default), errors are silently ignored.
            If true, errors raise a ValueError exception.
     N/A N/A fp None N/A N/A fp N/A sys stdin N/A N/A N/A REQUEST_METHOD environ N/A N/A N/A environ N/A REQUEST_METHOD GET N/A N/A N/A environ N/A REQUEST_METHOD POST N/A N/A N/A ctype pdict N/A parse_header N/A environ N/A CONTENT_TYPE N/A N/A ctype multipart/form-data N/A N/A N/A parse_multipart fp pdict N/A N/A N/A ctype application/x-www-form-urlencoded N/A N/A clength N/A int N/A environ N/A CONTENT_LENGTH N/A N/A maxlen N/A clength maxlen N/A N/A ValueError Maximum content length exceeded N/A qs N/A N/A fp read clength N/A N/A qs N/A N/A QUERY_STRING environ N/A N/A qs N/A N/A qs N/A qs & N/A qs N/A qs N/A environ N/A QUERY_STRING N/A N/A N/A N/A sys argv N/A 1 N/A N/A qs N/A N/A qs N/A qs & N/A qs N/A qs N/A N/A sys argv N/A 1 N/A N/A environ N/A QUERY_STRING qs N/A N/A N/A QUERY_STRING environ N/A N/A qs N/A environ N/A QUERY_STRING N/A N/A N/A N/A sys argv N/A 1 N/A N/A qs N/A N/A sys argv N/A 1 N/A N/A qs N/A N/A environ N/A QUERY_STRING qs N/A N/A parse_qs qs keep_blank_values strict_parsing N/A parse_qs N/A N/A qs keep_blank_values strict_parsing N/A 0 0 N/A N/A Parse a query given as a string argument. N/A N/A warn cgi.parse_qs is deprecated, use urlparse.parse_qs             instead PendingDeprecationWarning N/A N/A N/A urlparse parse_qs qs keep_blank_values strict_parsing N/A parse_qsl N/A N/A qs keep_blank_values strict_parsing N/A 0 0 N/A N/A Parse a query given as a string argument. N/A N/A warn cgi.parse_qsl is deprecated, use urlparse.parse_qsl instead PendingDeprecationWarning N/A N/A N/A urlparse parse_qsl qs keep_blank_values strict_parsing N/A parse_multipart N/A N/A fp pdict N/A N/A N/A Parse multipart input.

    Arguments:
    fp   : input file
    pdict: dictionary containing other parameters of content-type header

    Returns a dictionary just like parse_qs(): keys are the field names, each
    value is a list of values for that field.  This is easy to use but not
    much good if you are expecting megabytes to be uploaded -- in that case,
    use the FieldStorage class instead which is much more flexible.  Note
    that content-type is the raw, unparsed contents of the content-type
    header.

    XXX This does not parse nested multipart parts -- use FieldStorage for
    that.

    XXX This should really be subsumed by FieldStorage altogether -- no
    point in having two implementations of the same parsing algorithm.
    Also, FieldStorage protects itself better against certain DoS attacks
    by limiting the size of the data read in one chunk.  The API here
    does not support that kind of protection.  This also affects parse()
    since it can call parse_multipart().

     N/A boundary N/A N/A boundary pdict N/A N/A boundary N/A pdict N/A boundary N/A N/A N/A valid_boundary boundary N/A N/A ValueError N/A Invalid boundary in multipart form: %r N/A boundary N/A nextpart N/A -- boundary N/A lastpart N/A N/A -- boundary -- N/A partdict N/A N/A terminator N/A N/A terminator lastpart N/A N/A bytes -1 N/A data None N/A terminator N/A N/A headers N/A N/A mimetools Message fp N/A clength N/A N/A headers getheader content-length N/A clength N/A N/A N/A N/A bytes N/A int clength N/A N/A N/A ValueError N/A N/A N/A N/A bytes 0 N/A N/A N/A maxlen N/A bytes maxlen N/A N/A ValueError Maximum content length exceeded N/A data N/A N/A fp read bytes N/A N/A data N/A lines N/A N/A 1 N/A N/A line N/A N/A fp readline N/A N/A line N/A N/A terminator lastpart N/A N/A N/A N/A line N/A 2 -- N/A N/A terminator N/A N/A line strip N/A N/A terminator N/A nextpart lastpart N/A N/A N/A N/A N/A lines append line N/A N/A data None N/A N/A N/A N/A bytes 0 N/A N/A lines N/A N/A line N/A lines N/A -1 N/A N/A N/A line N/A -2 N/A N/A line N/A line N/A -2 N/A N/A N/A N/A line N/A -1 N/A N/A line N/A line N/A -1 N/A N/A lines N/A -1 line N/A data N/A N/A join lines N/A line N/A headers N/A content-disposition N/A N/A line N/A N/A N/A N/A key params N/A parse_header line N/A N/A key form-data N/A N/A N/A N/A name params N/A N/A name N/A params N/A name N/A N/A N/A N/A name partdict N/A N/A N/A N/A N/A partdict N/A name append data N/A N/A N/A partdict N/A name N/A data N/A partdict N/A parse_header N/A N/A line N/A N/A N/A Parse a Content-type like header.

    Return the main content-type and a dictionary of options.

     N/A plist N/A N/A N/A x strip N/A x N/A N/A line split ; N/A key N/A N/A N/A N/A plist pop 0 lower N/A pdict N/A N/A p plist N/A N/A i N/A N/A p find = N/A N/A i 0 N/A N/A name N/A N/A N/A N/A N/A p N/A i strip lower N/A value N/A N/A N/A p N/A N/A i 1 strip N/A N/A N/A N/A len value 2 N/A N/A value N/A 0 N/A value N/A -1 " N/A N/A value N/A value N/A 1 -1 N/A value N/A N/A N/A N/A value replace \\ \ replace \" " N/A N/A pdict N/A name value N/A N/A key pdict N/A MiniFieldStorage N/A N/A N/A Like FieldStorage, for use when no file uploads are possible. N/A filename None N/A list None N/A type None N/A file None N/A type_options N/A N/A disposition None N/A disposition_options N/A N/A headers N/A __init__ N/A N/A self name value N/A N/A N/A Constructor from field name and value. N/A N/A self name name N/A N/A self value value N/A __repr__ N/A N/A self N/A N/A N/A Return printable representation. N/A N/A MiniFieldStorage(%r, %r) N/A N/A self name N/A self value N/A N/A FieldStorage N/A N/A N/A Store a sequence of fields, reading multipart/form-data.

    This class provides naming, typing, files stored on disk, and
    more.  At the top level, it is accessible like a dictionary, whose
    keys are the field names.  (Note: None can occur as a field name.)
    The items are either a Python list (if there's multiple values) or
    another FieldStorage or MiniFieldStorage object.  If it's a single
    object, it has the following attributes:

    name: the field name, if specified; otherwise None

    filename: the filename, if specified; otherwise None; this is the
        client side filename, *not* the file name on which it is
        stored (that's a temporary file you don't deal with)

    value: the value as a *string*; for file uploads, this
        transparently reads the file every time you request the value

    file: the file(-like) object from which you can read the data;
        None if the data is stored a simple string

    type: the content-type, or None if not specified

    type_options: dictionary of options specified on the content-type
        line

    disposition: content-disposition, or None if not specified

    disposition_options: dictionary of corresponding options

    headers: a dictionary(-like) object (sometimes rfc822.Message or a
        subclass thereof) containing *all* headers

    The class is subclassable, mostly for the purpose of overriding
    the make_file() method, which is called internally to come up with
    a file open for reading and writing.  This makes it possible to
    override the default choice of storing all files in a temporary
    directory and unlinking them as soon as they have been opened.

     __init__ N/A N/A self fp headers outerboundary environ keep_blank_values strict_parsing N/A None None N/A os environ 0 0 N/A N/A Constructor.  Read multipart/* until last part.

        Arguments, all optional:

        fp              : file pointer; default: sys.stdin
            (not used when the request method is GET)

        headers         : header dictionary-like object; default:
            taken from environ as per CGI spec

        outerboundary   : terminating multipart boundary
            (for internal use only)

        environ         : environment dictionary; default: os.environ

        keep_blank_values: flag indicating whether blank values in
            URL encoded forms should be treated as blank strings.
            A true value indicates that blanks should be retained as
            blank strings.  The default false value indicates that
            blank values are to be ignored and treated as if they were
            not included.

        strict_parsing: flag indicating what to do with parsing errors.
            If false (the default), errors are silently ignored.
            If true, errors raise a ValueError exception.

         N/A method GET N/A N/A self keep_blank_values keep_blank_values N/A N/A self strict_parsing strict_parsing N/A N/A REQUEST_METHOD environ N/A N/A method N/A N/A N/A environ N/A REQUEST_METHOD upper N/A N/A self qs_on_post None N/A N/A N/A method GET N/A method HEAD N/A N/A N/A QUERY_STRING environ N/A N/A qs N/A environ N/A QUERY_STRING N/A N/A N/A N/A sys argv N/A 1 N/A N/A qs N/A N/A sys argv N/A 1 N/A N/A qs N/A fp N/A StringIO qs N/A N/A headers None N/A N/A headers N/A content-type application/x-www-form-urlencoded N/A N/A headers None N/A N/A headers N/A N/A N/A method POST N/A N/A N/A headers N/A content-type application/x-www-form-urlencoded N/A N/A CONTENT_TYPE environ N/A N/A N/A headers N/A content-type N/A environ N/A CONTENT_TYPE N/A N/A QUERY_STRING environ N/A N/A N/A self qs_on_post N/A environ N/A QUERY_STRING N/A N/A CONTENT_LENGTH environ N/A N/A N/A headers N/A content-length N/A environ N/A CONTENT_LENGTH N/A N/A self fp N/A fp N/A sys stdin N/A N/A self headers headers N/A N/A self outerboundary outerboundary N/A N/A cdisp pdict N/A N/A N/A N/A content-disposition N/A self headers N/A N/A N/A cdisp pdict N/A parse_header N/A N/A self headers N/A content-disposition N/A N/A self disposition cdisp N/A N/A self disposition_options pdict N/A N/A self name None N/A N/A name pdict N/A N/A N/A self name N/A pdict N/A name N/A N/A self filename None N/A N/A filename pdict N/A N/A N/A self filename N/A pdict N/A filename N/A N/A content-type N/A self headers N/A N/A N/A ctype pdict N/A parse_header N/A N/A self headers N/A content-type N/A N/A N/A N/A self outerboundary N/A method POST N/A N/A N/A ctype pdict N/A text/plain N/A N/A N/A N/A ctype pdict N/A application/x-www-form-urlencoded N/A N/A N/A self type ctype N/A N/A self type_options pdict N/A N/A self innerboundary N/A N/A boundary pdict N/A N/A N/A self innerboundary N/A pdict N/A boundary N/A clen -1 N/A N/A content-length N/A self headers N/A N/A N/A N/A clen N/A int N/A N/A self headers N/A content-length N/A N/A N/A ValueError N/A N/A N/A N/A maxlen N/A clen maxlen N/A N/A ValueError Maximum content length exceeded N/A N/A self length clen N/A N/A self list N/A self file None N/A N/A self done 0 N/A N/A ctype application/x-www-form-urlencoded N/A N/A N/A N/A self read_urlencoded N/A N/A N/A N/A ctype N/A 10 multipart/ N/A N/A N/A N/A self read_multi environ keep_blank_values strict_parsing N/A N/A N/A N/A self read_single N/A __repr__ N/A N/A self N/A N/A N/A Return a printable representation. N/A N/A FieldStorage(%r, %r, %r) N/A N/A self name N/A self filename N/A self value N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A N/A self keys N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name value N/A N/A AttributeError name N/A N/A self file N/A N/A N/A N/A N/A self file seek 0 N/A value N/A N/A N/A self file read N/A N/A N/A N/A self file seek 0 N/A N/A N/A N/A self list None N/A N/A value N/A self list N/A N/A value None N/A value N/A __getitem__ N/A N/A self key N/A N/A N/A Dictionary style indexing. N/A N/A N/A self list None N/A N/A TypeError not indexable N/A found N/A N/A item N/A self list N/A N/A N/A N/A item name key N/A N/A N/A N/A found append item N/A N/A found N/A N/A KeyError key N/A N/A N/A len found 1 N/A N/A N/A found N/A 0 N/A N/A found N/A getvalue N/A N/A self key default N/A None N/A N/A Dictionary style get() method, including 'value' lookup. N/A N/A key self N/A N/A value N/A self N/A key N/A N/A N/A type value N/A type N/A N/A N/A N/A map N/A attrgetter value value N/A N/A N/A value value N/A N/A default N/A getfirst N/A N/A self key default N/A None N/A N/A  Return the first value received. N/A N/A key self N/A N/A value N/A self N/A key N/A N/A N/A type value N/A type N/A N/A N/A N/A N/A value N/A 0 value N/A N/A N/A value value N/A N/A default N/A getlist N/A N/A self key N/A N/A N/A  Return list of received values. N/A N/A key self N/A N/A value N/A self N/A key N/A N/A N/A type value N/A type N/A N/A N/A N/A map N/A attrgetter value value N/A N/A N/A N/A value value N/A N/A N/A N/A keys N/A N/A self N/A N/A N/A Dictionary style keys() method. N/A N/A N/A self list None N/A N/A TypeError not indexable N/A N/A list N/A set N/A N/A item name N/A item N/A self list N/A has_key N/A N/A self key N/A N/A N/A Dictionary style has_key() method. N/A N/A N/A self list None N/A N/A TypeError not indexable N/A N/A any N/A N/A N/A item name key N/A item N/A self list N/A __contains__ N/A N/A self key N/A N/A N/A Dictionary style __contains__ method. N/A N/A N/A self list None N/A N/A TypeError not indexable N/A N/A any N/A N/A N/A item name key N/A item N/A self list N/A __len__ N/A N/A self N/A N/A N/A Dictionary style len(x) support. N/A N/A len N/A N/A self keys N/A __nonzero__ N/A N/A self N/A N/A N/A N/A bool N/A self list N/A read_urlencoded N/A N/A self N/A N/A N/A Internal: read data in query string format. N/A qs N/A N/A N/A self fp read N/A self length N/A N/A self qs_on_post N/A N/A qs N/A & N/A self qs_on_post N/A N/A self list list N/A N/A N/A key value N/A N/A urlparse parse_qsl qs N/A self keep_blank_values N/A self strict_parsing N/A N/A N/A N/A list append N/A MiniFieldStorage key value N/A N/A N/A self skip_lines N/A N/A FieldStorageClass None read_multi N/A N/A self environ keep_blank_values strict_parsing N/A N/A N/A Internal: read a part that is itself multipart. N/A ib N/A self innerboundary N/A N/A N/A valid_boundary ib N/A N/A ValueError N/A Invalid boundary in multipart form: %r N/A ib N/A N/A self list N/A N/A N/A self qs_on_post N/A N/A N/A key value N/A N/A urlparse parse_qsl N/A self qs_on_post N/A self keep_blank_values N/A self strict_parsing N/A N/A N/A N/A N/A self list append N/A MiniFieldStorage key value N/A FieldStorageClass None N/A klass N/A N/A self FieldStorageClass N/A self __class__ N/A part N/A klass N/A self fp N/A ib environ keep_blank_values strict_parsing N/A N/A N/A part done N/A N/A headers N/A N/A rfc822 Message N/A self fp N/A part N/A klass N/A self fp headers ib environ keep_blank_values strict_parsing N/A N/A N/A N/A self list append part N/A N/A N/A self skip_lines N/A read_single N/A N/A self N/A N/A N/A Internal: read an atomic part. N/A N/A N/A self length 0 N/A N/A N/A N/A self read_binary N/A N/A N/A self skip_lines N/A N/A N/A N/A self read_lines N/A N/A N/A N/A self file seek 0 N/A N/A bufsize N/A 8 1024 read_binary N/A N/A self N/A N/A N/A Internal: read binary data. N/A N/A self file N/A N/A self make_file b N/A todo N/A self length N/A N/A todo 0 N/A N/A N/A todo 0 N/A N/A data N/A N/A N/A self fp read N/A min todo N/A self bufsize N/A N/A data N/A N/A N/A self done -1 N/A N/A N/A N/A N/A self file write data N/A todo N/A todo N/A len data N/A read_lines N/A N/A self N/A N/A N/A Internal: read lines until EOF or outerboundary. N/A N/A self file N/A self __file N/A StringIO N/A N/A self outerboundary N/A N/A N/A N/A self read_lines_to_outerboundary N/A N/A N/A N/A self read_lines_to_eof N/A __write N/A N/A self line N/A N/A N/A N/A N/A self __file None N/A N/A N/A N/A N/A N/A N/A self __file tell N/A len line 1000 N/A N/A N/A self file N/A N/A self make_file N/A N/A N/A N/A self file write N/A N/A N/A self __file getvalue N/A N/A self __file None N/A N/A N/A N/A self file write line N/A read_lines_to_eof N/A N/A self N/A N/A N/A Internal: read lines until EOF. N/A 1 N/A N/A line N/A N/A N/A self fp readline N/A 1 16 N/A N/A line N/A N/A N/A self done -1 N/A N/A N/A N/A self __write line N/A read_lines_to_outerboundary N/A N/A self N/A N/A N/A Internal: read lines until outerboundary. N/A next N/A -- N/A self outerboundary N/A last N/A next -- N/A delim N/A last_line_lfend True N/A 1 N/A N/A line N/A N/A N/A self fp readline N/A 1 16 N/A N/A line N/A N/A N/A self done -1 N/A N/A N/A N/A N/A line N/A 2 -- last_line_lfend N/A N/A strippedline N/A N/A line strip N/A N/A strippedline next N/A N/A N/A N/A strippedline last N/A N/A N/A self done 1 N/A N/A odelim delim N/A N/A N/A line N/A -2 N/A N/A delim N/A line N/A line N/A -2 N/A last_line_lfend True N/A N/A N/A N/A line N/A -1 N/A N/A delim N/A line N/A line N/A -1 N/A last_line_lfend True N/A N/A delim N/A last_line_lfend False N/A N/A N/A self __write N/A odelim line N/A skip_lines N/A N/A self N/A N/A N/A Internal: skip lines until outer boundary if defined. N/A N/A N/A N/A self outerboundary N/A self done N/A N/A N/A next N/A -- N/A self outerboundary N/A last N/A next -- N/A last_line_lfend True N/A 1 N/A N/A line N/A N/A N/A self fp readline N/A 1 16 N/A N/A line N/A N/A N/A self done -1 N/A N/A N/A N/A N/A line N/A 2 -- last_line_lfend N/A N/A strippedline N/A N/A line strip N/A N/A strippedline next N/A N/A N/A N/A strippedline last N/A N/A N/A self done 1 N/A N/A last_line_lfend N/A N/A line endswith N/A make_file N/A N/A self binary N/A None N/A N/A Overridable: return a readable & writable file.

        The file will be used as follows:
        - data is written to it
        - seek(0)
        - data is read from it

        The 'binary' argument is unused -- the file is always opened
        in binary mode.

        This version opens a temporary file for reading and writing,
        and immediately deletes (unlinks) it.  The trick (on Unix!) is
        that the file can still be used, but it can't be opened by
        another process, and it will automatically be deleted when it
        is closed or when the current process terminates.

        If you want a more permanent file, you derive a class which
        overrides this method.  If you want a visible temporary file
        that is nevertheless automatically deleted when the script
        terminates, try defining a __del__ method in a derived class
        which unlinks the temporary files you have created.

         N/A tempfile N/A N/A N/A tempfile TemporaryFile w+b N/A N/A FormContentDict N/A N/A UserDict UserDict N/A N/A Form content as dictionary with a list of values per field.

    form = FormContentDict()

    form[key] -> [value, value, ...]
    key in form -> Boolean
    form.keys() -> [key, key, ...]
    form.values() -> [[val, val, ...], [val, val, ...], ...]
    form.items() ->  [(key, [val, val, ...]), (key, [val, val, ...]), ...]
    form.dict == {key: [val, val, ...], ...}

     __init__ N/A N/A self environ keep_blank_values strict_parsing N/A N/A os environ 0 0 N/A N/A N/A self dict N/A self data N/A parse environ environ keep_blank_values keep_blank_values strict_parsing strict_parsing N/A N/A self query_string N/A environ N/A QUERY_STRING N/A N/A SvFormContentDict N/A FormContentDict N/A N/A Form content as dictionary expecting a single value per field.

    If you only expect a single value for each field, then form[key]
    will return that single value.  It will raise an IndexError if
    that expectation is not true.  If you expect a field to have
    possible multiple values, than you can use form.getlist(key) to
    get all of the values.  values() and items() are a compromise:
    they return single strings where there is a single value, and
    lists of strings otherwise.

     __getitem__ N/A N/A self key N/A N/A N/A N/A N/A len N/A N/A self dict N/A key 1 N/A N/A IndexError expecting a single value N/A N/A N/A N/A self dict N/A key N/A 0 N/A getlist N/A N/A self key N/A N/A N/A N/A N/A self dict N/A key N/A values N/A N/A self N/A N/A N/A result N/A N/A value N/A N/A N/A self dict values N/A N/A N/A N/A len value 1 N/A N/A N/A N/A result append N/A value N/A 0 N/A N/A N/A N/A result append value N/A result N/A items N/A N/A self N/A N/A N/A result N/A N/A N/A key value N/A N/A N/A self dict items N/A N/A N/A N/A len value 1 N/A N/A N/A N/A result append N/A key N/A value N/A 0 N/A N/A N/A N/A result append N/A key value N/A result N/A N/A InterpFormContentDict N/A SvFormContentDict N/A N/A This class is present for backwards compatibility only. __getitem__ N/A N/A self key N/A N/A N/A v N/A N/A SvFormContentDict __getitem__ self key N/A N/A N/A v N/A 0 0123456789+-. N/A N/A N/A N/A N/A int v N/A N/A N/A ValueError N/A N/A N/A N/A N/A float v N/A N/A N/A ValueError N/A N/A N/A N/A N/A v strip N/A values N/A N/A self N/A N/A N/A result N/A N/A key N/A N/A self keys N/A N/A N/A N/A N/A N/A result append N/A self N/A key N/A N/A N/A IndexError N/A N/A N/A N/A result append N/A N/A self dict N/A key N/A result N/A items N/A N/A self N/A N/A N/A result N/A N/A key N/A N/A self keys N/A N/A N/A N/A N/A N/A result append N/A key N/A self N/A key N/A N/A N/A IndexError N/A N/A N/A N/A result append N/A key N/A N/A self dict N/A key N/A result N/A N/A FormContent N/A FormContentDict N/A N/A This class is present for backwards compatibility only. values N/A N/A self key N/A N/A N/A N/A key N/A self dict N/A N/A N/A N/A self dict N/A key N/A N/A None N/A indexed_value N/A N/A self key location N/A N/A N/A N/A key N/A self dict N/A N/A N/A N/A len N/A N/A self dict N/A key location N/A N/A N/A N/A N/A self dict N/A key N/A location N/A N/A None N/A N/A None N/A value N/A N/A self key N/A N/A N/A N/A key N/A self dict N/A N/A N/A N/A N/A self dict N/A key N/A 0 N/A N/A None N/A length N/A N/A self key N/A N/A N/A N/A len N/A N/A self dict N/A key N/A stripped N/A N/A self key N/A N/A N/A N/A key N/A self dict N/A N/A N/A N/A N/A N/A N/A self dict N/A key N/A 0 strip N/A N/A None N/A pars N/A N/A self N/A N/A N/A N/A self dict N/A N/A test N/A N/A environ N/A N/A os environ N/A N/A Robust test CGI script, usable as main program.

    Write minimal HTTP headers and dump all information provided to
    the script in HTML form.

     N/A Content-type: text/html N/A N/A N/A sys stderr N/A sys stdout N/A N/A N/A form N/A FieldStorage N/A N/A print_directory N/A N/A print_arguments N/A N/A print_form form N/A N/A print_environ environ N/A N/A print_environ_usage f N/A N/A N/A N/A N/A testing print_exception() -- <I>italics?</I> N/A g N/A N/A f N/A f N/A N/A N/A f N/A N/A <H3>What follows is a test, not an actual exception:</H3> N/A N/A g N/A N/A N/A N/A N/A print_exception N/A <H1>Second try with a small maxlen...</H1> N/A maxlen N/A maxlen 50 N/A N/A N/A form N/A FieldStorage N/A N/A print_directory N/A N/A print_arguments N/A N/A print_form form N/A N/A print_environ environ N/A N/A N/A N/A N/A print_exception N/A print_exception N/A N/A type value tb limit N/A None None None None N/A N/A N/A type None N/A N/A N/A type value tb N/A N/A sys exc_info N/A traceback N/A N/A <H3>Traceback (most recent call last):</H3> N/A list N/A N/A N/A traceback format_tb tb limit N/A N/A traceback format_exception_only type value N/A N/A <PRE>%s<B>%s</B></PRE> N/A N/A escape N/A N/A join N/A list N/A -1 N/A escape N/A list N/A -1 N/A tb N/A print_environ N/A N/A environ N/A N/A os environ N/A N/A Dump the shell environment as HTML. N/A keys N/A N/A environ keys N/A N/A N/A keys sort N/A N/A <H3>Shell Environment:</H3> N/A <DL> N/A key keys N/A N/A <DT> N/A escape key <DD> N/A escape N/A environ N/A key N/A </DL> N/A N/A print_form N/A N/A form N/A N/A N/A Dump the contents of a form as HTML. N/A keys N/A N/A form keys N/A N/A N/A keys sort N/A N/A <H3>Form Contents:</H3> N/A N/A keys N/A N/A <P>No form fields. N/A <DL> N/A key keys N/A N/A N/A N/A <DT> N/A escape key : N/A value N/A form N/A key N/A N/A N/A <i> N/A escape N/A repr N/A type value </i> N/A N/A <DD> N/A escape N/A repr value N/A </DL> N/A N/A print_directory N/A N/A N/A N/A N/A Dump the current directory as HTML. N/A N/A <H3>Current Working Directory:</H3> N/A N/A N/A pwd N/A N/A os getcwd N/A N/A N/A N/A os error N/A msg N/A N/A os.error: N/A escape N/A str msg N/A N/A N/A escape pwd N/A N/A print_arguments N/A N/A N/A N/A N/A N/A <H3>Command Line Arguments:</H3> N/A N/A N/A sys argv N/A N/A print_environ_usage N/A N/A N/A N/A N/A Dump a list of environment variables used by CGI as HTML. N/A 
<H3>These environment variables could have been set:</H3>
<UL>
<LI>AUTH_TYPE
<LI>CONTENT_LENGTH
<LI>CONTENT_TYPE
<LI>DATE_GMT
<LI>DATE_LOCAL
<LI>DOCUMENT_NAME
<LI>DOCUMENT_ROOT
<LI>DOCUMENT_URI
<LI>GATEWAY_INTERFACE
<LI>LAST_MODIFIED
<LI>PATH
<LI>PATH_INFO
<LI>PATH_TRANSLATED
<LI>QUERY_STRING
<LI>REMOTE_ADDR
<LI>REMOTE_HOST
<LI>REMOTE_IDENT
<LI>REMOTE_USER
<LI>REQUEST_METHOD
<LI>SCRIPT_NAME
<LI>SERVER_NAME
<LI>SERVER_PORT
<LI>SERVER_PROTOCOL
<LI>SERVER_ROOT
<LI>SERVER_SOFTWARE
</UL>
In addition, HTTP headers sent by the server may be passed in the
environment as well.  Here are some common variable names:
<UL>
<LI>HTTP_ACCEPT
<LI>HTTP_CONNECTION
<LI>HTTP_HOST
<LI>HTTP_PRAGMA
<LI>HTTP_REFERER
<LI>HTTP_USER_AGENT
</UL>
 N/A escape N/A N/A s quote N/A None N/A N/A Replace special characters "&", "<" and ">" to HTML-safe sequences.
    If the optional flag quote is true, the quotation mark character (")
    is also translated. N/A s N/A N/A s replace & &amp; N/A s N/A N/A s replace < &lt; N/A s N/A N/A s replace > &gt; N/A quote N/A N/A s N/A N/A s replace " &quot; N/A s N/A valid_boundary N/A N/A s _vb_pattern N/A ^[ -~]{0,200}[!-~]$ N/A N/A re N/A N/A N/A re match _vb_pattern s N/A N/A N/A __name__ __main__ N/A N/A N/A test