Module Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Num Assign NameStore Num TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam defaults body If NameLoad body Return NameLoad orelse Return NameLoad decorator_list TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list orelse Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If NameLoad body Return Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpAdd TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Global identifier Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Import alias alias alias alias alias alias alias alias alias alias ImportFrom alias Import alias Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam NameParam defaults Num body Pass decorator_list orelse FunctionDef arguments args NameParam NameParam defaults Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword BinOpAdd Num NameLoad decorator_list Assign NameStore Str Assign NameStore Num Assign NameStore Str ClassDef bases body Pass decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr orelse TryExcept body Assign NameStore Call NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad CompareNotEq Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Raise Call NameLoad handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Raise Call NameLoad Str NameLoad Assign NameStore ListLoad If UnaryOpNot NameLoad body For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad orelse For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad orelse If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad orelse TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad orelse For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareNotIn Str NameLoad body Return NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Num Str body Return Call NameLoad SubscriptLoad NameLoad Slice Num Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Call NameLoad Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad NameLoad Num If Call AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice Num Num Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad orelse TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Import alias ImportFrom alias Assign NameStore Dict TryExcept body Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad Call NameLoad NameLoad Index Num If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Num Num NameLoad Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad NameLoad orelse For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr SubscriptLoad NameLoad Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr BinOpAdd NameLoad Str handlers ExceptHandler body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad Call AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num comprehension NameStore TupleLoad Num Num Num Return BinOpAdd BinOpMult Str Num NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str While BoolOpAnd NameLoad UnaryOpNot SubscriptLoad NameLoad Index Num body Delete SubscriptDel NameLoad Index Num While BoolOpAnd NameLoad UnaryOpNot SubscriptLoad NameLoad Index Num body Delete SubscriptDel NameLoad Index Num If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call AttributeLoad NameLoad attr NameLoad orelse For NameStore Call NameLoad Num Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Str Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad Str attr NameLoad Str Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad ListLoad Num Num Num body Expr Str If BoolOpAnd NameLoad NameLoad body For TupleStore NameStore NameStore NameLoad body Assign NameStore BinOpAdd NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad ListLoad Num Num Num body Assign NameStore BoolOpOr NameLoad Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad BinOpAdd ListLoad TupleLoad Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str NameLoad Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list If NameLoad body Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Pass decorator_list orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list orelse Assign NameStore NameLoad ClassDef bases NameLoad body Pass decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad If CompareIsNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign AttributeStore NameLoad attr TupleLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Assign AttributeStore NameLoad attr NameLoad Delete SubscriptDel NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call NameLoad NameLoad orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str orelse Return If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If CompareIn SubscriptLoad NameLoad Slice Num Num ListLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list If UnaryOpNot NameLoad body ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Raise Call NameLoad Str decorator_list decorator_list orelse ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad NameLoad orelse Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list If CompareGtE SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num body Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad BinOpMod Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad BinOpMod Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list orelse FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Pass decorator_list Assign AttributeStore NameLoad attr NameLoad ClassDef bases NameLoad NameLoad body Expr Str Pass decorator_list Assign AttributeStore NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list TryExcept body If CompareLt SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num body Raise NameLoad Import alias handlers ExceptHandler type NameLoad body Pass orelse Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return SubscriptLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return SubscriptLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If NameLoad body Expr Call NameLoad Str Num Assign NameStore Call NameLoad NameLoad NameLoad While Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Raise If CompareNotEq Call NameLoad NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For TupleStore TupleStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Raise Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Return Call NameLoad NameLoad orelse Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr TupleLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str orelse If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad AttributeLoad NameLoad attr body Return ListLoad Return ListLoad TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Return ListLoad Return ListLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Str orelse Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore BinOpAdd NameLoad TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad NameLoad NameLoad ListLoad If CompareEq NameLoad Str body Return ListLoad orelse If CompareEq NameLoad Str body Return NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse If CompareIn NameLoad TupleLoad Str Str body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str BoolOpOr BoolOpAnd NameLoad ListLoad NameLoad ListLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr TupleLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad orelse Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Str NameLoad If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad NameLoad If CompareIs NameLoad NameLoad body If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad NameLoad Assign NameStore Num If CompareLtE Call NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return NameLoad orelse If CompareEq NameLoad Str body Return Call NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return UnaryOpNot AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore ListLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Continue If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq AttributeLoad NameLoad attr NameLoad body Continue If CompareIsNot NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr body If BoolOpOr BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr NameLoad BoolOpAnd UnaryOpNot NameLoad CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num body Break orelse Continue If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq AttributeLoad NameLoad attr NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr CompareEq NameLoad Call NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd UnaryOpNot NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse If BoolOpAnd NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse If UnaryOpNot NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad Str If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad Str If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call NameLoad Str Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call NameLoad Str Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call NameLoad Str Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareEq NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse For NameStore Call NameLoad BinOpSub Call NameLoad AttributeLoad NameLoad attr Num Num Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Break orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Return ListLoad Return ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd AttributeLoad NameLoad attr BoolOpOr UnaryOpNot AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot AttributeLoad NameLoad attr If CompareLt Call NameLoad NameLoad NameLoad body If CompareLt Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareEq Call NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assert CompareLtE Call NameLoad NameLoad Num If UnaryOpNot NameLoad body Assign AttributeStore SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd AttributeLoad NameLoad attr BoolOpOr UnaryOpNot AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For NameStore NameLoad body If CompareIn NameLoad Call AttributeLoad NameLoad attr body AugAssignAdd SubscriptStore NameLoad Index NameLoad Num orelse Assign SubscriptStore NameLoad Index NameLoad Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call NameLoad NameLoad body If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Delete SubscriptDel NameLoad Index Num Delete SubscriptDel NameLoad Index Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Delete SubscriptDel NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad body Raise Call NameLoad NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareGt Call NameLoad NameLoad Num body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr If ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Slice Num For NameStore NameLoad body If BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Break orelse Raise Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body If BoolOpAnd BoolOpOr UnaryOpNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Break orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad Str If NameLoad body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Break orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Return ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad body Return ListLoad orelse Return ListComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr If UnaryOpNot NameLoad body If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Break orelse For NameStore SubscriptLoad NameLoad Slice Num body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Dict Str NameLoad If BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Dict Str NameLoad orelse If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryFinally body Assign AttributeStore NameLoad attr NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Break orelse If UnaryOpNot AttributeLoad NameLoad attr body For NameStore SubscriptLoad NameLoad Slice Num body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return ListLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr UnaryOpNot NameLoad body Return ListLoad Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return ListLoad Assign NameStore ListLoad TupleLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Num TupleLoad BinOpAdd AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad BinOpAdd AttributeLoad NameLoad attr Num NameLoad NameLoad Return NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Continue orelse For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpAnd CompareEq NameLoad Str CompareEq Call NameLoad NameLoad Num body For NameStore Call NameLoad BinOpSub Call NameLoad AttributeLoad NameLoad attr Num Num Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Break Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str TupleLoad BoolOpOr BoolOpAnd AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return BinOpMod Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If NameLoad body Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad If NameLoad body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse Return Call NameLoad orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If NameLoad body Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad If NameLoad body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num TupleLoad Num Num AttributeLoad NameLoad attr NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num TupleLoad Num Num AttributeLoad NameLoad attr NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num TupleLoad Num Num NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If BoolOpAnd CompareIs NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If BoolOpAnd BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr BoolOpOr CompareIsNot NameLoad NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Continue If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr body Continue If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Continue If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr body Continue If BoolOpAnd NameLoad UnaryOpNot Call NameLoad NameLoad body Continue If NameLoad body For NameStore Call AttributeLoad NameLoad attr body If CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num body Break orelse Continue If CompareIsNot NameLoad NameLoad body If CompareEq NameLoad Num body Return NameLoad AugAssignSub NameStore Num Continue If NameLoad body Assign NameStore NameLoad Break Assign NameStore NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Return NameLoad Assign NameStore ListLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Raise Call NameLoad BinOpAdd Str NameLoad orelse If UnaryOpNot NameLoad body Raise Call NameLoad BinOpAdd Str NameLoad Assert NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body If BoolOpOr CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad CompareNotEq NameLoad Num body Raise Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num If CompareEq NameLoad Str body If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad TupleLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad ListLoad orelse If CompareEq NameLoad Str body Assign NameStore BinOpAdd NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Return TupleLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr ListLoad TupleLoad Str AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num For TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore SubscriptLoad NameLoad Index Num body Assign NameStore AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr Str body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A HTML form handling for web clients.

ClientForm is a Python module for handling HTML forms on the client
side, useful for parsing HTML forms, filling them in and returning the
completed forms to the server.  It has developed from a port of Gisle
Aas' Perl module HTML::Form, from the libwww-perl library, but the
interface is not the same.

The most useful docstring is the one for HTMLForm.

RFC 1866: HTML 2.0
RFC 1867: Form-based File Upload in HTML
RFC 2388: Returning Values from Forms: multipart/form-data
HTML 3.2 Specification, W3C Recommendation 14 January 1997 (for ISINDEX)
HTML 4.01 Specification, W3C Recommendation 24 December 1999


Copyright 2002-2007 John J. Lee <jjl@pobox.com>
Copyright 2005 Gary Poster
Copyright 2005 Zope Corporation
Copyright 1998-2000 Gisle Aas.

This code is free software; you can redistribute it and/or modify it
under the terms of the BSD or ZPL 2.1 licenses (see the file
COPYING.txt included with the distribution).

 N/A __all__ N/A AmbiguityError CheckboxControl Control ControlNotFoundError FileControl FormParser HTMLForm HiddenControl IgnoreControl ImageControl IsindexControl Item ItemCountError ItemNotFoundError Label ListControl LocateError Missing ParseError ParseFile ParseFileEx ParseResponse ParseResponseEx PasswordControl RadioControl ScalarControl SelectControl SubmitButtonControl SubmitControl TextControl TextareaControl XHTMLCompatibleFormParser N/A N/A N/A True N/A N/A N/A NameError N/A N/A True 1 N/A False 0 N/A N/A N/A bool N/A N/A N/A NameError N/A bool N/A N/A expr N/A N/A N/A expr N/A N/A True N/A N/A False N/A N/A N/A N/A logging N/A inspect N/A N/A N/A ImportError N/A debug N/A N/A msg N/A args kwds N/A N/A N/A N/A N/A _logger N/A N/A logging getLogger ClientForm N/A OPTIMIZATION_HACK True debug N/A N/A msg N/A args kwds N/A N/A OPTIMIZATION_HACK N/A N/A N/A caller_name N/A N/A N/A N/A inspect stack N/A 1 N/A 3 N/A extended_msg N/A %%s %s msg N/A extended_args N/A N/A caller_name args N/A debug N/A N/A _logger debug extended_msg extended_args kwds N/A _show_debug_messages N/A N/A N/A N/A N/A OPTIMIZATION_HACK N/A OPTIMIZATION_HACK False N/A N/A N/A _logger setLevel N/A logging DEBUG N/A handler N/A N/A logging StreamHandler N/A sys stdout N/A N/A N/A handler setLevel N/A logging DEBUG N/A N/A N/A _logger addHandler handler N/A N/A sys urllib urllib2 types mimetools copy urlparse htmlentitydefs re random cStringIO StringIO N/A sgmllib N/A N/A sgmllib charref N/A N/A re compile &#(x?[0-9a-fA-F]+)[^0-9a-fA-F] N/A N/A N/A HTMLParser N/A N/A N/A ImportError N/A N/A HAVE_MODULE_HTMLPARSER False N/A N/A HAVE_MODULE_HTMLPARSER True N/A N/A N/A warnings N/A N/A N/A ImportError N/A deprecation N/A N/A message stack_offset N/A 0 N/A N/A N/A N/A deprecation N/A N/A message stack_offset N/A 0 N/A N/A N/A N/A warnings warn message DeprecationWarning stacklevel N/A 3 stack_offset N/A N/A VERSION 0.2.10 N/A CHUNK 1024 N/A DEFAULT_ENCODING latin-1 Missing N/A N/A N/A N/A N/A _compress_re N/A N/A re compile \s+ compress_text N/A N/A text N/A N/A N/A N/A N/A _compress_re sub N/A N/A text strip N/A normalize_line_endings N/A N/A text N/A N/A N/A N/A N/A re sub (?:(?<!\r)\n)|(?:\r(?!\n)) text N/A urlencode N/A N/A query doseq N/A False N/A N/A Encode a sequence of two-element tuples or dictionary into a URL query string.

    If any values in the query arg are sequences and doseq is true, each
    sequence element is converted to a separate parameter.

    If the query arg is a sequence of two-element tuples, the order of the
    parameters in the output will match the order of parameters in the
    input.
     N/A N/A hasattr query items N/A N/A query N/A N/A query items N/A N/A N/A N/A x N/A len query N/A N/A N/A len query N/A N/A type N/A query N/A 0 N/A types TupleType N/A N/A N/A TypeError N/A N/A N/A TypeError N/A N/A N/A ty va tb N/A N/A sys exc_info N/A N/A TypeError not a valid non-string sequence or mapping object tb N/A l N/A N/A N/A doseq N/A N/A N/A k v query N/A N/A k N/A N/A urllib quote_plus N/A str k N/A v N/A N/A urllib quote_plus N/A str v N/A N/A N/A l append N/A N/A k = v N/A N/A N/A k v query N/A N/A k N/A N/A urllib quote_plus N/A str k N/A N/A N/A type v N/A types StringType N/A N/A v N/A N/A urllib quote_plus v N/A N/A N/A l append N/A N/A k = v N/A N/A N/A N/A type v N/A types UnicodeType N/A N/A v N/A N/A urllib quote_plus N/A N/A v encode ASCII replace N/A N/A N/A l append N/A N/A k = v N/A N/A N/A N/A x N/A len v N/A N/A N/A TypeError N/A N/A v N/A N/A urllib quote_plus N/A str v N/A N/A N/A l append N/A N/A k = v N/A N/A elt v N/A N/A N/A N/A l append N/A N/A k = N/A N/A urllib quote_plus N/A str elt N/A N/A N/A & join l N/A unescape N/A N/A data entities encoding N/A DEFAULT_ENCODING N/A N/A N/A N/A data None N/A & data N/A N/A data replace_entities N/A N/A match entities encoding N/A entities encoding N/A N/A ent N/A N/A match group N/A N/A N/A ent N/A 1 # N/A N/A N/A unescape_charref N/A ent N/A 2 -1 encoding N/A repl N/A N/A entities get ent N/A N/A repl None N/A N/A N/A N/A type repl N/A type N/A N/A N/A N/A repl N/A N/A repl encode encoding N/A N/A N/A UnicodeError N/A N/A repl ent N/A N/A repl ent N/A repl N/A N/A N/A N/A re sub &#?[A-Za-z0-9]+?; replace_entities data N/A unescape_charref N/A N/A data encoding N/A N/A N/A N/A name base N/A data 10 N/A N/A N/A name startswith x N/A N/A N/A name base N/A N/A name N/A 1 16 N/A uc N/A unichr N/A int name base N/A N/A encoding None N/A N/A uc N/A N/A N/A N/A repl N/A N/A uc encode encoding N/A N/A N/A UnicodeError N/A N/A repl N/A &#%s; data N/A repl N/A get_entitydefs N/A N/A N/A N/A N/A htmlentitydefs codecs latin_1_decode N/A entitydefs N/A N/A N/A N/A N/A htmlentitydefs name2codepoint N/A N/A N/A AttributeError N/A N/A entitydefs N/A N/A N/A name char N/A N/A N/A htmlentitydefs entitydefs items N/A N/A uc N/A N/A latin_1_decode char N/A 0 N/A N/A N/A N/A uc startswith &# N/A N/A uc endswith ; N/A N/A uc N/A unescape_charref N/A uc N/A 2 -1 None N/A N/A entitydefs N/A N/A &%s; name uc N/A N/A N/A name codepoint N/A N/A N/A htmlentitydefs name2codepoint items N/A N/A N/A entitydefs N/A N/A &%s; name N/A unichr codepoint N/A entitydefs N/A issequence N/A N/A x N/A N/A N/A N/A N/A N/A x N/A 0 N/A N/A N/A N/A TypeError KeyError N/A N/A False N/A N/A IndexError N/A N/A N/A True N/A isstringlike N/A N/A x N/A N/A N/A N/A N/A N/A x N/A N/A N/A N/A False N/A N/A True N/A choose_boundary N/A N/A N/A N/A N/A Return a string usable as a multipart boundary. N/A nonce N/A N/A join N/A N/A str N/A N/A random randint 0 N/A N/A sys maxint 1 N/A i N/A 0 1 2 N/A N/A N/A - 27 nonce N/A MimeWriter N/A N/A N/A Generic MIME writer.

    Methods:

    __init__()
    addheader()
    flushheaders()
    startbody()
    startmultipartbody()
    nextpart()
    lastpart()

    A MIME writer is much more primitive than a MIME parser.  It
    doesn't seek around on the output file, and it doesn't use large
    amounts of buffer space, so you have to write the parts in the
    order they should occur on the output file.  It does buffer the
    headers you add, allowing you to rearrange their order.

    General usage is:

    f = <open the output file>
    w = MimeWriter(f)
    ...call w.addheader(key, value) 0 or more times...

    followed by either:

    f = w.startbody(content_type)
    ...call f.write(data) for body data...

    or:

    w.startmultipartbody(subtype)
    for each part:
        subwriter = w.nextpart()
        ...use the subwriter's methods to create the subpart...
    w.lastpart()

    The subwriter is another MimeWriter instance, and should be
    treated in the same way as the toplevel MimeWriter.  This way,
    writing recursive body parts is easy.

    Warning: don't forget to call lastpart()!

    XXX There should be more state so calls made in the wrong order
    are detected.

    Some special cases:

    - startbody() just returns the file passed to the constructor;
      but don't use this knowledge, as it may be changed.

    - startmultipartbody() actually returns a file as well;
      this can be used to write the initial 'if you can read this your
      mailer is not MIME-aware' message.

    - If you call flushheaders(), the headers accumulated so far are
      written out (and forgotten); this is useful if you don't need a
      body part at all, e.g. for a subpart of type message/rfc822
      that's (mis)used to store some header-like information.

    - Passing a keyword argument 'prefix=<flag>' to addheader(),
      start*body() affects where the header is inserted; 0 means
      append at the end, 1 means insert at the start; default is
      append for addheader(), but insert for start*body(), which use
      it to determine where the Content-type header goes.

     __init__ N/A N/A self fp http_hdrs N/A None N/A N/A N/A self _http_hdrs http_hdrs N/A N/A self _fp fp N/A N/A self _headers N/A N/A N/A self _boundary N/A N/A N/A self _first_part True N/A addheader N/A N/A self key value prefix add_to_http_hdrs N/A 0 0 N/A N/A 
        prefix is ignored if add_to_http_hdrs is true.
         N/A lines N/A N/A value split N/A N/A lines N/A N/A lines N/A -1 N/A N/A N/A lines N/A -1 N/A N/A lines N/A N/A lines N/A 0 N/A N/A N/A lines N/A 0 N/A add_to_http_hdrs N/A N/A value N/A N/A join lines N/A N/A N/A N/A self _http_hdrs append N/A N/A N/A key capitalize value N/A N/A i N/A range 1 N/A len lines N/A N/A N/A lines N/A i N/A N/A N/A N/A lines N/A i strip N/A value N/A N/A N/A join lines N/A line N/A N/A N/A N/A key title :  value N/A prefix N/A N/A N/A N/A N/A self _headers insert 0 line N/A N/A N/A N/A N/A self _headers append line N/A flushheaders N/A N/A self N/A N/A N/A N/A N/A N/A self _fp writelines N/A self _headers N/A N/A self _headers N/A N/A startbody N/A N/A self ctype plist prefix add_to_http_hdrs content_type N/A None N/A 1 0 1 N/A N/A 
        prefix is ignored if add_to_http_hdrs is true.
         N/A N/A content_type ctype N/A N/A N/A name value plist N/A N/A ctype N/A ctype N/A ;
 %s=%s N/A name value N/A N/A N/A self addheader Content-Type ctype prefix prefix add_to_http_hdrs add_to_http_hdrs N/A N/A N/A self flushheaders N/A N/A add_to_http_hdrs N/A N/A N/A N/A N/A self _fp write N/A N/A self _first_part True N/A N/A self _fp N/A startmultipartbody N/A N/A self subtype boundary plist prefix add_to_http_hdrs content_type N/A None N/A 1 0 1 N/A N/A boundary N/A boundary N/A choose_boundary N/A N/A N/A N/A self _boundary append boundary N/A N/A N/A self startbody N/A multipart/ subtype N/A N/A N/A boundary boundary plist prefix prefix add_to_http_hdrs add_to_http_hdrs content_type content_type N/A nextpart N/A N/A self N/A N/A N/A boundary N/A N/A self _boundary N/A -1 N/A N/A self _first_part N/A N/A N/A self _first_part False N/A N/A N/A N/A N/A self _fp write N/A N/A N/A N/A self _fp write N/A N/A -- boundary N/A N/A N/A self __class__ N/A self _fp N/A lastpart N/A N/A self N/A N/A N/A N/A self _first_part N/A N/A N/A N/A self nextpart N/A boundary N/A N/A N/A self _boundary pop N/A N/A N/A N/A self _fp write N/A N/A 
-- boundary --
 N/A N/A LocateError N/A ValueError N/A N/A N/A AmbiguityError N/A LocateError N/A N/A N/A ControlNotFoundError N/A LocateError N/A N/A N/A ItemNotFoundError N/A LocateError N/A N/A N/A ItemCountError N/A ValueError N/A N/A N/A N/A HAVE_MODULE_HTMLPARSER N/A N/A SGMLLIB_PARSEERROR N/A sgmllib SGMLParseError ParseError N/A N/A sgmllib SGMLParseError N/A HTMLParser HTMLParseError N/A N/A N/A N/A N/A N/A hasattr sgmllib SGMLParseError N/A N/A SGMLLIB_PARSEERROR N/A sgmllib SGMLParseError ParseError N/A N/A sgmllib SGMLParseError N/A N/A N/A N/A N/A SGMLLIB_PARSEERROR RuntimeError ParseError N/A RuntimeError N/A N/A N/A _AbstractFormParser N/A N/A N/A forms attribute contains HTMLForm instances on completion. __init__ N/A N/A self entitydefs encoding N/A None DEFAULT_ENCODING N/A N/A N/A entitydefs None N/A N/A entitydefs N/A get_entitydefs N/A N/A self _entitydefs entitydefs N/A N/A self _encoding encoding N/A N/A self base None N/A N/A self forms N/A N/A N/A self labels N/A N/A N/A self _current_label None N/A N/A self _current_form None N/A N/A self _select None N/A N/A self _optgroup None N/A N/A self _option None N/A N/A self _textarea None N/A N/A self _global_form None N/A N/A N/A self start_form N/A N/A N/A N/A self end_form N/A N/A self _current_form N/A self _global_form N/A N/A self forms N/A 0 N/A do_base N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A N/A key value attrs N/A N/A N/A key href N/A N/A N/A self base N/A N/A self unescape_attr_if_required value N/A end_body N/A N/A self N/A N/A N/A N/A debug N/A N/A N/A self _current_label None N/A N/A N/A N/A self end_label N/A N/A N/A self _current_form N/A self _global_form N/A N/A N/A N/A self end_form N/A start_form N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A N/A N/A self _current_form N/A self _global_form N/A N/A N/A ParseError nested FORMs N/A name None N/A action None N/A enctype application/x-www-form-urlencoded N/A method GET N/A d N/A N/A N/A key value attrs N/A N/A N/A key name N/A N/A name N/A N/A self unescape_attr_if_required value N/A N/A N/A key action N/A N/A action N/A N/A self unescape_attr_if_required value N/A N/A N/A key method N/A N/A method N/A N/A self unescape_attr_if_required N/A N/A value upper N/A N/A N/A key enctype N/A N/A enctype N/A N/A self unescape_attr_if_required N/A N/A value lower N/A N/A d N/A key N/A N/A self unescape_attr_if_required value N/A controls N/A N/A N/A self _current_form N/A N/A name action method enctype d controls N/A end_form N/A N/A self N/A N/A N/A N/A debug N/A N/A N/A self _current_label None N/A N/A N/A N/A self end_label N/A N/A N/A self _current_form N/A self _global_form N/A N/A N/A ParseError end of FORM before start N/A N/A N/A N/A self forms append N/A self _current_form N/A N/A self _current_form N/A self _global_form N/A start_select N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A N/A N/A self _select None N/A N/A N/A ParseError nested SELECTs N/A N/A N/A self _textarea None N/A N/A N/A ParseError SELECT inside TEXTAREA N/A d N/A N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A N/A self _select d N/A N/A N/A self _add_label d N/A N/A N/A self _append_select_control N/A __select d N/A end_select N/A N/A self N/A N/A N/A N/A debug N/A N/A N/A self _select None N/A N/A N/A ParseError end of SELECT before start N/A N/A N/A self _option None N/A N/A N/A N/A self _end_option N/A N/A self _select None N/A start_optgroup N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A N/A N/A self _select None N/A N/A N/A ParseError OPTGROUP outside of SELECT N/A d N/A N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A N/A self _optgroup d N/A end_optgroup N/A N/A self N/A N/A N/A N/A debug N/A N/A N/A self _optgroup None N/A N/A N/A ParseError end of OPTGROUP before start N/A N/A self _optgroup None N/A _start_option N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A N/A N/A self _select None N/A N/A N/A ParseError OPTION outside of SELECT N/A N/A N/A self _option None N/A N/A N/A N/A self _end_option N/A d N/A N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A N/A self _option N/A N/A N/A N/A N/A self _option update d N/A N/A N/A self _optgroup N/A N/A N/A self _optgroup has_key disabled N/A N/A N/A N/A self _option has_key disabled N/A N/A N/A N/A self _option N/A disabled None N/A _end_option N/A N/A self N/A N/A N/A N/A debug N/A N/A N/A self _option None N/A N/A N/A ParseError end of OPTION before start N/A contents N/A N/A N/A N/A N/A self _option get contents strip N/A N/A N/A self _option N/A contents contents N/A N/A N/A N/A N/A self _option has_key value N/A N/A N/A N/A self _option N/A value contents N/A N/A N/A N/A N/A self _option has_key label N/A N/A N/A N/A self _option N/A label contents N/A N/A N/A self _option N/A __select N/A self _select N/A N/A N/A self _append_select_control N/A self _option N/A N/A self _option None N/A _append_select_control N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A controls N/A N/A self _current_form N/A 2 N/A name N/A N/A N/A self _select get name N/A N/A N/A controls append N/A select name attrs N/A start_textarea N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A N/A N/A self _textarea None N/A N/A N/A ParseError nested TEXTAREAs N/A N/A N/A self _select None N/A N/A N/A ParseError TEXTAREA inside SELECT N/A d N/A N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A N/A N/A self _add_label d N/A N/A self _textarea d N/A end_textarea N/A N/A self N/A N/A N/A N/A debug N/A N/A N/A self _textarea None N/A N/A N/A ParseError end of TEXTAREA before start N/A controls N/A N/A self _current_form N/A 2 N/A name N/A N/A N/A self _textarea get name N/A N/A N/A controls append N/A textarea name N/A self _textarea N/A N/A self _textarea None N/A start_label N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A N/A self _current_label N/A N/A N/A N/A self end_label N/A d N/A N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A taken N/A bool N/A N/A d get for N/A N/A d N/A __text N/A N/A d N/A __taken taken N/A taken N/A N/A N/A N/A N/A self labels append d N/A N/A self _current_label d N/A end_label N/A N/A self N/A N/A N/A N/A debug N/A label N/A self _current_label N/A N/A label None N/A N/A N/A N/A self _current_label None N/A N/A label N/A __taken N/A _add_label N/A N/A self d N/A N/A N/A N/A N/A self _current_label None N/A N/A N/A N/A N/A self _current_label N/A __taken N/A N/A N/A N/A self _current_label N/A __taken True N/A N/A d N/A __label N/A self _current_label N/A handle_data N/A N/A self data N/A N/A N/A N/A debug %s data N/A N/A N/A self _option None N/A N/A map N/A self _option N/A key contents N/A N/A N/A N/A self _textarea None N/A N/A map N/A self _textarea N/A key value N/A data N/A normalize_line_endings data N/A N/A N/A N/A self _current_label None N/A N/A map N/A self _current_label N/A key __text N/A N/A N/A N/A data N/A N/A N/A map has_key key N/A N/A N/A N/A data N/A 0 2 N/A N/A data N/A data N/A 2 N/A N/A N/A N/A data N/A 0 1 N/A N/A N/A data N/A data N/A 1 N/A N/A map N/A key data N/A N/A N/A map N/A key N/A N/A map N/A key data N/A do_button N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A d N/A N/A N/A d N/A type submit N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A controls N/A N/A self _current_form N/A 2 N/A type N/A d N/A type N/A name N/A N/A d get name N/A type N/A type button N/A N/A N/A self _add_label d N/A N/A N/A controls append N/A type name d N/A do_input N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A d N/A N/A N/A d N/A type text N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A controls N/A N/A self _current_form N/A 2 N/A type N/A d N/A type N/A name N/A N/A d get name N/A N/A N/A self _add_label d N/A N/A N/A controls append N/A type name d N/A do_isindex N/A N/A self attrs N/A N/A N/A N/A debug %s attrs N/A d N/A N/A N/A key val attrs N/A N/A N/A d N/A key N/A N/A self unescape_attr_if_required val N/A controls N/A N/A self _current_form N/A 2 N/A N/A N/A self _add_label d N/A N/A N/A controls append N/A isindex None d N/A handle_entityref N/A N/A self name N/A N/A N/A N/A N/A self handle_data N/A unescape N/A &%s; name N/A self _entitydefs N/A self _encoding N/A handle_charref N/A N/A self name N/A N/A N/A N/A N/A self handle_data N/A unescape_charref name N/A self _encoding N/A unescape_attr N/A N/A self name N/A N/A N/A N/A unescape name N/A self _entitydefs N/A self _encoding N/A unescape_attrs N/A N/A self attrs N/A N/A N/A escaped_attrs N/A N/A N/A key val N/A N/A attrs items N/A N/A N/A N/A N/A val items N/A N/A N/A AttributeError N/A N/A N/A escaped_attrs N/A key N/A N/A self unescape_attr val N/A N/A N/A escaped_attrs N/A key N/A N/A self unescape_attrs val N/A escaped_attrs N/A unknown_entityref N/A N/A self ref N/A N/A N/A N/A N/A self handle_data N/A &%s; ref N/A unknown_charref N/A N/A self ref N/A N/A N/A N/A N/A self handle_data N/A &#%s; ref N/A N/A N/A N/A HAVE_MODULE_HTMLPARSER N/A XHTMLCompatibleFormParser N/A N/A __init__ N/A N/A self entitydefs encoding N/A None DEFAULT_ENCODING N/A N/A N/A ValueError HTMLParser could not be imported N/A N/A N/A XHTMLCompatibleFormParser N/A _AbstractFormParser N/A HTMLParser HTMLParser N/A N/A Good for XHTML, bad for tolerance of incorrect HTML. __init__ N/A N/A self entitydefs encoding N/A None DEFAULT_ENCODING N/A N/A N/A N/A N/A HTMLParser HTMLParser __init__ self N/A N/A N/A _AbstractFormParser __init__ self entitydefs encoding N/A feed N/A N/A self data N/A N/A N/A N/A N/A N/A N/A N/A HTMLParser HTMLParser feed self data N/A N/A N/A N/A HTMLParser HTMLParseError N/A exc N/A N/A N/A ParseError exc N/A start_option N/A N/A self attrs N/A N/A N/A N/A N/A _AbstractFormParser _start_option self attrs N/A end_option N/A N/A self N/A N/A N/A N/A N/A _AbstractFormParser _end_option self N/A handle_starttag N/A N/A self tag attrs N/A N/A N/A N/A N/A method N/A getattr self N/A start_ tag N/A N/A N/A AttributeError N/A N/A N/A N/A method N/A getattr self N/A do_ tag N/A N/A N/A AttributeError N/A N/A N/A N/A N/A method attrs N/A N/A N/A method attrs N/A handle_endtag N/A N/A self tag N/A N/A N/A N/A N/A method N/A getattr self N/A end_ tag N/A N/A N/A AttributeError N/A N/A N/A N/A N/A method N/A unescape N/A N/A self name N/A N/A N/A N/A N/A self unescape_attr name N/A unescape_attr_if_required N/A N/A self name N/A N/A N/A name N/A unescape_attrs_if_required N/A N/A self attrs N/A N/A N/A attrs N/A close N/A N/A self N/A N/A N/A N/A N/A N/A HTMLParser HTMLParser close self N/A N/A N/A self end_body N/A N/A _AbstractSgmllibParser N/A _AbstractFormParser N/A do_option N/A N/A self attrs N/A N/A N/A N/A N/A _AbstractFormParser _start_option self attrs N/A N/A N/A N/A N/A sys version_info N/A 2 N/A 2 5 N/A N/A entity_or_charref N/A N/A re compile &(?:([a-zA-Z][-.a-zA-Z0-9]*)|#(x?[0-9a-fA-F]+))(;?) convert_entityref N/A N/A self name N/A N/A N/A N/A unescape N/A &%s; name N/A self _entitydefs N/A self _encoding N/A convert_charref N/A N/A self name N/A N/A N/A N/A unescape_charref N/A %s name N/A self _encoding N/A unescape_attr_if_required N/A N/A self name N/A N/A N/A name N/A unescape_attrs_if_required N/A N/A self attrs N/A N/A N/A attrs N/A N/A unescape_attr_if_required N/A N/A self name N/A N/A N/A N/A N/A self unescape_attr name N/A unescape_attrs_if_required N/A N/A self attrs N/A N/A N/A N/A N/A self unescape_attrs attrs N/A N/A FormParser N/A _AbstractSgmllibParser N/A sgmllib SGMLParser N/A N/A Good for tolerance of incorrect HTML, bad for XHTML. __init__ N/A N/A self entitydefs encoding N/A None DEFAULT_ENCODING N/A N/A N/A N/A N/A sgmllib SGMLParser __init__ self N/A N/A N/A _AbstractFormParser __init__ self entitydefs encoding N/A feed N/A N/A self data N/A N/A N/A N/A N/A N/A N/A N/A sgmllib SGMLParser feed self data N/A N/A N/A SGMLLIB_PARSEERROR N/A exc N/A N/A N/A ParseError exc N/A close N/A N/A self N/A N/A N/A N/A N/A N/A sgmllib SGMLParser close self N/A N/A N/A self end_body N/A N/A _create_bs_classes N/A N/A bs icbinbs N/A N/A _AbstractBSFormParser N/A _AbstractSgmllibParser N/A N/A bs_base_class None __init__ N/A N/A self entitydefs encoding N/A None DEFAULT_ENCODING N/A N/A N/A N/A _AbstractFormParser __init__ self entitydefs encoding N/A N/A N/A N/A self bs_base_class __init__ self N/A handle_data N/A N/A self data N/A N/A N/A N/A N/A _AbstractFormParser handle_data self data N/A N/A N/A N/A self bs_base_class handle_data self data N/A feed N/A N/A self data N/A N/A N/A N/A N/A N/A N/A N/A self bs_base_class feed self data N/A N/A N/A SGMLLIB_PARSEERROR N/A exc N/A N/A N/A ParseError exc N/A close N/A N/A self N/A N/A N/A N/A N/A N/A self bs_base_class close self N/A N/A N/A self end_body N/A N/A RobustFormParser N/A _AbstractBSFormParser bs N/A N/A Tries to be highly tolerant of incorrect HTML. N/A N/A N/A N/A RobustFormParser bs_base_class bs NestingRobustFormParser N/A _AbstractBSFormParser icbinbs N/A N/A Tries to be highly tolerant of incorrect HTML.

        Different from RobustFormParser in that it more often guesses nesting
        above missing end tags (see BeautifulSoup docs).

         N/A N/A N/A N/A NestingRobustFormParser bs_base_class icbinbs N/A N/A RobustFormParser NestingRobustFormParser N/A N/A N/A N/A N/A N/A N/A sys version_info N/A 2 N/A 2 2 N/A N/A ImportError N/A BeautifulSoup N/A N/A N/A ImportError N/A N/A N/A N/A N/A RobustFormParser NestingRobustFormParser N/A _create_bs_classes N/A BeautifulSoup BeautifulSoup N/A BeautifulSoup ICantBelieveItsBeautifulSoup N/A __all__ N/A RobustFormParser NestingRobustFormParser ParseResponseEx N/A N/A response select_default form_parser_class request_class entitydefs encoding _urljoin _urlparse _urlunparse N/A False FormParser N/A urllib2 Request None DEFAULT_ENCODING N/A urlparse urljoin N/A urlparse urlparse N/A urlparse urlunparse N/A N/A Identical to ParseResponse, except that:

    1. The returned list contains an extra item.  The first form in the list
    contains all controls not contained in any FORM element.

    2. The arguments ignore_errors and backwards_compat have been removed.

    3. Backwards-compatibility mode (backwards_compat=True) is not available.
     N/A N/A _ParseFileEx response N/A N/A response geturl select_default False form_parser_class request_class entitydefs False encoding _urljoin _urljoin _urlparse _urlparse _urlunparse _urlunparse N/A ParseFileEx N/A N/A file base_uri select_default form_parser_class request_class entitydefs encoding _urljoin _urlparse _urlunparse N/A False FormParser N/A urllib2 Request None DEFAULT_ENCODING N/A urlparse urljoin N/A urlparse urlparse N/A urlparse urlunparse N/A N/A Identical to ParseFile, except that:

    1. The returned list contains an extra item.  The first form in the list
    contains all controls not contained in any FORM element.

    2. The arguments ignore_errors and backwards_compat have been removed.

    3. Backwards-compatibility mode (backwards_compat=True) is not available.
     N/A N/A _ParseFileEx file base_uri select_default False form_parser_class request_class entitydefs False encoding _urljoin _urljoin _urlparse _urlparse _urlunparse _urlunparse N/A ParseResponse N/A N/A response N/A args kwds N/A N/A Parse HTTP response and return a list of HTMLForm instances.

    The return value of urllib2.urlopen can be conveniently passed to this
    function as the response parameter.

    ClientForm.ParseError is raised on parse errors.

    response: file-like object (supporting read() method) with a method
     geturl(), returning the URI of the HTTP response
    select_default: for multiple-selection SELECT controls and RADIO controls,
     pick the first item as the default if none are selected in the HTML
    form_parser_class: class to instantiate and use to pass
    request_class: class to return from .click() method (default is
     urllib2.Request)
    entitydefs: mapping like {"&amp;": "&", ...} containing HTML entity
     definitions (a sensible default is used)
    encoding: character encoding used for encoding numeric character references
     when matching link text.  ClientForm does not attempt to find the encoding
     in a META HTTP-EQUIV attribute in the document itself (mechanize, for
     example, does do that and will pass the correct value to ClientForm using
     this parameter).

    backwards_compat: boolean that determines whether the returned HTMLForm
     objects are backwards-compatible with old code.  If backwards_compat is
     true:

     - ClientForm 0.1 code will continue to work as before.

     - Label searches that do not specify a nr (number or count) will always
       get the first match, even if other controls match.  If
       backwards_compat is False, label searches that have ambiguous results
       will raise an AmbiguityError.

     - Item label matching is done by strict string comparison rather than
       substring matching.

     - De-selecting individual list items is allowed even if the Item is
       disabled.

    The backwards_compat argument will be deprecated in a future release.

    Pass a true value for select_default if you want the behaviour specified by
    RFC 1866 (the HTML 2.0 standard), which is to select the first item in a
    RADIO or multiple-selection SELECT control if none were selected in the
    HTML.  Most browsers (including Microsoft Internet Explorer (IE) and
    Netscape Navigator) instead leave all items unselected in these cases.  The
    W3C HTML 4.0 standard leaves this behaviour undefined in the case of
    multiple-selection SELECT controls, but insists that at least one RADIO
    button should be checked at all times, in contradiction to browser
    behaviour.

    There is a choice of parsers.  ClientForm.XHTMLCompatibleFormParser (uses
    HTMLParser.HTMLParser) works best for XHTML, ClientForm.FormParser (uses
    sgmllib.SGMLParser) (the default) works better for ordinary grubby HTML.
    Note that HTMLParser is only available in Python 2.2 and later.  You can
    pass your own class in here as a hack to work around bad HTML, but at your
    own risk: there is no well-defined interface.

     N/A N/A N/A _ParseFileEx response N/A N/A response geturl args kwds N/A 1 N/A ParseFile N/A N/A file base_uri N/A args kwds N/A N/A Parse HTML and return a list of HTMLForm instances.

    ClientForm.ParseError is raised on parse errors.

    file: file-like object (supporting read() method) containing HTML with zero
     or more forms to be parsed
    base_uri: the URI of the document (note that the base URI used to submit
     the form will be that given in the BASE element if present, not that of
     the document)

    For the other arguments and further details, see ParseResponse.__doc__.

     N/A N/A N/A _ParseFileEx file base_uri args kwds N/A 1 N/A _ParseFileEx N/A N/A file base_uri select_default ignore_errors form_parser_class request_class entitydefs backwards_compat encoding _urljoin _urlparse _urlunparse N/A False False FormParser N/A urllib2 Request None True DEFAULT_ENCODING N/A urlparse urljoin N/A urlparse urlparse N/A urlparse urlunparse N/A N/A backwards_compat N/A N/A N/A deprecation operating in backwards-compatibility mode 1 N/A fp N/A form_parser_class entitydefs encoding N/A 1 N/A N/A data N/A N/A file read CHUNK N/A N/A N/A N/A N/A fp feed data N/A N/A N/A ParseError N/A e N/A N/A N/A e base_uri base_uri N/A N/A N/A N/A len data CHUNK N/A N/A N/A N/A N/A fp close N/A N/A N/A fp base None N/A N/A base_uri N/A fp base N/A labels N/A N/A id_to_labels N/A N/A l N/A fp labels N/A N/A label N/A Label l N/A N/A N/A labels append label N/A for_id N/A l N/A for N/A coll N/A N/A id_to_labels get for_id N/A N/A coll None N/A N/A N/A id_to_labels N/A for_id N/A label N/A N/A N/A N/A coll append label N/A forms N/A N/A N/A N/A name action method enctype attrs controls N/A fp forms N/A N/A N/A action None N/A N/A action base_uri N/A N/A action N/A _urljoin base_uri action N/A form N/A HTMLForm action method enctype name attrs request_class forms labels id_to_labels backwards_compat N/A N/A form _urlparse _urlparse N/A N/A form _urlunparse _urlunparse N/A ii N/A range N/A len controls N/A N/A N/A type name attrs N/A controls N/A ii N/A N/A N/A form new_control type name attrs select_default select_default index N/A ii 10 N/A N/A N/A forms append form N/A form forms N/A N/A N/A N/A form fixup N/A forms N/A Label N/A N/A __init__ N/A N/A self attrs N/A N/A N/A N/A self id N/A N/A attrs get for N/A N/A self _text N/A N/A N/A N/A attrs get __text strip N/A N/A self _ctext N/A compress_text N/A self _text N/A N/A self attrs attrs N/A N/A self _backwards_compat False N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name text N/A N/A N/A self _backwards_compat N/A N/A N/A self _text N/A N/A N/A self _ctext N/A N/A getattr Label name N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A name text N/A N/A N/A AttributeError text attribute is read-only N/A N/A N/A self __dict__ N/A name value N/A __str__ N/A N/A self N/A N/A N/A N/A <Label(id=%r, text=%r)> N/A N/A self id N/A self text N/A N/A _get_label N/A N/A attrs N/A N/A N/A text N/A N/A attrs get __label N/A N/A text None N/A N/A N/A Label text N/A N/A None N/A Control N/A N/A N/A An HTML form control.

    An HTMLForm contains a sequence of Controls.  The Controls in an HTMLForm
    are accessed using the HTMLForm.find_control method or the
    HTMLForm.controls attribute.

    Control instances are usually constructed using the ParseFile /
    ParseResponse functions.  If you use those functions, you can ignore the
    rest of this paragraph.  A Control is only properly initialised after the
    fixup method has been called.  In fact, this is only strictly necessary for
    ListControl instances.  This is necessary because ListControls are built up
    from ListControls each containing only a single item, and their initial
    value(s) can only be known after the sequence is complete.

    The types and values that are acceptable for assignment to the value
    attribute are defined by subclasses.

    If the disabled attribute is true, this represents the state typically
    represented by browsers by 'greying out' a control.  If the disabled
    attribute is true, the Control will raise AttributeError if an attempt is
    made to change its value.  In addition, the control will not be considered
    'successful' as defined by the W3C HTML 4 standard -- ie. it will
    contribute no data to the return value of the HTMLForm.click* methods.  To
    enable a control, set the disabled attribute to a false value.

    If the readonly attribute is true, the Control will raise AttributeError if
    an attempt is made to change its value.  To make a control writable, set
    the readonly attribute to a false value.

    All controls have the disabled and readonly attributes, not only those that
    may have the HTML attributes of the same names.

    On assignment to the value attribute, the following exceptions are raised:
    TypeError, AttributeError (if the value attribute should not be assigned
    to, because the control is disabled, for example) and ValueError.

    If the name or value attributes are None, or the value is an empty list, or
    if the control is disabled, the control is not successful.

    Public attributes:

    type: string describing type of control (see the keys of the
     HTMLForm.type2class dictionary for the allowable values) (readonly)
    name: name of control (readonly)
    value: current value of control (subclasses may allow a single value, a
     sequence of values, or either)
    disabled: disabled state
    readonly: readonly state
    id: value of id HTML attribute

     __init__ N/A N/A self type name attrs index N/A None N/A N/A 
        type: string describing type of control (see the keys of the
         HTMLForm.type2class dictionary for the allowable values)
        name: control name
        attrs: HTML attributes of control's HTML element

         N/A N/A NotImplementedError N/A add_to_form N/A N/A self form N/A N/A N/A N/A self _form form N/A N/A N/A N/A form controls append self N/A fixup N/A N/A self N/A N/A N/A N/A is_of_kind N/A N/A self kind N/A N/A N/A N/A NotImplementedError N/A clear N/A N/A self N/A N/A N/A N/A NotImplementedError N/A __getattr__ N/A N/A self name N/A N/A N/A N/A NotImplementedError N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A NotImplementedError N/A pairs N/A N/A self N/A N/A N/A Return list of (key, value) pairs suitable for passing to urlencode.
         N/A N/A N/A k v N/A N/A i k v N/A N/A self _totally_ordered_pairs N/A _totally_ordered_pairs N/A N/A self N/A N/A N/A Return list of (key, value, index) tuples.

        Like pairs, but allows preserving correct ordering even where several
        controls are involved.

         N/A N/A NotImplementedError N/A _write_mime_data N/A N/A self mw name value N/A N/A N/A Write data for a subitem of this control to a MimeWriter. N/A mw2 N/A N/A mw nextpart N/A N/A N/A mw2 addheader Content-Disposition N/A form-data; name="%s" name 1 N/A f N/A N/A mw2 startbody prefix 0 N/A N/A N/A f write value N/A __str__ N/A N/A self N/A N/A N/A N/A NotImplementedError N/A get_labels N/A N/A self N/A N/A N/A Return all labels (Label instances) for this control.
        
        If the control was surrounded by a <label> tag, that will be the first
        label; all other labels, connected by 'for' and 'id', are in the order
        that appear in the HTML.

         N/A res N/A N/A N/A self _label N/A N/A N/A N/A res append N/A self _label N/A N/A self id N/A N/A N/A N/A res extend N/A N/A N/A N/A self _form _id_to_labels get N/A self id N/A N/A res N/A N/A ScalarControl N/A Control N/A N/A Control whose value is not restricted to one of a prescribed set.

    Some ScalarControls don't accept any value attribute.  Otherwise, takes a
    single value, which must be string-like.

    Additional read-only public attribute:

    attrs: dictionary mapping the names of original HTML attributes of the
     control to their values

     __init__ N/A N/A self type name attrs index N/A None N/A N/A N/A self _index index N/A N/A self _label N/A _get_label attrs N/A N/A N/A self __dict__ N/A type N/A N/A type lower N/A N/A N/A self __dict__ N/A name name N/A N/A self _value N/A N/A attrs get value N/A N/A self disabled N/A N/A attrs has_key disabled N/A N/A self readonly N/A N/A attrs has_key readonly N/A N/A self id N/A N/A attrs get id N/A N/A self attrs N/A N/A attrs copy N/A N/A self _clicked False N/A N/A self _urlparse N/A urlparse urlparse N/A N/A self _urlunparse N/A urlparse urlunparse N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name value N/A N/A N/A N/A self __dict__ N/A _value N/A N/A N/A AttributeError N/A %s instance has no attribute '%s' N/A N/A N/A self __class__ __name__ name N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A name value N/A N/A N/A N/A isstringlike value N/A N/A N/A TypeError must assign a string N/A N/A N/A self readonly N/A N/A N/A AttributeError N/A control '%s' is readonly N/A self name N/A N/A N/A self disabled N/A N/A N/A AttributeError N/A control '%s' is disabled N/A self name N/A N/A N/A self __dict__ N/A _value value N/A N/A N/A name N/A name type N/A N/A N/A AttributeError N/A %s attribute is readonly name N/A N/A N/A N/A self __dict__ N/A name value N/A _totally_ordered_pairs N/A N/A self N/A N/A N/A name N/A self name N/A value N/A self value N/A N/A N/A name None N/A value None N/A self disabled N/A N/A N/A N/A N/A N/A N/A self _index name value N/A clear N/A N/A self N/A N/A N/A N/A self readonly N/A N/A N/A AttributeError N/A control '%s' is readonly N/A self name N/A N/A N/A self __dict__ N/A _value None N/A __str__ N/A N/A self N/A N/A N/A name N/A self name N/A value N/A self value N/A N/A name None N/A N/A name <None> N/A N/A value None N/A N/A value <None> N/A infos N/A N/A N/A self disabled N/A N/A N/A N/A infos append disabled N/A N/A self readonly N/A N/A N/A N/A infos append readonly N/A info N/A N/A ,  join infos N/A info N/A N/A info N/A  (%s) info N/A N/A <%s(%s=%s)%s> N/A N/A N/A self __class__ __name__ name value info N/A N/A TextControl N/A ScalarControl N/A N/A Textual input control.

    Covers:

    INPUT/TEXT
    INPUT/PASSWORD
    INPUT/HIDDEN
    TEXTAREA

     __init__ N/A N/A self type name attrs index N/A None N/A N/A N/A N/A ScalarControl __init__ self type name attrs index N/A N/A N/A self type hidden N/A N/A N/A self readonly True N/A N/A N/A self _value None N/A N/A N/A self _value N/A is_of_kind N/A N/A self kind N/A N/A N/A N/A kind text N/A N/A FileControl N/A ScalarControl N/A N/A File upload with INPUT TYPE=FILE.

    The value attribute of a FileControl is always None.  Use add_file instead.

    Additional public method: add_file

     __init__ N/A N/A self type name attrs index N/A None N/A N/A N/A N/A ScalarControl __init__ self type name attrs index N/A N/A self _value None N/A N/A self _upload_data N/A N/A is_of_kind N/A N/A self kind N/A N/A N/A N/A kind file N/A clear N/A N/A self N/A N/A N/A N/A self readonly N/A N/A N/A AttributeError N/A control '%s' is readonly N/A self name N/A N/A self _upload_data N/A N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A name N/A value name type N/A N/A N/A AttributeError N/A %s attribute is readonly name N/A N/A N/A N/A self __dict__ N/A name value N/A add_file N/A N/A self file_object content_type filename N/A None None N/A N/A N/A N/A hasattr file_object read N/A N/A N/A TypeError file-like object must have read method N/A N/A N/A content_type None N/A N/A isstringlike content_type N/A N/A N/A TypeError content type must be None or string-like N/A N/A N/A filename None N/A N/A isstringlike filename N/A N/A N/A TypeError filename must be None or string-like N/A N/A content_type None N/A N/A content_type application/octet-stream N/A N/A N/A N/A self _upload_data append N/A file_object content_type filename N/A _totally_ordered_pairs N/A N/A self N/A N/A N/A N/A N/A N/A self name None N/A self disabled N/A N/A N/A N/A N/A N/A N/A self _index N/A self name N/A _write_mime_data N/A N/A self mw _name _value N/A N/A N/A N/A N/A len N/A self _upload_data 2 N/A N/A N/A N/A len N/A self _upload_data 0 N/A N/A file_object N/A StringIO N/A content_type application/octet-stream N/A filename N/A N/A N/A file_object content_type filename N/A N/A self _upload_data N/A 0 N/A N/A filename None N/A N/A filename N/A mw2 N/A N/A mw nextpart N/A fn_part N/A ; filename="%s" filename N/A disp N/A form-data; name="%s"%s N/A N/A self name fn_part N/A N/A N/A mw2 addheader Content-Disposition disp prefix 1 N/A fh N/A N/A mw2 startbody content_type prefix 0 N/A N/A N/A fh write N/A N/A file_object read N/A N/A mw2 N/A N/A mw nextpart N/A disp N/A form-data; name="%s" N/A self name N/A N/A N/A mw2 addheader Content-Disposition disp prefix 1 N/A fh N/A N/A mw2 startmultipartbody mixed prefix 0 N/A N/A file_object content_type filename N/A self _upload_data N/A N/A mw3 N/A N/A mw2 nextpart N/A N/A filename None N/A N/A filename N/A fn_part N/A ; filename="%s" filename N/A disp N/A file%s fn_part N/A N/A N/A mw3 addheader Content-Disposition disp prefix 1 N/A fh2 N/A N/A mw3 startbody content_type prefix 0 N/A N/A N/A fh2 write N/A N/A file_object read N/A N/A N/A mw2 lastpart N/A __str__ N/A N/A self N/A N/A N/A name N/A self name N/A N/A name None N/A N/A name <None> N/A N/A N/A self _upload_data N/A N/A value <No files added> N/A N/A value N/A N/A N/A file ctype filename N/A self _upload_data N/A N/A N/A filename None N/A N/A N/A N/A value append <Unnamed file> N/A N/A N/A N/A value append filename N/A value N/A N/A ,  join value N/A info N/A N/A N/A self disabled N/A N/A N/A N/A info append disabled N/A N/A self readonly N/A N/A N/A N/A info append readonly N/A info N/A N/A ,  join info N/A info N/A N/A info N/A  (%s) info N/A N/A <%s(%s=%s)%s> N/A N/A N/A self __class__ __name__ name value info N/A N/A IsindexControl N/A ScalarControl N/A N/A ISINDEX control.

    ISINDEX is the odd-one-out of HTML form controls.  In fact, it isn't really
    part of regular HTML forms at all, and predates it.  You're only allowed
    one ISINDEX per HTML document.  ISINDEX and regular form submission are
    mutually exclusive -- either submit a form, or the ISINDEX.

    Having said this, since ISINDEX controls may appear in forms (which is
    probably bad HTML), ParseFile / ParseResponse will include them in the
    HTMLForm instances it returns.  You can set the ISINDEX's value, as with
    any other control (but note that ISINDEX controls have no name, so you'll
    need to use the type argument of set_value!).  When you submit the form,
    the ISINDEX will not be successful (ie., no data will get returned to the
    server as a result of its presence), unless you click on the ISINDEX
    control, in which case the ISINDEX gets submitted instead of the form:

    form.set_value("my isindex value", type="isindex")
    urllib2.urlopen(form.click(type="isindex"))

    ISINDEX elements outside of FORMs are ignored.  If you want to submit one
    by hand, do it like so:

    url = urlparse.urljoin(page_uri, "?"+urllib.quote_plus("my isindex value"))
    result = urllib2.urlopen(url)

     __init__ N/A N/A self type name attrs index N/A None N/A N/A N/A N/A ScalarControl __init__ self type name attrs index N/A N/A N/A self _value None N/A N/A N/A self _value N/A is_of_kind N/A N/A self kind N/A N/A N/A N/A kind N/A text clickable N/A _totally_ordered_pairs N/A N/A self N/A N/A N/A N/A N/A _click N/A N/A self form coord return_type request_class N/A N/A urllib2 Request N/A N/A parts N/A N/A self _urlparse N/A form action N/A N/A rest N/A query frag N/A N/A parts N/A -2 N/A parts N/A -2 N/A parts N/A rest N/A N/A N/A urllib quote_plus N/A self value None N/A url N/A N/A self _urlunparse parts N/A req_data N/A url None N/A N/A N/A return_type pairs N/A N/A N/A N/A N/A N/A return_type request_data N/A N/A req_data N/A N/A N/A request_class url N/A __str__ N/A N/A self N/A N/A N/A value N/A self value N/A N/A value None N/A N/A value <None> N/A infos N/A N/A N/A self disabled N/A N/A N/A N/A infos append disabled N/A N/A self readonly N/A N/A N/A N/A infos append readonly N/A info N/A N/A ,  join infos N/A info N/A N/A info N/A  (%s) info N/A N/A <%s(%s)%s> N/A N/A N/A self __class__ __name__ value info N/A N/A IgnoreControl N/A ScalarControl N/A N/A Control that we're not interested in.

    Covers:

    INPUT/RESET
    BUTTON/RESET
    INPUT/BUTTON
    BUTTON/BUTTON

    These controls are always unsuccessful, in the terminology of HTML 4 (ie.
    they never require any information to be returned to the server).

    BUTTON/BUTTON is used to generate events for script embedded in HTML.

    The value attribute of IgnoreControl is always None.

     __init__ N/A N/A self type name attrs index N/A None N/A N/A N/A N/A ScalarControl __init__ self type name attrs index N/A N/A self _value None N/A is_of_kind N/A N/A self kind N/A N/A N/A False N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A name value N/A N/A N/A AttributeError N/A control '%s' is ignored, hence read-only N/A self name N/A N/A N/A name N/A name type N/A N/A N/A AttributeError N/A %s attribute is readonly name N/A N/A N/A N/A self __dict__ N/A name value N/A N/A Item N/A N/A __init__ N/A N/A self control attrs index N/A None N/A N/A label N/A _get_label attrs N/A N/A N/A N/A self __dict__ update N/A name _labels attrs _control disabled _selected id _index N/A attrs N/A value N/A N/A label N/A label N/A attrs control N/A N/A attrs has_key disabled False N/A N/A attrs get id index N/A N/A N/A N/A control items append self N/A get_labels N/A N/A self N/A N/A N/A Return all labels (Label instances) for this item.
        
        For items that represent radio buttons or checkboxes, if the item was
        surrounded by a <label> tag, that will be the first label; all other
        labels, connected by 'for' and 'id', are in the order that appear in
        the HTML.
        
        For items that represent select options, if the option had a label
        attribute, that will be the first label.  If the option has contents
        (text within the option tags) and it is not the same as the label
        attribute (if any), that will be a label.  There is nothing in the
        spec to my knowledge that makes an option with an id unable to be the
        target of a label's for attribute, so those are included, if any, for
        the sake of consistency and completeness.

         N/A res N/A N/A N/A N/A res extend N/A self _labels N/A N/A self id N/A N/A N/A N/A res extend N/A N/A N/A N/A N/A self _control _form _id_to_labels get N/A self id N/A N/A res N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name selected N/A N/A N/A self _selected N/A N/A AttributeError name N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A name selected N/A N/A N/A N/A N/A self _control _set_selected_state self value N/A N/A N/A name disabled N/A N/A N/A N/A self __dict__ N/A disabled N/A bool value N/A N/A N/A AttributeError name N/A __str__ N/A N/A self N/A N/A N/A res N/A self name N/A N/A self selected N/A N/A res N/A * res N/A N/A self disabled N/A N/A res N/A (%s) res N/A res N/A __repr__ N/A N/A self N/A N/A N/A attrs N/A N/A N/A name N/A self name N/A id N/A self id N/A N/A N/A self attrs items N/A N/A <%s %s> N/A N/A N/A self __class__ __name__ N/A N/A join N/A N/A %s=%r N/A k v N/A N/A k v attrs N/A N/A disambiguate N/A N/A items nr N/A kwds N/A N/A msgs N/A N/A N/A key value N/A N/A kwds items N/A N/A N/A N/A msgs append N/A %s=%r N/A key value N/A msg N/A N/A join msgs N/A N/A items N/A N/A N/A ItemNotFoundError msg N/A N/A nr None N/A N/A N/A N/A len items 1 N/A N/A N/A AmbiguityError msg N/A nr 0 N/A N/A N/A len items nr N/A N/A N/A ItemNotFoundError msg N/A N/A items N/A nr N/A ListControl N/A Control N/A N/A Control representing a sequence of items.

    The value attribute of a ListControl represents the successful list items
    in the control.  The successful list items are those that are selected and
    not disabled.

    ListControl implements both list controls that take a length-1 value
    (single-selection) and those that take length >1 values
    (multiple-selection).

    ListControls accept sequence values only.  Some controls only accept
    sequences of length 0 or 1 (RADIO, and single-selection SELECT).
    In those cases, ItemCountError is raised if len(sequence) > 1.  CHECKBOXes
    and multiple-selection SELECTs (those having the "multiple" HTML attribute)
    accept sequences of any length.

    Note the following mistake:

    control.value = some_value
    assert control.value == some_value    # not necessarily true

    The reason for this is that the value attribute always gives the list items
    in the order they were listed in the HTML.

    ListControl items can also be referred to by their labels instead of names.
    Use the label argument to .get(), and the .set_value_by_label(),
    .get_value_by_label() methods.

    Note that, rather confusingly, though SELECT controls are represented in
    HTML by SELECT elements (which contain OPTION elements, representing
    individual list items), CHECKBOXes and RADIOs are not represented by *any*
    element.  Instead, those controls are represented by a collection of INPUT
    elements.  For example, this is a SELECT control, named "control1":

    <select name="control1">
     <option>foo</option>
     <option value="1">bar</option>
    </select>

    and this is a CHECKBOX control, named "control2":

    <input type="checkbox" name="control2" value="foo" id="cbe1">
    <input type="checkbox" name="control2" value="bar" id="cbe2">

    The id attribute of a CHECKBOX or RADIO ListControl is always that of its
    first element (for example, "cbe1" above).


    Additional read-only public attribute: multiple.

     N/A _label None __init__ N/A N/A self type name attrs select_default called_as_base_class index N/A N/A False False None N/A N/A 
        select_default: for RADIO and multiple-selection SELECT controls, pick
         the first item as the default if no 'selected' HTML attribute is
         present

         N/A N/A called_as_base_class N/A N/A N/A NotImplementedError N/A N/A N/A self __dict__ N/A type N/A N/A type lower N/A N/A N/A self __dict__ N/A name name N/A N/A self _value N/A N/A attrs get value N/A N/A self disabled False N/A N/A self readonly False N/A N/A self id N/A N/A attrs get id N/A N/A self _closed False N/A N/A self items N/A N/A N/A self _form None N/A N/A self _select_default select_default N/A N/A self _clicked False N/A clear N/A N/A self N/A N/A N/A N/A self value N/A N/A is_of_kind N/A N/A self kind N/A N/A N/A N/A kind list N/A N/A True N/A N/A N/A kind multilist N/A N/A N/A bool N/A self multiple N/A N/A N/A kind singlelist N/A N/A N/A N/A self multiple N/A N/A False N/A get_items N/A N/A self name label id exclude_disabled N/A None None None False N/A N/A Return matching items by name or label.

        For argument docs, see the docstring for .get()

         N/A N/A N/A name None N/A N/A isstringlike name N/A N/A N/A TypeError item name must be string-like N/A N/A N/A label None N/A N/A isstringlike label N/A N/A N/A TypeError item label must be string-like N/A N/A N/A id None N/A N/A isstringlike id N/A N/A N/A TypeError item id must be string-like N/A items N/A N/A compat N/A N/A self _form backwards_compat N/A o N/A self items N/A N/A N/A exclude_disabled N/A o disabled N/A N/A N/A N/A N/A name None N/A N/A o name name N/A N/A N/A N/A label None N/A N/A l N/A N/A o get_labels N/A N/A N/A N/A compat N/A N/A l text label N/A N/A compat N/A N/A N/A N/A l text find label -1 N/A N/A N/A N/A N/A N/A N/A id None N/A N/A o id id N/A N/A N/A N/A N/A items append o N/A items N/A get N/A N/A self name label id nr exclude_disabled N/A None None None None False N/A N/A Return item by name or label, disambiguating if necessary with nr.

        All arguments must be passed by name, with the exception of 'name',
        which may be used as a positional argument.

        If name is specified, then the item must have the indicated name.

        If label is specified, then the item must have a label whose
        whitespace-compressed, stripped, text substring-matches the indicated
        label string (eg. label="please choose" will match
        "  Do  please  choose an item ").

        If id is specified, then the item must have the indicated id.

        nr is an optional 0-based index of the items matching the query.

        If nr is the default None value and more than item is found, raises
        AmbiguityError (unless the HTMLForm instance's backwards_compat
        attribute is true).

        If no item is found, or if items are found but nr is specified and not
        found, raises ItemNotFoundError.

        Optionally excludes disabled items.

         N/A N/A N/A nr None N/A N/A self _form backwards_compat N/A N/A nr 0 N/A items N/A N/A self get_items name label id exclude_disabled N/A N/A disambiguate items nr name name label label id id N/A _get N/A N/A self name by_label nr exclude_disabled N/A False None False N/A N/A by_label N/A N/A N/A name label N/A None name N/A N/A N/A name label N/A name None N/A N/A N/A self get name label nr exclude_disabled N/A toggle N/A N/A self name by_label nr N/A False None N/A N/A Deprecated: given a name or label and optional disambiguating index
        nr, toggle the matching item's selection.

        Selecting items follows the behavior described in the docstring of the
        'get' method.

        if the item is disabled, or this control is disabled or readonly,
        raise AttributeError.

         N/A N/A deprecation item = control.get(...); item.selected = not item.selected N/A o N/A N/A self _get name by_label nr N/A N/A N/A self _set_selected_state o N/A N/A o selected N/A set N/A N/A self selected name by_label nr N/A False None N/A N/A Deprecated: given a name or label and optional disambiguating index
        nr, set the matching item's selection to the bool value of selected.

        Selecting items follows the behavior described in the docstring of the
        'get' method.

        if the item is disabled, or this control is disabled or readonly,
        raise AttributeError.

         N/A N/A deprecation control.get(...).selected = <boolean> N/A N/A N/A self _set_selected_state N/A N/A self _get name by_label nr selected N/A _set_selected_state N/A N/A self item action N/A N/A N/A N/A self disabled N/A N/A N/A AttributeError N/A control '%s' is disabled N/A self name N/A N/A self readonly N/A N/A N/A AttributeError N/A control '%s' is readonly N/A self name N/A N/A action N/A bool action N/A compat N/A N/A self _form backwards_compat N/A N/A N/A compat N/A item disabled N/A N/A N/A AttributeError item is disabled N/A N/A N/A compat N/A item disabled action N/A N/A N/A AttributeError item is disabled N/A N/A self multiple N/A N/A N/A N/A item __dict__ N/A _selected action N/A N/A N/A action N/A N/A N/A N/A item __dict__ N/A _selected False N/A N/A o N/A self items N/A N/A N/A N/A o __dict__ N/A _selected False N/A N/A N/A item __dict__ N/A _selected True N/A toggle_single N/A N/A self by_label N/A None N/A N/A Deprecated: toggle the selection of the single item in this control.
        
        Raises ItemCountError if the control does not contain only one item.
        
        by_label argument is ignored, and included only for backwards
        compatibility.

         N/A N/A deprecation control.items[0].selected = not control.items[0].selected N/A N/A N/A len N/A self items 1 N/A N/A N/A ItemCountError N/A '%s' is not a single-item control N/A self name N/A item N/A N/A self items N/A 0 N/A N/A N/A self _set_selected_state item N/A N/A item selected N/A set_single N/A N/A self selected by_label N/A None N/A N/A Deprecated: set the selection of the single item in this control.
        
        Raises ItemCountError if the control does not contain only one item.
        
        by_label argument is ignored, and included only for backwards
        compatibility.

         N/A N/A deprecation control.items[0].selected = <boolean> N/A N/A N/A len N/A self items 1 N/A N/A N/A ItemCountError N/A '%s' is not a single-item control N/A self name N/A N/A N/A self _set_selected_state N/A N/A self items N/A 0 selected N/A get_item_disabled N/A N/A self name by_label nr N/A False None N/A N/A Get disabled state of named list item in a ListControl. N/A N/A deprecation control.get(...).disabled N/A N/A N/A N/A self _get name by_label nr disabled N/A set_item_disabled N/A N/A self disabled name by_label nr N/A False None N/A N/A Set disabled state of named list item in a ListControl.

        disabled: boolean disabled state

         N/A N/A deprecation control.get(...).disabled = <boolean> N/A N/A N/A N/A self _get name by_label nr disabled disabled N/A set_all_items_disabled N/A N/A self disabled N/A N/A N/A Set disabled state of all list items in a ListControl.

        disabled: boolean disabled state

         N/A o N/A self items N/A N/A N/A o disabled disabled N/A get_item_attrs N/A N/A self name by_label nr N/A False None N/A N/A Return dictionary of HTML attributes for a single ListControl item.

        The HTML element types that describe list items are: OPTION for SELECT
        controls, INPUT for the rest.  These elements have HTML attributes that
        you may occasionally want to know about -- for example, the "alt" HTML
        attribute gives a text string describing the item (graphical browsers
        usually display this as a tooltip).

        The returned dictionary maps HTML attribute names to values.  The names
        and values are taken from the original HTML.

         N/A N/A deprecation control.get(...).attrs N/A N/A N/A N/A self _get name by_label nr attrs N/A close_control N/A N/A self N/A N/A N/A N/A self _closed True N/A add_to_form N/A N/A self form N/A N/A N/A N/A N/A N/A self _form None N/A form N/A self _form can't add control to more than one form N/A N/A self _form form N/A N/A N/A self name None N/A N/A N/A N/A Control add_to_form self form N/A N/A ii N/A range N/A N/A len N/A form controls 1 -1 -1 N/A N/A control N/A N/A form controls N/A ii N/A N/A N/A N/A control name N/A self name N/A N/A control type N/A self type N/A N/A N/A control _closed N/A N/A N/A N/A Control add_to_form self form N/A N/A N/A N/A control merge_control self N/A N/A N/A N/A N/A Control add_to_form self form N/A merge_control N/A N/A self control N/A N/A N/A N/A N/A bool N/A control multiple N/A bool N/A self multiple N/A N/A N/A N/A self items extend N/A control items N/A fixup N/A N/A self N/A N/A N/A 
        ListControls are built up from component list items (which are also
        ListControls) during parsing.  This method should be called after all
        items have been added.  See ListControl.__doc__ for the reason this is
        required.

         N/A o N/A self items N/A N/A N/A N/A o __dict__ N/A _control self N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name value N/A N/A compat N/A N/A self _form backwards_compat N/A N/A N/A self name None N/A N/A N/A N/A N/A N/A o name N/A o N/A self items N/A N/A o selected N/A N/A N/A o disabled compat N/A N/A N/A AttributeError N/A %s instance has no attribute '%s' N/A N/A N/A self __class__ __name__ name N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A name value N/A N/A N/A self disabled N/A N/A N/A AttributeError N/A control '%s' is disabled N/A self name N/A N/A self readonly N/A N/A N/A AttributeError N/A control '%s' is readonly N/A self name N/A N/A N/A self _set_value value N/A N/A N/A name N/A name type multiple N/A N/A N/A AttributeError N/A %s attribute is readonly name N/A N/A N/A N/A self __dict__ N/A name value N/A _set_value N/A N/A self value N/A N/A N/A N/A N/A value None N/A isstringlike value N/A N/A N/A TypeError ListControl, must set a sequence N/A N/A value N/A N/A compat N/A N/A self _form backwards_compat N/A o N/A self items N/A N/A N/A N/A N/A o disabled compat N/A N/A N/A o selected False N/A N/A N/A self multiple N/A N/A N/A N/A self _multiple_set_value value N/A N/A N/A N/A len value 1 N/A N/A N/A ItemCountError single selection list, must set sequence of length 0 or 1 N/A N/A N/A N/A self _single_set_value value N/A _get_items N/A N/A self name target N/A 1 N/A N/A all_items N/A N/A self get_items name N/A items N/A o N/A o all_items N/A N/A o disabled N/A N/A N/A len items target N/A N/A N/A N/A len all_items target N/A N/A N/A ItemNotFoundError N/A insufficient items with name %r name N/A N/A N/A AttributeError N/A insufficient non-disabled items with name %s name N/A on N/A N/A off N/A N/A o items N/A N/A N/A o selected N/A N/A N/A N/A on append o N/A N/A N/A N/A off append o N/A N/A on off N/A _single_set_value N/A N/A self value N/A N/A N/A N/A N/A len value 1 N/A N/A on off N/A N/A self _get_items N/A value N/A 0 N/A N/A N/A len on 1 N/A N/A on N/A N/A N/A N/A off N/A 0 selected True N/A _multiple_set_value N/A N/A self value N/A N/A N/A compat N/A N/A self _form backwards_compat N/A turn_on N/A N/A turn_off N/A item N/A item N/A self items N/A N/A item selected N/A N/A N/A item disabled compat N/A names N/A N/A nn value N/A N/A N/A nn N/A N/A names keys N/A N/A N/A names N/A nn 1 N/A N/A N/A names N/A nn 1 N/A N/A name count N/A N/A names items N/A N/A N/A on off N/A N/A self _get_items name count N/A i N/A range count N/A N/A on N/A N/A item N/A on N/A 0 N/A N/A on N/A 0 N/A N/A turn_off N/A N/A N/A turn_off index item N/A N/A item N/A off N/A 0 N/A N/A off N/A 0 N/A N/A N/A turn_on append item N/A item turn_off N/A N/A N/A item selected False N/A item turn_on N/A N/A N/A item selected True N/A set_value_by_label N/A N/A self value N/A N/A N/A Set the value of control by item labels.

        value is expected to be an iterable of strings that are substrings of
        the item labels that should be selected.  Before substring matching is
        performed, the original label text is whitespace-compressed
        (consecutive whitespace characters are converted to a single space
        character) and leading and trailing whitespace is stripped.  Ambiguous
        labels are accepted without complaint if the form's backwards_compat is
        True; otherwise, it will not complain as long as all ambiguous labels
        share the same item name (e.g. OPTION value).

         N/A N/A isstringlike value N/A N/A N/A TypeError value N/A N/A N/A N/A self multiple N/A N/A len value 1 N/A N/A N/A ItemCountError single selection list, must set sequence of length 0 or 1 N/A items N/A N/A nn value N/A N/A found N/A N/A self get_items label nn N/A N/A N/A len found 1 N/A N/A N/A N/A N/A self _form backwards_compat N/A N/A opt_name N/A N/A found N/A 0 name N/A N/A o N/A o N/A found N/A 1 N/A N/A o name opt_name N/A N/A N/A AmbiguityError nn N/A N/A found N/A found N/A 1 N/A o found N/A N/A N/A N/A N/A self _form backwards_compat N/A o items N/A N/A N/A N/A items append o N/A N/A N/A N/A ItemNotFoundError nn N/A N/A self value N/A N/A o items N/A N/A N/A o selected True N/A get_value_by_label N/A N/A self N/A N/A N/A Return the value of the control as given by normalized labels. N/A res N/A N/A compat N/A N/A self _form backwards_compat N/A o N/A self items N/A N/A N/A N/A N/A N/A o disabled compat N/A o selected N/A N/A l N/A N/A o get_labels N/A N/A N/A l text N/A N/A N/A N/A res append N/A l text N/A N/A N/A N/A N/A res append None N/A res N/A possible_items N/A N/A self by_label N/A False N/A N/A Deprecated: return the names or labels of all possible items.

        Includes disabled items, which may be misleading for some use cases.

         N/A N/A deprecation [item.name for item in self.items] N/A by_label N/A N/A res N/A N/A o N/A self items N/A N/A l N/A N/A o get_labels N/A N/A N/A l text N/A N/A N/A N/A res append N/A l text N/A N/A N/A N/A N/A res append None N/A res N/A N/A N/A o name N/A o N/A self items N/A _totally_ordered_pairs N/A N/A self N/A N/A N/A N/A N/A self disabled N/A N/A self name None N/A N/A N/A N/A N/A N/A N/A N/A o _index N/A self name N/A o name N/A o N/A self items N/A N/A o selected N/A N/A o disabled N/A __str__ N/A N/A self N/A N/A N/A name N/A self name N/A N/A name None N/A N/A name <None> N/A display N/A N/A str o N/A o N/A self items N/A infos N/A N/A N/A self disabled N/A N/A N/A N/A infos append disabled N/A N/A self readonly N/A N/A N/A N/A infos append readonly N/A info N/A N/A ,  join infos N/A info N/A N/A info N/A  (%s) info N/A N/A <%s(%s=[%s])%s> N/A N/A N/A self __class__ __name__ name N/A N/A ,  join display info N/A N/A RadioControl N/A ListControl N/A N/A 
    Covers:

    INPUT/RADIO

     __init__ N/A N/A self type name attrs select_default index N/A False None N/A N/A N/A N/A attrs setdefault value on N/A N/A N/A ListControl __init__ self type name attrs select_default called_as_base_class True index index N/A N/A N/A self __dict__ N/A multiple False N/A o N/A Item self attrs index N/A N/A N/A o __dict__ N/A _selected N/A N/A attrs has_key checked N/A fixup N/A N/A self N/A N/A N/A N/A N/A ListControl fixup self N/A found N/A o N/A o N/A self items N/A N/A o selected N/A N/A o disabled N/A N/A found N/A N/A N/A self _select_default N/A N/A o N/A self items N/A N/A N/A N/A o disabled N/A N/A N/A o selected True N/A N/A N/A o N/A found N/A -1 N/A N/A N/A o selected False N/A get_labels N/A N/A self N/A N/A N/A N/A N/A N/A CheckboxControl N/A ListControl N/A N/A 
    Covers:

    INPUT/CHECKBOX

     __init__ N/A N/A self type name attrs select_default index N/A False None N/A N/A N/A N/A attrs setdefault value on N/A N/A N/A ListControl __init__ self type name attrs select_default called_as_base_class True index index N/A N/A N/A self __dict__ N/A multiple True N/A o N/A Item self attrs index N/A N/A N/A o __dict__ N/A _selected N/A N/A attrs has_key checked N/A get_labels N/A N/A self N/A N/A N/A N/A N/A N/A SelectControl N/A ListControl N/A N/A 
    Covers:

    SELECT (and OPTION)


    OPTION 'values', in HTML parlance, are Item 'names' in ClientForm parlance.

    SELECT control values and labels are subject to some messy defaulting
    rules.  For example, if the HTML representation of the control is:

    <SELECT name=year>
      <OPTION value=0 label="2002">current year</OPTION>
      <OPTION value=1>2001</OPTION>
      <OPTION>2000</OPTION>
    </SELECT>

    The items, in order, have labels "2002", "2001" and "2000", whereas their
    names (the OPTION values) are "0", "1" and "2000" respectively.  Note that
    the value of the last OPTION in this example defaults to its contents, as
    specified by RFC 1866, as do the labels of the second and third OPTIONs.

    The OPTION labels are sometimes more meaningful than the OPTION values,
    which can make for more maintainable code.

    Additional read-only public attribute: attrs

    The attrs attribute is a dictionary of the original HTML attributes of the
    SELECT element.  Other ListControls do not have this attribute, because in
    other cases the control as a whole does not correspond to any single HTML
    element.  control.get(...).attrs may be used as usual to get at the HTML
    attributes of the HTML elements corresponding to individual list items (for
    SELECT controls, these are OPTION elements).

    Another special case is that the Item.attrs dictionaries have a special key
    "contents" which does not correspond to any real HTML attribute, but rather
    contains the contents of the OPTION element:

    <OPTION>this bit</OPTION>

     __init__ N/A N/A self type name attrs select_default index N/A False None N/A N/A N/A self attrs N/A N/A N/A attrs N/A __select copy N/A N/A N/A self __dict__ N/A _label N/A _get_label N/A self attrs N/A N/A N/A self __dict__ N/A id N/A N/A N/A self attrs get id N/A N/A N/A self __dict__ N/A multiple N/A N/A N/A self attrs has_key multiple N/A contents N/A N/A attrs get contents N/A attrs N/A N/A attrs copy N/A N/A attrs N/A __select N/A N/A N/A ListControl __init__ self type name N/A self attrs select_default called_as_base_class True index index N/A N/A self disabled N/A N/A N/A self attrs has_key disabled N/A N/A self readonly N/A N/A N/A self attrs has_key readonly N/A N/A N/A attrs has_key value N/A N/A o N/A Item self attrs index N/A N/A N/A o __dict__ N/A _selected N/A N/A attrs has_key selected N/A label N/A N/A attrs get label N/A label N/A N/A N/A N/A N/A o _labels append N/A Label N/A __text label N/A N/A contents N/A contents label N/A N/A N/A N/A N/A o _labels append N/A Label N/A __text contents N/A N/A contents N/A N/A N/A N/A N/A o _labels append N/A Label N/A __text contents N/A fixup N/A N/A self N/A N/A N/A N/A N/A ListControl fixup self N/A found N/A o N/A o N/A self items N/A o selected N/A N/A found N/A N/A N/A N/A N/A self multiple N/A self _select_default N/A N/A o N/A self items N/A N/A N/A N/A o disabled N/A N/A was_disabled N/A self disabled N/A N/A self disabled False N/A N/A N/A N/A o selected True N/A N/A N/A o disabled was_disabled N/A N/A N/A N/A N/A self multiple N/A N/A o N/A found N/A -1 N/A N/A N/A o selected False N/A N/A SubmitControl N/A ScalarControl N/A N/A 
    Covers:

    INPUT/SUBMIT
    BUTTON/SUBMIT

     __init__ N/A N/A self type name attrs index N/A None N/A N/A N/A N/A ScalarControl __init__ self type name attrs index N/A N/A N/A self value None N/A N/A N/A self value N/A N/A self readonly True N/A get_labels N/A N/A self N/A N/A N/A res N/A N/A N/A self value N/A N/A N/A N/A res append N/A Label N/A __text N/A self value N/A N/A N/A res extend N/A N/A ScalarControl get_labels self N/A res N/A is_of_kind N/A N/A self kind N/A N/A N/A N/A kind clickable N/A _click N/A N/A self form coord return_type request_class N/A N/A urllib2 Request N/A N/A N/A self _clicked coord N/A r N/A N/A form _switch_click return_type request_class N/A N/A self _clicked False N/A r N/A _totally_ordered_pairs N/A N/A self N/A N/A N/A N/A N/A self _clicked N/A N/A N/A N/A N/A N/A ScalarControl _totally_ordered_pairs self N/A N/A ImageControl N/A SubmitControl N/A N/A 
    Covers:

    INPUT/IMAGE

    Coordinates are specified using one of the HTMLForm.click* methods.

     __init__ N/A N/A self type name attrs index N/A None N/A N/A N/A N/A SubmitControl __init__ self type name attrs index N/A N/A self readonly False N/A _totally_ordered_pairs N/A N/A self N/A N/A N/A clicked N/A self _clicked N/A N/A N/A self disabled N/A clicked N/A N/A N/A N/A name N/A self name N/A N/A name None N/A N/A N/A N/A pairs N/A N/A N/A self _index N/A %s.x name N/A str N/A clicked N/A 0 N/A N/A N/A self _index 1 N/A %s.y name N/A str N/A clicked N/A 1 N/A value N/A self _value N/A value N/A N/A N/A N/A pairs append N/A N/A N/A self _index 2 name value N/A pairs N/A N/A get_labels N/A ScalarControl get_labels N/A PasswordControl N/A TextControl N/A N/A N/A HiddenControl N/A TextControl N/A N/A N/A TextareaControl N/A TextControl N/A N/A N/A SubmitButtonControl N/A SubmitControl N/A N/A N/A is_listcontrol N/A N/A control N/A N/A N/A N/A N/A control is_of_kind list N/A HTMLForm N/A N/A N/A Represents a single HTML <form> ... </form> element.

    A form consists of a sequence of controls that usually have names, and
    which can take on various values.  The values of the various types of
    controls represent variously: text, zero-or-one-of-many or many-of-many
    choices, and files to be uploaded.  Some controls can be clicked on to
    submit the form, and clickable controls' values sometimes include the
    coordinates of the click.

    Forms can be filled in with data to be returned to the server, and then
    submitted, using the click method to generate a request object suitable for
    passing to urllib2.urlopen (or the click_request_data or click_pairs
    methods if you're not using urllib2).

    import ClientForm
    forms = ClientForm.ParseFile(html, base_uri)
    form = forms[0]

    form["query"] = "Python"
    form.find_control("nr_results").get("lots").selected = True

    response = urllib2.urlopen(form.click())

    Usually, HTMLForm instances are not created directly.  Instead, the
    ParseFile or ParseResponse factory functions are used.  If you do construct
    HTMLForm objects yourself, however, note that an HTMLForm instance is only
    properly initialised after the fixup method has been called (ParseFile and
    ParseResponse do this for you).  See ListControl.__doc__ for the reason
    this is required.

    Indexing a form (form["control_name"]) returns the named Control's value
    attribute.  Assignment to a form index (form["control_name"] = something)
    is equivalent to assignment to the named Control's value attribute.  If you
    need to be more specific than just supplying the control's name, use the
    set_value and get_value methods.

    ListControl values are lists of item names (specifically, the names of the
    items that are selected and not disabled, and hence are "successful" -- ie.
    cause data to be returned to the server).  The list item's name is the
    value of the corresponding HTML element's"value" attribute.

    Example:

      <INPUT type="CHECKBOX" name="cheeses" value="leicester"></INPUT>
      <INPUT type="CHECKBOX" name="cheeses" value="cheddar"></INPUT>

    defines a CHECKBOX control with name "cheeses" which has two items, named
    "leicester" and "cheddar".

    Another example:

      <SELECT name="more_cheeses">
        <OPTION>1</OPTION>
        <OPTION value="2" label="CHEDDAR">cheddar</OPTION>
      </SELECT>

    defines a SELECT control with name "more_cheeses" which has two items,
    named "1" and "2" (because the OPTION element's value HTML attribute
    defaults to the element contents -- see SelectControl.__doc__ for more on
    these defaulting rules).

    To select, deselect or otherwise manipulate individual list items, use the
    HTMLForm.find_control() and ListControl.get() methods.  To set the whole
    value, do as for any other control: use indexing or the set_/get_value
    methods.

    Example:

    # select *only* the item named "cheddar"
    form["cheeses"] = ["cheddar"]
    # select "cheddar", leave other items unaffected
    form.find_control("cheeses").get("cheddar").selected = True

    Some controls (RADIO and SELECT without the multiple attribute) can only
    have zero or one items selected at a time.  Some controls (CHECKBOX and
    SELECT with the multiple attribute) can have multiple items selected at a
    time.  To set the whole value of a ListControl, assign a sequence to a form
    index:

    form["cheeses"] = ["cheddar", "leicester"]

    If the ListControl is not multiple-selection, the assigned list must be of
    length one.

    To check if a control has an item, if an item is selected, or if an item is
    successful (selected and not disabled), respectively:

    "cheddar" in [item.name for item in form.find_control("cheeses").items]
    "cheddar" in [item.name for item in form.find_control("cheeses").items and
                  item.selected]
    "cheddar" in form["cheeses"]  # (or "cheddar" in form.get_value("cheeses"))

    Note that some list items may be disabled (see below).

    Note the following mistake:

    form[control_name] = control_value
    assert form[control_name] == control_value  # not necessarily true

    The reason for this is that form[control_name] always gives the list items
    in the order they were listed in the HTML.

    List items (hence list values, too) can be referred to in terms of list
    item labels rather than list item names using the appropriate label
    arguments.  Note that each item may have several labels.

    The question of default values of OPTION contents, labels and values is
    somewhat complicated: see SelectControl.__doc__ and
    ListControl.get_item_attrs.__doc__ if you think you need to know.

    Controls can be disabled or readonly.  In either case, the control's value
    cannot be changed until you clear those flags (see example below).
    Disabled is the state typically represented by browsers by 'greying out' a
    control.  Disabled controls are not 'successful' -- they don't cause data
    to get returned to the server.  Readonly controls usually appear in
    browsers as read-only text boxes.  Readonly controls are successful.  List
    items can also be disabled.  Attempts to select or deselect disabled items
    fail with AttributeError.

    If a lot of controls are readonly, it can be useful to do this:

    form.set_all_readonly(False)

    To clear a control's value attribute, so that it is not successful (until a
    value is subsequently set):

    form.clear("cheeses")

    More examples:

    control = form.find_control("cheeses")
    control.disabled = False
    control.readonly = False
    control.get("gruyere").disabled = True
    control.items[0].selected = True

    See the various Control classes for further documentation.  Many methods
    take name, type, kind, id, label and nr arguments to specify the control to
    be operated on: see HTMLForm.find_control.__doc__.

    ControlNotFoundError (subclass of ValueError) is raised if the specified
    control can't be found.  This includes occasions where a non-ListControl
    is found, but the method (set, for example) requires a ListControl.
    ItemNotFoundError (subclass of ValueError) is raised if a list item can't
    be found.  ItemCountError (subclass of ValueError) is raised if an attempt
    is made to select more than one item and the control doesn't allow that, or
    set/get_single are called and the control contains more than one item.
    AttributeError is raised if a control or item is readonly or disabled and
    an attempt is made to alter its value.

    Security note: Remember that any passwords you store in HTMLForm instances
    will be saved to disk in the clear if you pickle them (directly or
    indirectly).  The simplest solution to this is to avoid pickling HTMLForm
    objects.  You could also pickle before filling in any password, or just set
    the password to "" before pickling.


    Public attributes:

    action: full (absolute URI) form action
    method: "GET" or "POST"
    enctype: form transfer encoding MIME type
    name: name of form (None if no name was specified)
    attrs: dictionary mapping original HTML form attributes to their values

    controls: list of Control instances; do not alter this list
     (instead, call form.new_control to make a Control and add it to the
     form, or control.add_to_form if you already have a Control instance)



    Methods for form filling:
    -------------------------

    Most of the these methods have very similar arguments.  See
    HTMLForm.find_control.__doc__ for details of the name, type, kind, label
    and nr arguments.

    def find_control(self,
                     name=None, type=None, kind=None, id=None, predicate=None,
                     nr=None, label=None)

    get_value(name=None, type=None, kind=None, id=None, nr=None,
              by_label=False,  # by_label is deprecated
              label=None)
    set_value(value,
              name=None, type=None, kind=None, id=None, nr=None,
              by_label=False,  # by_label is deprecated
              label=None)

    clear_all()
    clear(name=None, type=None, kind=None, id=None, nr=None, label=None)

    set_all_readonly(readonly)


    Method applying only to FileControls:

    add_file(file_object,
             content_type="application/octet-stream", filename=None,
             name=None, id=None, nr=None, label=None)


    Methods applying only to clickable controls:

    click(name=None, type=None, id=None, nr=0, coord=(1,1), label=None)
    click_request_data(name=None, type=None, id=None, nr=0, coord=(1,1),
                       label=None)
    click_pairs(name=None, type=None, id=None, nr=0, coord=(1,1), label=None)

     N/A type2class N/A text password hidden textarea isindex file button buttonbutton reset resetbutton submit submitbutton image radio checkbox select TextControl PasswordControl HiddenControl TextareaControl IsindexControl FileControl IgnoreControl IgnoreControl IgnoreControl IgnoreControl SubmitControl SubmitButtonControl ImageControl RadioControl CheckboxControl SelectControl __init__ N/A N/A self action method enctype name attrs request_class forms labels id_to_labels backwards_compat N/A GET application/x-www-form-urlencoded None None N/A urllib2 Request None None None True N/A N/A 
        In the usual case, use ParseResponse (or ParseFile) to create new
        HTMLForm objects.

        action: full (absolute URI) form action
        method: "GET" or "POST"
        enctype: form transfer encoding MIME type
        name: name of form
        attrs: dictionary mapping original HTML form attributes to their values

         N/A N/A self action action N/A N/A self method method N/A N/A self enctype enctype N/A N/A self name name N/A N/A attrs None N/A N/A N/A self attrs N/A N/A attrs copy N/A N/A N/A self attrs N/A N/A N/A self controls N/A N/A N/A self _request_class request_class N/A N/A self _forms forms N/A N/A self _labels labels N/A N/A self _id_to_labels id_to_labels N/A N/A self backwards_compat backwards_compat N/A N/A self _urlunparse N/A urlparse urlunparse N/A N/A self _urlparse N/A urlparse urlparse N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name backwards_compat N/A N/A N/A self _backwards_compat N/A N/A getattr HTMLForm name N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A name backwards_compat N/A N/A name _backwards_compat N/A value N/A bool value N/A cc N/A self controls N/A N/A N/A N/A items N/A cc items N/A N/A N/A AttributeError N/A N/A N/A N/A ii items N/A N/A ll N/A N/A ii get_labels N/A N/A N/A ll _backwards_compat value N/A N/A N/A self __dict__ N/A name value N/A new_control N/A N/A self type name attrs ignore_unknown select_default index N/A False False None N/A N/A Adds a new control to the form.

        This is usually called by ParseFile and ParseResponse.  Don't call it
        youself unless you're building your own Control instances.

        Note that controls representing lists of items are built up from
        controls holding only a single list item.  See ListControl.__doc__ for
        further information.

        type: type of control (see Control.__doc__ for a list)
        attrs: HTML attributes of control
        ignore_unknown: if true, use a dummy Control instance for controls of
         unknown type; otherwise, use a TextControl
        select_default: for RADIO and multiple-selection SELECT controls, pick
         the first item as the default if no 'selected' HTML attribute is
         present (this defaulting happens when the HTMLForm.fixup method is
         called)
        index: index of corresponding element in HTML (see
         MoreFormTests.test_interspersed_controls for motivation)

         N/A type N/A N/A type lower N/A klass N/A N/A N/A self type2class get type N/A N/A klass None N/A N/A ignore_unknown N/A N/A klass IgnoreControl N/A N/A klass TextControl N/A a N/A N/A attrs copy N/A N/A issubclass klass ListControl N/A N/A control N/A klass type name a select_default index N/A N/A control N/A klass type name a index N/A N/A N/A type select N/A N/A len attrs 1 N/A N/A ii N/A range N/A N/A len N/A self controls 1 -1 -1 N/A N/A ctl N/A N/A self controls N/A ii N/A N/A N/A ctl type select N/A N/A N/A N/A ctl close_control N/A N/A N/A N/A control add_to_form self N/A N/A control _urlparse N/A self _urlparse N/A N/A control _urlunparse N/A self _urlunparse N/A fixup N/A N/A self N/A N/A N/A Normalise form after all controls have been added.

        This is usually called by ParseFile and ParseResponse.  Don't call it
        youself unless you're building your own Control instances.

        This method should only be called once, after all controls have been
        added to the form.

         N/A control N/A self controls N/A N/A N/A N/A control fixup N/A N/A self backwards_compat N/A self _backwards_compat N/A __str__ N/A N/A self N/A N/A N/A header N/A %s%s %s %s N/A N/A N/A N/A self name N/A N/A self name N/A self method N/A self action N/A self enctype N/A rep N/A header N/A control N/A self controls N/A N/A N/A N/A rep append N/A   %s N/A str control N/A N/A <%s> N/A N/A join rep N/A __getitem__ N/A N/A self name N/A N/A N/A N/A N/A N/A self find_control name value N/A __contains__ N/A N/A self name N/A N/A N/A N/A bool N/A N/A self find_control name N/A __setitem__ N/A N/A self name value N/A N/A N/A control N/A N/A self find_control name N/A N/A N/A N/A control value value N/A N/A N/A AttributeError N/A e N/A N/A N/A ValueError N/A str e N/A get_value N/A N/A self name type kind id nr by_label label N/A None None None None None False None N/A N/A Return value of control.

        If only name and value arguments are supplied, equivalent to

        form[name]

         N/A by_label N/A N/A N/A deprecation form.get_value_by_label(...) N/A c N/A N/A self find_control name type kind id label label nr nr N/A by_label N/A N/A N/A N/A meth N/A c get_value_by_label N/A N/A N/A AttributeError N/A N/A N/A NotImplementedError N/A control '%s' does not yet support by_label N/A c name N/A N/A N/A meth N/A N/A N/A c value N/A set_value N/A N/A self value name type kind id nr by_label label N/A None None None None None False None N/A N/A Set value of control.

        If only name and value arguments are supplied, equivalent to

        form[name] = value

         N/A by_label N/A N/A N/A deprecation form.get_value_by_label(...) N/A c N/A N/A self find_control name type kind id label label nr nr N/A by_label N/A N/A N/A N/A meth N/A c set_value_by_label N/A N/A N/A AttributeError N/A N/A N/A NotImplementedError N/A control '%s' does not yet support by_label N/A c name N/A N/A N/A meth value N/A N/A N/A c value value N/A get_value_by_label N/A N/A self name type kind id label nr N/A None None None None None None N/A N/A 

        All arguments should be passed by name.

         N/A c N/A N/A self find_control name type kind id label label nr nr N/A N/A N/A c get_value_by_label N/A set_value_by_label N/A N/A self value name type kind id label nr N/A None None None None None None N/A N/A 

        All arguments should be passed by name.

         N/A c N/A N/A self find_control name type kind id label label nr nr N/A N/A N/A c set_value_by_label value N/A set_all_readonly N/A N/A self readonly N/A N/A N/A control N/A self controls N/A N/A N/A control readonly N/A bool readonly N/A clear_all N/A N/A self N/A N/A N/A Clear the value attributes of all controls in the form.

        See HTMLForm.clear.__doc__.

         N/A control N/A self controls N/A N/A N/A N/A control clear N/A clear N/A N/A self name type kind id nr label N/A None None None None None None N/A N/A Clear the value attribute of a control.

        As a result, the affected control will not be successful until a value
        is subsequently set.  AttributeError is raised on readonly controls.

         N/A c N/A N/A self find_control name type kind id label label nr nr N/A N/A N/A c clear N/A possible_items N/A N/A self name type kind id nr by_label label N/A None None None None None False None N/A N/A Return a list of all values that the specified control can take. N/A c N/A N/A self _find_list_control name type kind id label nr N/A N/A N/A c possible_items by_label N/A set N/A N/A self selected item_name name type kind id nr by_label label N/A None None None None None False None N/A N/A Select / deselect named list item.

        selected: boolean selected state

         N/A N/A N/A N/A N/A self _find_list_control name type kind id label nr set selected item_name by_label N/A toggle N/A N/A self item_name name type kind id nr by_label label N/A None None None None None False None N/A N/A Toggle selected state of named list item. N/A N/A N/A N/A N/A self _find_list_control name type kind id label nr toggle item_name by_label N/A set_single N/A N/A self selected name type kind id nr by_label label N/A None None None None None None None N/A N/A Select / deselect list item in a control having only one item.

        If the control has multiple list items, ItemCountError is raised.

        This is just a convenience method, so you don't need to know the item's
        name -- the item name in these single-item controls is usually
        something meaningless like "1" or "on".

        For example, if a checkbox has a single item named "on", the following
        two calls are equivalent:

        control.toggle("on")
        control.toggle_single()

         N/A N/A N/A N/A N/A self _find_list_control name type kind id label nr set_single selected N/A toggle_single N/A N/A self name type kind id nr by_label label N/A None None None None None None None N/A N/A Toggle selected state of list item in control having only one item.

        The rest is as for HTMLForm.set_single.__doc__.

         N/A N/A N/A N/A N/A self _find_list_control name type kind id label nr toggle_single N/A add_file N/A N/A self file_object content_type filename name id nr label N/A None None None None None None N/A N/A Add a file to be uploaded.

        file_object: file-like object (with read method) from which to read
         data to upload
        content_type: MIME content type of data to upload
        filename: filename to pass to server

        If filename is None, no filename is sent to the server.

        If content_type is None, the content type is guessed based on the
        filename and the data from read from the file object.

        XXX
        At the moment, guessed content type is always application/octet-stream.
        Use sndhdr, imghdr modules.  Should also try to guess HTML, XML, and
        plain text.

        Note the following useful HTML attributes of file upload controls (see
        HTML 4.01 spec, section 17):

        accept: comma-separated list of content types that the server will
         handle correctly; you can use this to filter out non-conforming files
        size: XXX IIRC, this is indicative of whether form wants multiple or
         single files
        maxlength: XXX hint of max content length in bytes?

         N/A N/A N/A N/A N/A self find_control name file id id label label nr nr add_file file_object content_type filename N/A click N/A N/A self name type id nr coord request_class label N/A None None None 0 N/A 1 1 N/A urllib2 Request None N/A N/A Return request that would result from clicking on a control.

        The request object is a urllib2.Request instance, which you can pass to
        urllib2.urlopen (or ClientCookie.urlopen).

        Only some control types (INPUT/SUBMIT & BUTTON/SUBMIT buttons and
        IMAGEs) can be clicked.

        Will click on the first clickable control, subject to the name, type
        and nr arguments (as for find_control).  If no name, type, id or number
        is specified and there are no clickable controls, a request will be
        returned for the form in its current, un-clicked, state.

        IndexError is raised if any of name, type, id or nr is specified but no
        matching control is found.  ValueError is raised if the HTMLForm has an
        enctype attribute that is not recognised.

        You can optionally specify a coordinate to click at, which only makes a
        difference if you clicked on an image.

         N/A N/A N/A self _click name type id label nr coord request N/A self _request_class N/A click_request_data N/A N/A self name type id nr coord request_class label N/A None None None 0 N/A 1 1 N/A urllib2 Request None N/A N/A As for click method, but return a tuple (url, data, headers).

        You can use this data to send a request to the server.  This is useful
        if you're using httplib or urllib rather than urllib2.  Otherwise, use
        the click method.

        # Untested.  Have to subclass to add headers, I think -- so use urllib2
        # instead!
        import urllib
        url, data, hdrs = form.click_request_data()
        r = urllib.urlopen(url, data)

        # Untested.  I don't know of any reason to use httplib -- you can get
        # just as much control with urllib2.
        import httplib, urlparse
        url, data, hdrs = form.click_request_data()
        tup = urlparse(url)
        host, path = tup[1], urlparse.urlunparse((None, None)+tup[2:])
        conn = httplib.HTTPConnection(host)
        if data:
            httplib.request("POST", path, data, hdrs)
        else:
            httplib.request("GET", path, headers=hdrs)
        r = conn.getresponse()

         N/A N/A N/A self _click name type id label nr coord request_data N/A self _request_class N/A click_pairs N/A N/A self name type id nr coord label N/A None None None 0 N/A 1 1 None N/A N/A As for click_request_data, but returns a list of (key, value) pairs.

        You can use this list as an argument to ClientForm.urlencode.  This is
        usually only useful if you're using httplib or urllib rather than
        urllib2 or ClientCookie.  It may also be useful if you want to manually
        tweak the keys and/or values, but this should not be necessary.
        Otherwise, use the click method.

        Note that this method is only useful for forms of MIME type
        x-www-form-urlencoded.  In particular, it does not return the
        information required for file upload.  If you need file upload and are
        not using urllib2, use click_request_data.

        Also note that Python 2.0's urllib.urlencode is slightly broken: it
        only accepts a mapping, not a sequence of pairs, as an argument.  This
        messes up any ordering in the argument.  Use ClientForm.urlencode
        instead.

         N/A N/A N/A self _click name type id label nr coord pairs N/A self _request_class N/A find_control N/A N/A self name type kind id predicate nr label N/A None None None None None None None N/A N/A Locate and return some specific control within the form.

        At least one of the name, type, kind, predicate and nr arguments must
        be supplied.  If no matching control is found, ControlNotFoundError is
        raised.

        If name is specified, then the control must have the indicated name.

        If type is specified then the control must have the specified type (in
        addition to the types possible for <input> HTML tags: "text",
        "password", "hidden", "submit", "image", "button", "radio", "checkbox",
        "file" we also have "reset", "buttonbutton", "submitbutton",
        "resetbutton", "textarea", "select" and "isindex").

        If kind is specified, then the control must fall into the specified
        group, each of which satisfies a particular interface.  The types are
        "text", "list", "multilist", "singlelist", "clickable" and "file".

        If id is specified, then the control must have the indicated id.

        If predicate is specified, then the control must match that function.
        The predicate function is passed the control as its single argument,
        and should return a boolean value indicating whether the control
        matched.

        nr, if supplied, is the sequence number of the control (where 0 is the
        first).  Note that control 0 is the first control matching all the
        other arguments (if supplied); it is not necessarily the first control
        in the form.  If no nr is supplied, AmbiguityError is raised if
        multiple controls match the other arguments (unless the
        .backwards-compat attribute is true).

        If label is specified, then the control must have this label.  Note
        that radio controls and checkboxes never have labels: their items do.

         N/A N/A N/A name None N/A type None N/A kind None N/A id None N/A label None N/A predicate None N/A nr None N/A N/A N/A ValueError at least one argument must be supplied to specify control N/A N/A N/A self _find_control name type kind id label predicate nr N/A _find_list_control N/A N/A self name type kind id label nr N/A None None None None None None N/A N/A N/A N/A name None N/A type None N/A kind None N/A id None N/A label None N/A nr None N/A N/A N/A ValueError at least one argument must be supplied to specify control N/A N/A N/A self _find_control name type kind id label is_listcontrol nr N/A _find_control N/A N/A self name type kind id label predicate nr N/A N/A N/A N/A N/A name None N/A name Missing N/A N/A isstringlike name N/A N/A N/A TypeError control name must be string-like N/A N/A N/A type None N/A N/A isstringlike type N/A N/A N/A TypeError control type must be string-like N/A N/A N/A kind None N/A N/A isstringlike kind N/A N/A N/A TypeError control kind must be string-like N/A N/A N/A id None N/A N/A isstringlike id N/A N/A N/A TypeError control id must be string-like N/A N/A N/A label None N/A N/A isstringlike label N/A N/A N/A TypeError control label must be string-like N/A N/A N/A predicate None N/A N/A callable predicate N/A N/A N/A TypeError control predicate must be callable N/A N/A N/A nr None N/A nr 0 N/A N/A N/A ValueError control number must be a positive integer N/A orig_nr nr N/A found None N/A ambiguous False N/A N/A N/A nr None N/A self backwards_compat N/A N/A nr 0 N/A control N/A self controls N/A N/A N/A N/A N/A name None N/A name N/A control name N/A N/A name Missing N/A N/A control name None N/A N/A N/A N/A N/A type None N/A type N/A control type N/A N/A N/A N/A N/A kind None N/A N/A N/A control is_of_kind kind N/A N/A N/A N/A N/A id None N/A id N/A control id N/A N/A N/A N/A predicate N/A N/A predicate control N/A N/A N/A label N/A N/A l N/A N/A control get_labels N/A N/A N/A N/A N/A N/A l text find label -1 N/A N/A N/A N/A N/A N/A nr None N/A N/A N/A nr 0 N/A N/A control N/A nr 1 N/A N/A found N/A N/A ambiguous True N/A N/A found control N/A N/A found N/A ambiguous N/A N/A found N/A description N/A N/A N/A name None N/A N/A N/A N/A description append N/A name %s N/A repr name N/A N/A type None N/A N/A N/A N/A description append N/A type '%s' type N/A N/A kind None N/A N/A N/A N/A description append N/A kind '%s' kind N/A N/A id None N/A N/A N/A N/A description append N/A id '%s' id N/A N/A label None N/A N/A N/A N/A description append N/A label '%s' label N/A N/A predicate None N/A N/A N/A N/A description append N/A predicate %s predicate N/A orig_nr N/A N/A N/A N/A description append N/A nr %d orig_nr N/A description N/A N/A ,  join description N/A ambiguous N/A N/A N/A AmbiguityError N/A more than one control matching  description N/A N/A N/A found N/A N/A N/A ControlNotFoundError N/A no control matching  description N/A False N/A _click N/A N/A self name type id label nr coord return_type request_class N/A N/A urllib2 Request N/A N/A N/A N/A control N/A N/A self _find_control name type clickable id label None nr N/A N/A N/A ControlNotFoundError N/A N/A N/A N/A name None N/A type None N/A id None N/A nr 0 N/A N/A N/A N/A N/A self _switch_click return_type request_class N/A N/A N/A N/A control _click self coord return_type request_class N/A _pairs N/A N/A self N/A N/A N/A Return sequence of (key, value) pairs suitable for urlencoding. N/A N/A N/A k v N/A N/A i k v c_i N/A N/A self _pairs_and_controls N/A _pairs_and_controls N/A N/A self N/A N/A N/A Return sequence of (index, key, value, control_index)
        of totally ordered pairs suitable for urlencoding.

        control_index is the index of the control in self.controls
         N/A pairs N/A N/A control_index N/A range N/A len N/A self controls N/A N/A control N/A N/A self controls N/A control_index N/A N/A ii key val N/A N/A control _totally_ordered_pairs N/A N/A N/A N/A pairs append N/A ii key val control_index N/A N/A N/A pairs sort N/A pairs N/A _request_data N/A N/A self N/A N/A N/A Return a tuple (url, data, headers). N/A method N/A N/A N/A self method upper N/A parts N/A N/A self _urlparse N/A self action N/A N/A rest N/A query frag N/A N/A parts N/A -2 N/A parts N/A -2 N/A N/A method GET N/A N/A N/A N/A self enctype application/x-www-form-urlencoded N/A N/A N/A ValueError N/A unknown GET form encoding type '%s' N/A self enctype N/A parts N/A rest N/A N/A urlencode N/A N/A self _pairs None N/A uri N/A N/A self _urlunparse parts N/A N/A uri None N/A N/A N/A N/A method POST N/A N/A parts N/A rest N/A query None N/A uri N/A N/A self _urlunparse parts N/A N/A N/A self enctype application/x-www-form-urlencoded N/A N/A N/A uri N/A urlencode N/A N/A self _pairs N/A N/A Content-Type N/A self enctype N/A N/A N/A N/A self enctype multipart/form-data N/A N/A data N/A StringIO N/A http_hdrs N/A N/A mw N/A MimeWriter data http_hdrs N/A f N/A N/A mw startmultipartbody form-data add_to_http_hdrs True prefix 0 N/A N/A ii k v control_index N/A N/A self _pairs_and_controls N/A N/A N/A N/A N/A N/A self controls N/A control_index _write_mime_data mw k v N/A N/A N/A mw lastpart N/A N/A uri N/A N/A data getvalue http_hdrs N/A N/A N/A ValueError N/A unknown POST form encoding type '%s' N/A self enctype N/A N/A N/A ValueError N/A Unknown method '%s' method N/A _switch_click N/A N/A self return_type request_class N/A N/A urllib2 Request N/A N/A N/A return_type pairs N/A N/A N/A N/A self _pairs N/A N/A N/A return_type request_data N/A N/A N/A N/A self _request_data N/A N/A req_data N/A N/A self _request_data N/A req N/A request_class N/A req_data N/A 0 N/A req_data N/A 1 N/A N/A key val N/A req_data N/A 2 N/A N/A add_hdr N/A req add_header N/A N/A N/A N/A key lower content-type N/A N/A N/A N/A add_hdr N/A req add_unredirected_header N/A N/A N/A AttributeError N/A N/A N/A N/A add_hdr key val N/A req N/A N/A