Module Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str Str Str body Assign NameStore Dict Exec BinOpMod Str NameLoad NameLoad Delete SubscriptDel NameLoad Index Str If BoolOpAnd CompareEq NameLoad Str CompareEq AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str NameLoad BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr Str Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str ListLoad Str Str Str TupleLoad Str ListLoad Str Str TupleLoad Str ListLoad Str Str Str Str Str Str Str TupleLoad Str ListLoad Str Str Str For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad Call NameLoad NameLoad keyword Dict Str Str attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad Call NameLoad NameLoad keyword Dict Str Str attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad keyword Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call NameLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Dict decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Import alias Raise Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad Dict Num Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases body Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad orelse If CompareEq NameLoad Str body Return NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad Num Str Dict Str Return NameLoad orelse If CompareEq NameLoad Str body Return Call NameLoad Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Call NameLoad Num Str Dict Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str SubscriptLoad NameLoad Index Num NameLoad NameLoad Str Dict orelse If CompareEq NameLoad Str body Raise Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Return NameLoad Return CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Num For NameStore NameLoad body ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg body Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias alias alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Return Call NameLoad Num Str NameLoad Str Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Assign NameStore ListLoad ListLoad TupleLoad Str Str TupleLoad Str Str ListLoad TupleLoad Str Str Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore TupleLoad Str Str Str body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad ListLoad Str Str Str ListLoad Str ListLoad TupleLoad Str Str ListLoad TupleLoad Str Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Assign NameStore ListLoad TupleLoad SubscriptLoad NameLoad Index Num Str TupleLoad SubscriptLoad NameLoad Index Num Str For TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore ListLoad TupleLoad ListLoad TupleLoad Str Str Num TupleLoad ListLoad Str Num body ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad ListLoad TupleLoad Str Str ListLoad TupleLoad Str Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad SubscriptLoad NameLoad Index Num Str TupleLoad NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad ListLoad TupleLoad Str Str ListLoad TupleLoad Str Str Str ListLoad TupleLoad Str Str Str Str ListLoad Str Assign NameStore Call NameLoad NameLoad NameLoad ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore ListLoad TupleLoad SubscriptLoad NameLoad Index Num Str TupleLoad NameLoad TupleLoad SubscriptLoad NameLoad Index Num Str TupleLoad NameLoad Call NameLoad Num Str Dict For TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad ListLoad TupleLoad Str Str TupleLoad Str Str ListLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad SubscriptLoad NameLoad Index Num Str TupleLoad SubscriptLoad NameLoad Index Num Str TupleLoad SubscriptLoad NameLoad Index Num Str TupleLoad SubscriptLoad NameLoad Index Num Str For TupleStore NameStore TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr BoolOpOr CompareIs SubscriptLoad NameLoad Index Num NameLoad Call NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Return TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list Import alias Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore ListLoad TupleLoad Str Str AttributeLoad NameLoad attr Str Str Str ListLoad Str Str Str Str TupleLoad Str Str AttributeLoad NameLoad attr Str Str Str ListLoad Str Str Str Str TupleLoad Str Str AttributeLoad NameLoad attr Str Str Str ListLoad Str Str Str Str TupleLoad Str Str AttributeLoad NameLoad attr Str Str Str ListLoad Str Str Str Str TupleLoad Str Str Num Str Str Str ListLoad Str Str Str NameLoad TupleLoad Str Str AttributeLoad NameLoad attr Str Str Str ListLoad Str NameLoad body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeStore NameLoad attr Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore ListLoad BinOpMod Str NameLoad BinOpMod Str NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Str If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Str TryFinally body TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore ListLoad BinOpMod Str NameLoad Str BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad body TryFinally body Assign NameStore Call NameLoad NameLoad Str TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeStore NameLoad attr Call NameLoad For TupleStore NameStore NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad body Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeStore NameLoad attr Call NameLoad Assign NameStore Str For TupleStore NameStore NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str Str body Assign NameStore Call NameLoad NameLoad NameLoad Dict Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Expr TupleLoad AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad TupleLoad Str Str For NameStore TupleLoad Str NameLoad body Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Num Str Dict Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str FunctionDef arguments args defaults body Expr Yield Str Expr Yield Str Expr Yield Str decorator_list For NameStore TupleLoad Dict Dict Str Num body Assign NameStore Call NameLoad Str Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str For NameStore TupleLoad Dict Dict Str Num body Assign NameStore Call NameLoad Str NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Num Num Num Num For NameStore TupleLoad Dict Dict Str Num body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Str Assign NameStore ListLoad Str Str Str Str For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeStore NameLoad attr Call NameLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Num Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad Num Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad Num Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad Num Str Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num Str Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Num Str Dict Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeStore NameLoad attr Call NameLoad For NameStore TupleLoad Num Num Num Num body For NameStore TupleLoad NameLoad Str body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str TryExcept body Expr Call NameLoad NameLoad Call NameLoad NameLoad Str Call NameLoad Dict Str NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad Num CompareIsNot NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Str Call NameLoad Dict Str NameLoad decorator_list Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body While Num body Expr Call NameLoad NameLoad NameLoad Str Assign NameStore BinOpAdd NameLoad Num handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body While Num body Expr Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore BinOpAdd NameLoad Num handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call NameLoad Num Str Call NameLoad Dict Str NameLoad For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Str Call NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Str Call NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str Str Assign NameStore Call NameLoad Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Num BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad ListLoad TupleLoad Str Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad SubscriptLoad NameLoad Index Num Str ListComp SubscriptLoad NameLoad Slice Num Num comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Delete SubscriptDel AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Delete SubscriptDel AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad ListLoad TupleLoad Str Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad SubscriptLoad NameLoad Index Num Str ListComp SubscriptLoad NameLoad Slice Num Num comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str NameLoad ListLoad Str Str Str Str Str For NameStore TupleLoad Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad For NameStore TupleLoad Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore Dict Str Str NameLoad ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad decorator_list Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad Num BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Call NameLoad Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult ListLoad Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Num Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Num Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Import alias Assign TupleStore NameStore NameStore TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad Assign NameStore Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Str Assign NameStore BinOpAdd Str Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareEq AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Pass decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Pass decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore NameStore NameStore NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Str keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assert Call NameLoad NameLoad Str Assert Call NameLoad NameLoad Str Assert Call NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body ImportFrom alias Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad keyword NameLoad
N/A N/A unittest test support N/A os N/A io N/A socket N/A array N/A sys N/A urllib.request urllib.request Request OpenerDirector _proxy_bypass_macosx_sysconf N/A urllib.error TrivialTests N/A N/A unittest TestCase N/A test___all__ N/A N/A self N/A N/A N/A module N/A request response parse error robotparser N/A N/A context N/A N/A N/A from urllib.%s import * module context N/A N/A context N/A __builtins__ N/A N/A N/A module request N/A N/A os name nt N/A N/A N/A u p N/A N/A N/A context pop url2pathname N/A N/A context pop pathname2url N/A N/A N/A self assertEqual N/A u __module__ nturl2path N/A N/A N/A self assertEqual N/A p __module__ nturl2path N/A N/A k v N/A N/A context items N/A N/A N/A N/A self assertEqual N/A v __module__ N/A urllib.%s module N/A %r is exposed in 'urllib.%s' but defined in %r N/A k module N/A v __module__ N/A test_trivial N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A N/A urllib request urlopen bogus url N/A fname N/A N/A N/A N/A N/A os path abspath N/A N/A urllib request __file__ replace \ / N/A N/A N/A os name nt N/A N/A file_url N/A file:///%s fname N/A N/A file_url N/A file://%s fname N/A f N/A N/A N/A urllib request urlopen file_url N/A N/A N/A f read N/A N/A N/A f close N/A test_parse_http_list N/A N/A self N/A N/A N/A tests N/A N/A a,b,c N/A a b c N/A path"o,l"og"i"cal, example N/A path"o,l"og"i"cal example N/A a, b, "c", "d", "e,f", g, h N/A a b "c" "d" "e,f" g h N/A a="b\"c", d="e\,f", g="h\\i" N/A a="b"c" d="e,f" g="h\i" N/A N/A string list tests N/A N/A N/A N/A self assertEqual N/A N/A N/A urllib request parse_http_list string list N/A test_URLError_reasonstr N/A N/A self N/A N/A N/A err N/A N/A N/A urllib error URLError reason N/A N/A N/A self assertIn N/A err reason N/A str err N/A N/A RequestHdrsTests N/A N/A unittest TestCase N/A test_request_headers_dict N/A N/A self N/A N/A N/A 
        The Request.headers dictionary is not a documented interface.  It
        should stay that way, because the complete set of headers are only
        accessible through the .get_header(), .has_header(), .header_items()
        interface.  However, .headers pre-dates those methods, and so real code
        will be using the dictionary.

        The introduction in 2.4 of those methods was a mistake for the same
        reason: code that previously saw all (urllib2 user)-provided headers in
        .headers now sees only a subset.

         N/A url http://example.com N/A N/A N/A self assertEqual N/A N/A N/A Request url headers N/A Spam-eggs blah headers N/A Spam-eggs blah N/A N/A N/A self assertEqual N/A N/A N/A Request url headers N/A spam-EggS blah headers N/A Spam-eggs blah N/A test_request_headers_methods N/A N/A self N/A N/A N/A 
        Note the case normalization of header names here, to
        .capitalize()-case.  This should be preserved for
        backwards-compatibility.  (In the HTTP case, normalization to
        .title()-case is done by urllib2 before sending headers to
        http.client).

        Note that e.g. r.has_header("spam-EggS") is currently False, and
        r.get_header("spam-EggS") returns None, but that could be changed in
        future.

        Method r.remove_header should remove items both from r.headers and
        r.unredirected_hdrs dictionaries
         N/A url http://example.com N/A req N/A Request url headers N/A Spam-eggs blah N/A N/A N/A self assertTrue N/A N/A req has_header Spam-eggs N/A N/A N/A self assertEqual N/A N/A req header_items N/A N/A Spam-eggs blah N/A N/A N/A req add_header Foo-Bar baz N/A N/A N/A self assertEqual N/A sorted N/A N/A req header_items N/A N/A Foo-bar baz N/A Spam-eggs blah N/A N/A N/A self assertFalse N/A N/A req has_header Not-there N/A N/A N/A self assertIsNone N/A N/A req get_header Not-there N/A N/A N/A self assertEqual N/A N/A req get_header Not-there default default N/A test_password_manager N/A N/A self N/A N/A N/A mgr N/A N/A N/A urllib request HTTPPasswordMgr N/A add N/A mgr add_password N/A find_user_pass N/A mgr find_user_password N/A N/A add Some Realm http://example.com/ joe password N/A N/A add Some Realm http://example.com/ni ni ni N/A N/A add c http://example.com/foo foo ni N/A N/A add c http://example.com/bar bar nini N/A N/A add b http://example.com/ first blah N/A N/A add b http://example.com/ second spam N/A N/A add a http://example.com 1 a N/A N/A add Some Realm http://c.example.com:3128 3 c N/A N/A add Some Realm d.example.com 4 d N/A N/A add Some Realm e.example.com:3128 5 e N/A N/A N/A self assertEqual N/A find_user_pass Some Realm example.com N/A joe password N/A N/A N/A self assertEqual N/A find_user_pass Some Realm http://example.com N/A joe password N/A N/A N/A self assertEqual N/A find_user_pass Some Realm http://example.com/ N/A joe password N/A N/A N/A self assertEqual N/A find_user_pass Some Realm http://example.com/spam N/A joe password N/A N/A N/A self assertEqual N/A find_user_pass Some Realm http://example.com/spam/spam N/A joe password N/A N/A N/A self assertEqual N/A find_user_pass c http://example.com/foo N/A foo ni N/A N/A N/A self assertEqual N/A find_user_pass c http://example.com/bar N/A bar nini N/A N/A N/A self assertEqual N/A find_user_pass b http://example.com/ N/A second spam N/A N/A N/A self assertEqual N/A find_user_pass a http://example.com/ N/A 1 a N/A N/A N/A self assertEqual N/A find_user_pass a http://a.example.com/ N/A None None N/A N/A N/A self assertEqual N/A find_user_pass Some Realm c.example.com N/A None None N/A N/A N/A self assertEqual N/A find_user_pass Some Realm c.example.com:3128 N/A 3 c N/A N/A N/A self assertEqual N/A find_user_pass Some Realm http://c.example.com:3128 N/A 3 c N/A N/A N/A self assertEqual N/A find_user_pass Some Realm d.example.com N/A 4 d N/A N/A N/A self assertEqual N/A find_user_pass Some Realm e.example.com:3128 N/A 5 e N/A test_password_manager_default_port N/A N/A self N/A N/A N/A 
        The point to note here is that we can't guess the default port if
        there's no scheme.  This applies to both add_password and
        find_user_password.
         N/A mgr N/A N/A N/A urllib request HTTPPasswordMgr N/A add N/A mgr add_password N/A find_user_pass N/A mgr find_user_password N/A N/A add f http://g.example.com:80 10 j N/A N/A add g http://h.example.com 11 k N/A N/A add h i.example.com:80 12 l N/A N/A add i j.example.com 13 m N/A N/A N/A self assertEqual N/A find_user_pass f g.example.com:100 N/A None None N/A N/A N/A self assertEqual N/A find_user_pass f g.example.com:80 N/A 10 j N/A N/A N/A self assertEqual N/A find_user_pass f g.example.com N/A None None N/A N/A N/A self assertEqual N/A find_user_pass f http://g.example.com:100 N/A None None N/A N/A N/A self assertEqual N/A find_user_pass f http://g.example.com:80 N/A 10 j N/A N/A N/A self assertEqual N/A find_user_pass f http://g.example.com N/A 10 j N/A N/A N/A self assertEqual N/A find_user_pass g h.example.com N/A 11 k N/A N/A N/A self assertEqual N/A find_user_pass g h.example.com:80 N/A 11 k N/A N/A N/A self assertEqual N/A find_user_pass g http://h.example.com:80 N/A 11 k N/A N/A N/A self assertEqual N/A find_user_pass h i.example.com N/A None None N/A N/A N/A self assertEqual N/A find_user_pass h i.example.com:80 N/A 12 l N/A N/A N/A self assertEqual N/A find_user_pass h http://i.example.com:80 N/A 12 l N/A N/A N/A self assertEqual N/A find_user_pass i j.example.com N/A 13 m N/A N/A N/A self assertEqual N/A find_user_pass i j.example.com:80 N/A None None N/A N/A N/A self assertEqual N/A find_user_pass i http://j.example.com N/A 13 m N/A N/A N/A self assertEqual N/A find_user_pass i http://j.example.com:80 N/A None None N/A N/A MockOpener N/A N/A N/A addheaders N/A open N/A N/A self req data timeout N/A None N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A N/A self req N/A self data N/A self timeout N/A req data timeout N/A error N/A N/A self proto N/A args N/A N/A N/A N/A self proto N/A self args N/A proto args N/A N/A MockFile N/A N/A read N/A N/A self count N/A None N/A N/A N/A readline N/A N/A self count N/A None N/A N/A N/A close N/A N/A self N/A N/A N/A N/A N/A MockHeaders N/A dict N/A getheaders N/A N/A self name N/A N/A N/A N/A list N/A N/A self values N/A N/A MockResponse N/A N/A io StringIO N/A __init__ N/A N/A self code msg headers data url N/A None N/A N/A N/A N/A N/A io StringIO __init__ self data N/A N/A N/A self code N/A self msg N/A self headers N/A self url N/A code msg headers url N/A info N/A N/A self N/A N/A N/A N/A self headers N/A geturl N/A N/A self N/A N/A N/A N/A self url N/A N/A MockCookieJar N/A N/A add_cookie_header N/A N/A self request N/A N/A N/A N/A self ach_req request N/A extract_cookies N/A N/A self response request N/A N/A N/A N/A N/A self ec_req N/A self ec_r N/A request response N/A N/A FakeMethod N/A N/A __init__ N/A N/A self meth_name action handle N/A N/A N/A N/A self meth_name meth_name N/A N/A self handle handle N/A N/A self action action N/A __call__ N/A N/A self N/A args N/A N/A N/A N/A self handle N/A self meth_name N/A self action args N/A N/A MockHTTPResponse N/A N/A io IOBase N/A __init__ N/A N/A self fp msg status reason N/A N/A N/A N/A self fp fp N/A N/A self msg msg N/A N/A self status status N/A N/A self reason reason N/A N/A self code 200 N/A read N/A N/A self N/A N/A N/A N/A info N/A N/A self N/A N/A N/A N/A N/A geturl N/A N/A self N/A N/A N/A N/A self url N/A N/A MockHTTPClass N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self level 0 N/A N/A self req_headers N/A N/A N/A self data None N/A N/A self raise_on_endheaders False N/A N/A self _tunnel_headers N/A N/A __call__ N/A N/A self host timeout N/A N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A self host host N/A N/A self timeout timeout N/A self N/A set_debuglevel N/A N/A self level N/A N/A N/A N/A self level level N/A set_tunnel N/A N/A self host port headers N/A None None N/A N/A N/A self _tunnel_host host N/A N/A self _tunnel_port port N/A headers N/A N/A N/A self _tunnel_headers headers N/A N/A N/A N/A N/A self _tunnel_headers clear N/A request N/A N/A self method url body headers N/A None None N/A N/A N/A self method method N/A N/A self selector url N/A N/A headers None N/A N/A N/A self req_headers N/A N/A headers items N/A N/A N/A N/A self req_headers sort N/A body N/A N/A N/A self data body N/A N/A self raise_on_endheaders N/A N/A socket N/A N/A N/A socket error N/A getresponse N/A N/A self N/A N/A N/A N/A MockHTTPResponse N/A MockFile N/A 200 OK N/A close N/A N/A self N/A N/A N/A N/A N/A MockHandler N/A N/A N/A handler_order 500 __init__ N/A N/A self methods N/A N/A N/A N/A N/A self _define_methods methods N/A _define_methods N/A N/A self methods N/A N/A N/A spec methods N/A N/A N/A N/A len spec 2 N/A N/A N/A name action spec N/A N/A N/A name action N/A spec None N/A meth N/A FakeMethod name action N/A self handle N/A N/A setattr N/A self __class__ name meth N/A handle N/A N/A self fn_name action N/A args kwds N/A N/A N/A N/A N/A N/A self parent calls append N/A self fn_name args kwds N/A N/A action None N/A N/A None N/A N/A N/A action return self N/A N/A self N/A N/A N/A action return response N/A N/A res N/A MockResponse 200 OK N/A N/A res N/A N/A N/A action return request N/A N/A N/A Request http://blah/ N/A N/A N/A N/A action startswith error N/A N/A code N/A action N/A N/A N/A N/A action rfind 1 N/A N/A N/A code N/A int code N/A N/A N/A ValueError N/A N/A N/A res N/A MockResponse 200 OK N/A N/A N/A N/A N/A self parent error http N/A args N/A 0 res code N/A N/A N/A N/A action raise N/A N/A N/A N/A N/A urllib error URLError blah N/A False N/A close N/A N/A self N/A N/A N/A N/A add_parent N/A N/A self parent N/A N/A N/A N/A self parent parent N/A N/A N/A self parent calls N/A N/A __lt__ N/A N/A self other N/A N/A N/A N/A N/A hasattr other handler_order N/A N/A True N/A N/A N/A self handler_order N/A other handler_order N/A N/A add_ordered_mock_handlers N/A N/A opener meth_spec N/A N/A N/A Create MockHandlers and add them to an OpenerDirector.

    meth_spec: list of lists of tuples and strings defining methods to define
    on handlers.  eg:

    [["http_error", "ftp_open"], ["http_open"]]

    defines methods .http_error() and .ftp_open() on one handler, and
    .http_open() on another.  These methods just record their arguments and
    return None.  Using a tuple instead of a string causes the method to
    perform some action (see MockHandler.handle()), eg:

    [["http_error"], [("http_open", "return request")]]

    defines .http_error() on one handler (which simply returns None), and
    .http_open() on another handler, which returns a Request object.

     N/A handlers N/A N/A count 0 N/A meths meth_spec N/A MockHandlerSubclass N/A MockHandler N/A N/A N/A N/A h N/A MockHandlerSubclass meths N/A N/A h handler_order count N/A N/A N/A h add_parent opener N/A count N/A count 1 N/A N/A N/A handlers append h N/A N/A N/A opener add_handler h N/A handlers N/A build_test_opener N/A N/A N/A handler_instances N/A N/A opener N/A OpenerDirector N/A h handler_instances N/A N/A N/A N/A opener add_handler h N/A opener N/A MockHTTPHandler N/A N/A N/A urllib request BaseHandler N/A __init__ N/A N/A self code headers N/A N/A N/A N/A self code code N/A N/A self headers headers N/A N/A N/A self reset N/A reset N/A N/A self N/A N/A N/A N/A self _count 0 N/A N/A self requests N/A N/A http_open N/A N/A self req N/A N/A N/A email http.client copy N/A N/A N/A N/A self requests append N/A N/A copy deepcopy req N/A N/A N/A self _count 0 N/A N/A N/A self _count N/A N/A self _count 1 N/A name N/A N/A N/A http client responses N/A N/A self code N/A msg N/A N/A email message_from_string N/A self headers N/A N/A N/A N/A self parent error http req N/A MockFile N/A self code name msg N/A N/A N/A self req req N/A msg N/A N/A email message_from_string N/A N/A MockResponse 200 OK msg N/A N/A req get_full_url N/A N/A MockHTTPSHandler N/A N/A N/A urllib request AbstractHTTPHandler N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A urllib request AbstractHTTPHandler __init__ self N/A N/A self httpconn N/A MockHTTPClass N/A https_open N/A N/A self req N/A N/A N/A N/A N/A self do_open N/A self httpconn req N/A N/A MockPasswordManager N/A N/A add_password N/A N/A self realm uri user password N/A N/A N/A N/A self realm realm N/A N/A self url uri N/A N/A self user user N/A N/A self password password N/A find_user_password N/A N/A self realm authuri N/A N/A N/A N/A self target_realm realm N/A N/A self target_url authuri N/A N/A N/A self user N/A self password N/A N/A OpenerDirectorTests N/A N/A unittest TestCase N/A test_add_non_handler N/A N/A self N/A N/A NonHandler N/A object N/A N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A OpenerDirector add_handler N/A NonHandler N/A test_badly_named_methods N/A N/A self N/A N/A urllib.error URLError N/A o N/A OpenerDirector N/A meth_spec N/A N/A N/A do_open return self N/A proxy_open return self N/A N/A redirect_request return self N/A N/A add_ordered_mock_handlers o meth_spec N/A N/A N/A o add_handler N/A N/A N/A urllib request UnknownHandler N/A scheme N/A do proxy redirect N/A N/A N/A N/A self assertRaises URLError N/A o open N/A scheme ://example.com/ N/A test_handled N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A meth_spec N/A N/A http_open ftp_open http_error_302 N/A ftp_open N/A N/A http_open return self N/A N/A http_open return self N/A handlers N/A add_ordered_mock_handlers o meth_spec N/A req N/A Request http://example.com/ N/A r N/A N/A o open req N/A N/A N/A self assertEqual r N/A handlers N/A 2 N/A calls N/A N/A N/A handlers N/A 0 http_open N/A N/A handlers N/A 2 http_open N/A N/A expected got N/A zip calls N/A o calls N/A N/A N/A handler name args kwds got N/A N/A N/A self assertEqual N/A handler name expected N/A N/A N/A self assertEqual args N/A req N/A test_handler_order N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A handlers N/A N/A N/A meths handler_order N/A N/A N/A N/A http_open return self 500 N/A N/A http_open 0 N/A MockHandlerSubclass N/A MockHandler N/A N/A N/A N/A h N/A MockHandlerSubclass meths N/A N/A h handler_order handler_order N/A N/A N/A handlers append h N/A N/A N/A o add_handler h N/A N/A N/A o open http://example.com/ N/A N/A N/A self assertEqual N/A N/A N/A o calls N/A 0 N/A 0 N/A handlers N/A 1 N/A N/A N/A self assertEqual N/A N/A N/A o calls N/A 1 N/A 0 N/A handlers N/A 0 N/A test_raise N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A meth_spec N/A N/A N/A http_open raise N/A N/A http_open return self N/A handlers N/A add_ordered_mock_handlers o meth_spec N/A req N/A Request http://example.com/ N/A N/A N/A self assertRaises N/A N/A urllib error URLError N/A o open req N/A N/A N/A self assertEqual N/A o calls N/A N/A N/A handlers N/A 0 http_open N/A req N/A N/A test_http_error N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A meth_spec N/A N/A N/A http_open error 302 N/A N/A http_error_400 raise http_open N/A N/A http_error_302 return response http_error_303 http_error N/A http_error_302 N/A handlers N/A add_ordered_mock_handlers o meth_spec Unknown N/A N/A __eq__ N/A N/A self other N/A N/A N/A True N/A N/A N/A req N/A Request http://example.com/ N/A N/A N/A o open req N/A N/A N/A len N/A o calls 2 N/A calls N/A N/A N/A handlers N/A 0 http_open N/A req N/A N/A handlers N/A 2 http_error_302 N/A req N/A Unknown 302 N/A N/A N/A expected got N/A zip calls N/A o calls N/A N/A N/A handler method_name args expected N/A N/A N/A self assertEqual N/A handler method_name N/A got N/A 2 N/A N/A N/A self assertEqual args N/A got N/A 2 N/A test_processors N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A meth_spec N/A N/A N/A http_request return request N/A http_response return response N/A N/A http_request return request N/A http_response return response N/A handlers N/A add_ordered_mock_handlers o meth_spec N/A req N/A Request http://example.com/ N/A N/A N/A o open req N/A calls N/A N/A N/A handlers N/A 0 http_request N/A N/A handlers N/A 1 http_request N/A N/A handlers N/A 0 http_response N/A N/A handlers N/A 1 http_response N/A N/A i N/A handler name args kwds N/A enumerate N/A o calls N/A N/A N/A i 2 N/A N/A N/A N/A self assertEqual N/A handler name N/A calls N/A i N/A N/A N/A self assertEqual N/A len args 1 N/A N/A N/A self assertIsInstance N/A args N/A 0 Request N/A N/A N/A N/A self assertEqual N/A handler name N/A calls N/A i N/A N/A N/A self assertEqual N/A len args 2 N/A N/A N/A self assertIsInstance N/A args N/A 0 Request N/A N/A N/A self assertTrue N/A N/A N/A args N/A 1 None N/A isinstance N/A args N/A 1 MockResponse N/A test_method_deprecations N/A N/A self N/A N/A N/A req N/A Request http://www.example.com N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req add_data data N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req get_data N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req has_data N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req get_host N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req get_selector N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req is_unverifiable N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req get_origin_req_host N/A N/A N/A self assertWarns DeprecationWarning N/A N/A N/A N/A req get_type N/A N/A sanepathname2url N/A N/A path N/A N/A N/A N/A N/A N/A N/A path encode utf-8 N/A N/A N/A UnicodeEncodeError N/A N/A N/A N/A unittest SkipTest path is not encodable to utf8 N/A urlpath N/A N/A N/A urllib request pathname2url path N/A N/A N/A N/A os name nt N/A N/A urlpath startswith /// N/A N/A urlpath N/A urlpath N/A 2 N/A urlpath N/A HandlerTests N/A N/A unittest TestCase N/A test_ftp N/A N/A self N/A N/A MockFTPWrapper N/A N/A __init__ N/A N/A self data N/A N/A N/A N/A self data data N/A retrfile N/A N/A self filename filetype N/A N/A N/A N/A N/A self filename N/A self filetype N/A filename filetype N/A N/A N/A N/A io StringIO N/A self data N/A len N/A self data N/A close N/A N/A self N/A N/A N/A N/A N/A NullFTPHandler N/A N/A N/A urllib request FTPHandler N/A __init__ N/A N/A self data N/A N/A N/A N/A self data data N/A connect_ftp N/A N/A self user passwd host port dirs timeout N/A N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A N/A self user N/A self passwd N/A user passwd N/A N/A N/A self host N/A self port N/A host port N/A N/A self dirs dirs N/A N/A self ftpwrapper N/A MockFTPWrapper N/A self data N/A N/A self ftpwrapper N/A N/A N/A ftplib N/A data rheum rhaponicum N/A h N/A NullFTPHandler data N/A N/A h parent N/A MockOpener N/A N/A url host port user passwd type_ dirs filename mimetype N/A N/A ftp://localhost/foo/bar/baz.html localhost N/A ftplib FTP_PORT I N/A foo bar baz.html text/html N/A ftp://parrot@localhost/foo/bar/baz.html localhost N/A ftplib FTP_PORT parrot I N/A foo bar baz.html text/html N/A ftp://%25parrot@localhost/foo/bar/baz.html localhost N/A ftplib FTP_PORT %parrot I N/A foo bar baz.html text/html N/A ftp://%2542parrot@localhost/foo/bar/baz.html localhost N/A ftplib FTP_PORT %42parrot I N/A foo bar baz.html text/html N/A ftp://localhost:80/foo/bar/ localhost 80 D N/A foo bar None N/A ftp://localhost/baz.gif;type=a localhost N/A ftplib FTP_PORT A N/A baz.gif None N/A N/A req N/A Request url N/A N/A req timeout None N/A r N/A N/A h ftp_open req N/A N/A N/A self assertEqual N/A h user user N/A N/A N/A self assertEqual N/A h passwd passwd N/A N/A N/A self assertEqual N/A h host N/A N/A socket gethostbyname host N/A N/A N/A self assertEqual N/A h port port N/A N/A N/A self assertEqual N/A h dirs dirs N/A N/A N/A self assertEqual N/A N/A h ftpwrapper filename filename N/A N/A N/A self assertEqual N/A N/A h ftpwrapper filetype type_ N/A headers N/A N/A r info N/A N/A N/A self assertEqual N/A N/A headers get Content-type mimetype N/A N/A N/A self assertEqual N/A int N/A headers N/A Content-length N/A len data N/A test_file N/A N/A self N/A N/A N/A email.utils socket N/A h N/A N/A N/A urllib request FileHandler N/A o N/A h parent N/A MockOpener N/A TESTFN N/A support TESTFN N/A urlpath N/A sanepathname2url N/A N/A N/A os path abspath TESTFN N/A towrite hello, world
 N/A urls N/A N/A file://localhost%s urlpath N/A file://%s urlpath N/A file://%s%s N/A N/A N/A socket gethostbyname localhost urlpath N/A N/A N/A localaddr N/A N/A socket gethostbyname N/A N/A socket gethostname N/A N/A N/A N/A socket gaierror N/A N/A localaddr N/A localaddr N/A N/A N/A N/A urls append N/A file://%s%s N/A localaddr urlpath N/A url urls N/A N/A f N/A open TESTFN wb N/A N/A N/A N/A N/A N/A N/A f write towrite N/A N/A N/A N/A f close N/A r N/A N/A h file_open N/A Request url N/A N/A N/A data N/A N/A r read N/A headers N/A N/A r info N/A respurl N/A N/A r geturl N/A N/A N/A N/A r close N/A stats N/A N/A os stat TESTFN N/A modified N/A N/A N/A email utils formatdate N/A stats st_mtime usegmt True N/A N/A N/A N/A os remove TESTFN N/A N/A N/A self assertEqual data towrite N/A N/A N/A self assertEqual N/A headers N/A Content-type text/plain N/A N/A N/A self assertEqual N/A headers N/A Content-length 13 N/A N/A N/A self assertEqual N/A headers N/A Last-modified modified N/A N/A N/A self assertEqual respurl url N/A url N/A N/A file://localhost:80%s urlpath file:///file_does_not_exist.txt N/A file://%s:80%s/%s N/A N/A N/A socket gethostbyname localhost N/A N/A os getcwd TESTFN N/A file://somerandomhost.ontheinternet.com%s/%s N/A N/A N/A os getcwd TESTFN N/A N/A N/A N/A f N/A open TESTFN wb N/A N/A N/A N/A N/A f write towrite N/A N/A N/A N/A f close N/A N/A N/A self assertRaises N/A N/A urllib error URLError N/A h file_open N/A Request url N/A N/A N/A N/A os remove TESTFN N/A h N/A N/A N/A urllib request FileHandler N/A o N/A h parent N/A MockOpener N/A N/A url ftp N/A N/A file://ftp.example.com//foo.txt False N/A file://ftp.example.com///foo.txt False N/A file://ftp.example.com/foo.txt False N/A file://somehost//foo/something.txt False N/A file://localhost//foo/something.txt False N/A N/A req N/A Request url N/A N/A N/A N/A N/A h file_open req N/A N/A N/A N/A N/A N/A urllib error URLError OSError N/A N/A N/A N/A self assertFalse ftp N/A N/A N/A N/A self assertIs N/A o req req N/A N/A N/A self assertEqual N/A req type ftp N/A N/A N/A self assertEqual N/A N/A req type ftp ftp N/A test_http N/A N/A self N/A N/A N/A h N/A N/A N/A urllib request AbstractHTTPHandler N/A o N/A h parent N/A MockOpener N/A url http://example.com/ N/A N/A method data N/A N/A GET None N/A POST blah N/A N/A req N/A Request url data N/A Foo bar N/A N/A req timeout None N/A N/A N/A req add_unredirected_header Spam eggs N/A http N/A MockHTTPClass N/A r N/A N/A h do_open http req N/A N/A r read N/A N/A r readline N/A N/A r info N/A N/A r geturl N/A N/A N/A r code N/A N/A r msg 200 OK N/A hdrs N/A N/A r info N/A N/A hdrs get N/A N/A hdrs __contains__ N/A N/A N/A self assertEqual N/A N/A r geturl url N/A N/A N/A self assertEqual N/A http host example.com N/A N/A N/A self assertEqual N/A http level 0 N/A N/A N/A self assertEqual N/A http method method N/A N/A N/A self assertEqual N/A http selector / N/A N/A N/A self assertEqual N/A http req_headers N/A N/A Connection close N/A Foo bar N/A Spam eggs N/A N/A N/A self assertEqual N/A http data data N/A N/A http raise_on_endheaders True N/A N/A N/A self assertRaises N/A N/A urllib error URLError N/A h do_open http req N/A req N/A Request http://example.com/ badpost N/A N/A N/A self assertRaises TypeError N/A h do_request_ req N/A N/A o addheaders N/A N/A Spam eggs N/A data N/A None N/A N/A req N/A Request http://example.com/ data N/A r N/A MockResponse 200 OK N/A N/A newreq N/A N/A h do_request_ req N/A N/A data None N/A N/A N/A N/A self assertNotIn Content-length N/A req unredirected_hdrs N/A N/A N/A self assertNotIn Content-type N/A req unredirected_hdrs N/A N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Content-length 0 N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Content-type application/x-www-form-urlencoded N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Host example.com N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Spam eggs N/A N/A N/A req add_unredirected_header Content-length foo N/A N/A N/A req add_unredirected_header Content-type bar N/A N/A N/A req add_unredirected_header Host baz N/A N/A N/A req add_unredirected_header Spam foo N/A newreq N/A N/A h do_request_ req N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Content-length foo N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Content-type bar N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Host baz N/A N/A N/A self assertEqual N/A N/A req unredirected_hdrs N/A Spam foo iterable_body N/A N/A N/A N/A N/A N/A one N/A N/A two N/A N/A three N/A N/A headers N/A N/A N/A Content-Length 11 N/A N/A req N/A Request http://example.com/ N/A iterable_body headers N/A N/A headers N/A N/A N/A N/A self assertRaises ValueError N/A h do_request_ req N/A N/A newreq N/A N/A h do_request_ req N/A file_obj N/A N/A io BytesIO N/A N/A N/A file_obj write Something
Something
Something
 N/A headers N/A N/A N/A Content-Length 30 N/A N/A req N/A Request http://example.com/ file_obj headers N/A N/A headers N/A N/A N/A N/A self assertRaises ValueError N/A h do_request_ req N/A N/A newreq N/A N/A h do_request_ req N/A N/A N/A self assertEqual N/A int N/A N/A newreq get_header Content-length 30 N/A N/A N/A file_obj close N/A iterable_array N/A N/A array array I N/A 1 2 3 4 N/A headers N/A N/A N/A Content-Length 16 N/A N/A req N/A Request http://example.com/ iterable_array headers N/A newreq N/A N/A h do_request_ req N/A N/A N/A self assertEqual N/A int N/A N/A newreq get_header Content-length 16 N/A test_http_doubleslash N/A N/A self N/A N/A N/A h N/A N/A N/A urllib request AbstractHTTPHandler N/A N/A h parent N/A MockOpener N/A data N/A ds_urls N/A http://example.com/foo/bar/baz.html http://example.com//foo/bar/baz.html http://example.com/foo//bar/baz.html http://example.com/foo/bar//baz.html N/A ds_url ds_urls N/A N/A ds_req N/A Request ds_url data N/A np_ds_req N/A N/A h do_request_ ds_req N/A N/A N/A self assertEqual N/A N/A np_ds_req unredirected_hdrs N/A Host example.com N/A N/A N/A ds_req set_proxy someproxy:3128 None N/A p_ds_req N/A N/A h do_request_ ds_req N/A N/A N/A self assertEqual N/A N/A p_ds_req unredirected_hdrs N/A Host example.com N/A test_fixpath_in_weirdurls N/A N/A self N/A N/A N/A h N/A N/A N/A urllib request AbstractHTTPHandler N/A N/A h parent N/A MockOpener N/A weird_url http://www.python.org?getspam N/A req N/A Request weird_url N/A newreq N/A N/A h do_request_ req N/A N/A N/A self assertEqual N/A newreq host www.python.org N/A N/A N/A self assertEqual N/A newreq selector /?getspam N/A url_without_path http://www.python.org N/A req N/A Request url_without_path N/A newreq N/A N/A h do_request_ req N/A N/A N/A self assertEqual N/A newreq host www.python.org N/A N/A N/A self assertEqual N/A newreq selector N/A test_errors N/A N/A self N/A N/A N/A h N/A N/A N/A urllib request HTTPErrorProcessor N/A o N/A h parent N/A MockOpener N/A url http://example.com/ N/A req N/A Request url N/A r N/A MockResponse 200 OK N/A url N/A newr N/A N/A h http_response req r N/A N/A N/A self assertIs r newr N/A N/A N/A self assertFalse N/A hasattr o proto N/A r N/A MockResponse 202 Accepted N/A url N/A newr N/A N/A h http_response req r N/A N/A N/A self assertIs r newr N/A N/A N/A self assertFalse N/A hasattr o proto N/A r N/A MockResponse 206 Partial content N/A url N/A newr N/A N/A h http_response req r N/A N/A N/A self assertIs r newr N/A N/A N/A self assertFalse N/A hasattr o proto N/A r N/A MockResponse 502 Bad gateway N/A url N/A N/A N/A self assertIsNone N/A N/A h http_response req r N/A N/A N/A self assertEqual N/A o proto http N/A N/A N/A self assertEqual N/A o args N/A req r 502 Bad gateway N/A N/A test_cookies N/A N/A self N/A N/A N/A cj N/A MockCookieJar N/A h N/A N/A N/A urllib request HTTPCookieProcessor cj N/A N/A h parent N/A MockOpener N/A req N/A Request http://example.com/ N/A r N/A MockResponse 200 OK N/A N/A newreq N/A N/A h http_request req N/A N/A N/A self assertIs N/A cj ach_req req N/A N/A N/A self assertIs N/A cj ach_req newreq N/A N/A N/A self assertEqual N/A req origin_req_host example.com N/A N/A N/A self assertFalse N/A req unverifiable N/A newr N/A N/A h http_response req r N/A N/A N/A self assertIs N/A cj ec_req req N/A N/A N/A self assertIs N/A cj ec_r r N/A N/A N/A self assertIs r newr N/A test_redirect N/A N/A self N/A N/A N/A from_url http://example.com/a.html N/A to_url http://example.com/b.html N/A h N/A N/A N/A urllib request HTTPRedirectHandler N/A o N/A h parent N/A MockOpener N/A code N/A 301 302 303 307 N/A N/A data N/A None blah
blah
 N/A N/A method N/A getattr h N/A http_error_%s code N/A req N/A Request from_url data N/A N/A req timeout N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A req add_header Nonsense viking=withhold N/A N/A data None N/A N/A N/A N/A req add_header Content-Length N/A str N/A len data N/A N/A N/A req add_unredirected_header Spam spam N/A N/A N/A N/A method req N/A MockFile code Blah N/A MockHeaders N/A location to_url N/A N/A N/A N/A N/A urllib error HTTPError N/A N/A N/A N/A self assertTrue N/A N/A code 307 N/A data None N/A N/A N/A self assertEqual N/A N/A N/A o req get_full_url to_url N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A o req get_method GET N/A N/A N/A AttributeError N/A N/A N/A N/A self assertFalse N/A N/A o req data N/A headers N/A N/A N/A x lower N/A x N/A N/A o req headers N/A N/A N/A self assertNotIn content-length headers N/A N/A N/A self assertNotIn content-type headers N/A N/A N/A self assertEqual N/A N/A N/A o req headers N/A Nonsense viking=withhold N/A N/A N/A self assertNotIn Spam N/A N/A o req headers N/A N/A N/A self assertNotIn Spam N/A N/A o req unredirected_hdrs N/A req N/A Request from_url N/A N/A req timeout N/A socket _GLOBAL_DEFAULT_TIMEOUT redirect N/A N/A h req url N/A to_url N/A N/A N/A N/A h http_error_302 req N/A MockFile 302 Blah N/A MockHeaders N/A location url N/A N/A req N/A Request from_url origin_req_host example.com N/A count 0 N/A N/A req timeout N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A 1 N/A N/A N/A redirect h req http://example.com/ N/A count N/A count 1 N/A N/A N/A N/A N/A urllib error HTTPError N/A N/A N/A N/A self assertEqual count N/A N/A N/A urllib request HTTPRedirectHandler max_repeats N/A req N/A Request from_url origin_req_host example.com N/A count 0 N/A N/A req timeout N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A 1 N/A N/A N/A redirect h req N/A http://example.com/%d count N/A count N/A count 1 N/A N/A N/A N/A N/A urllib error HTTPError N/A N/A N/A N/A self assertEqual count N/A N/A N/A urllib request HTTPRedirectHandler max_redirections N/A test_invalid_redirect N/A N/A self N/A N/A N/A from_url http://example.com/a.html N/A valid_schemes N/A http https ftp N/A invalid_schemes N/A file imap ldap N/A schemeless_url example.com/b.html N/A h N/A N/A N/A urllib request HTTPRedirectHandler N/A o N/A h parent N/A MockOpener N/A req N/A Request from_url N/A N/A req timeout N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A scheme invalid_schemes N/A N/A invalid_url N/A N/A scheme :// schemeless_url N/A N/A N/A self assertRaises N/A N/A urllib error HTTPError N/A h http_error_302 req N/A MockFile 302 Security Loophole N/A MockHeaders N/A location invalid_url N/A scheme valid_schemes N/A N/A valid_url N/A N/A scheme :// schemeless_url N/A N/A N/A h http_error_302 req N/A MockFile 302 That's fine N/A MockHeaders N/A location valid_url N/A N/A N/A self assertEqual N/A N/A N/A o req get_full_url valid_url N/A test_relative_redirect N/A N/A self N/A N/A N/A from_url http://example.com/a.html N/A relative_url /b.html N/A h N/A N/A N/A urllib request HTTPRedirectHandler N/A o N/A h parent N/A MockOpener N/A req N/A Request from_url N/A N/A req timeout N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A valid_url N/A N/A N/A urllib parse urljoin from_url relative_url N/A N/A N/A h http_error_302 req N/A MockFile 302 That's fine N/A MockHeaders N/A location valid_url N/A N/A N/A self assertEqual N/A N/A N/A o req get_full_url valid_url N/A test_cookie_redirect N/A N/A self N/A N/A http.cookiejar CookieJar test.test_http_cookiejar interact_netscape N/A cj N/A CookieJar N/A N/A interact_netscape cj http://www.example.com/ spam=eggs N/A hh N/A MockHTTPHandler 302 Location: http://www.cracker.com/

 N/A hdeh N/A N/A N/A urllib request HTTPDefaultErrorHandler N/A hrh N/A N/A N/A urllib request HTTPRedirectHandler N/A cp N/A N/A N/A urllib request HTTPCookieProcessor cj N/A o N/A build_test_opener hh hdeh hrh cp N/A N/A N/A o open http://www.example.com/ N/A N/A N/A self assertFalse N/A N/A N/A hh req has_header Cookie N/A test_redirect_fragment N/A N/A self N/A N/A N/A redirected_url http://www.example.com/index.html#OK

 N/A hh N/A MockHTTPHandler 302 N/A Location:  redirected_url N/A hdeh N/A N/A N/A urllib request HTTPDefaultErrorHandler N/A hrh N/A N/A N/A urllib request HTTPRedirectHandler N/A o N/A build_test_opener hh hdeh hrh N/A fp N/A N/A o open http://www.example.com N/A N/A N/A self assertEqual N/A N/A fp geturl N/A N/A redirected_url strip N/A test_proxy N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A ph N/A N/A N/A urllib request ProxyHandler N/A dict http proxy.example.com:3128 N/A N/A N/A o add_handler ph N/A meth_spec N/A N/A N/A http_open return response N/A handlers N/A add_ordered_mock_handlers o meth_spec N/A req N/A Request http://acme.example.com/ N/A N/A N/A self assertEqual N/A req host acme.example.com N/A N/A N/A o open req N/A N/A N/A self assertEqual N/A req host proxy.example.com:3128 N/A N/A N/A self assertEqual N/A N/A N/A handlers N/A 0 http_open N/A N/A tup N/A 0 2 N/A tup N/A o calls N/A test_proxy_no_proxy N/A N/A self N/A N/A N/A N/A N/A os environ N/A no_proxy python.org N/A o N/A OpenerDirector N/A ph N/A N/A N/A urllib request ProxyHandler N/A dict http proxy.example.com N/A N/A N/A o add_handler ph N/A req N/A Request http://www.perl.org/ N/A N/A N/A self assertEqual N/A req host www.perl.org N/A N/A N/A o open req N/A N/A N/A self assertEqual N/A req host proxy.example.com N/A req N/A Request http://www.python.org N/A N/A N/A self assertEqual N/A req host www.python.org N/A N/A N/A o open req N/A N/A N/A self assertEqual N/A req host www.python.org N/A N/A N/A os environ N/A no_proxy N/A test_proxy_no_proxy_all N/A N/A self N/A N/A N/A N/A N/A os environ N/A no_proxy * N/A o N/A OpenerDirector N/A ph N/A N/A N/A urllib request ProxyHandler N/A dict http proxy.example.com N/A N/A N/A o add_handler ph N/A req N/A Request http://www.python.org N/A N/A N/A self assertEqual N/A req host www.python.org N/A N/A N/A o open req N/A N/A N/A self assertEqual N/A req host www.python.org N/A N/A N/A os environ N/A no_proxy N/A test_proxy_https N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A ph N/A N/A N/A urllib request ProxyHandler N/A dict https proxy.example.com:3128 N/A N/A N/A o add_handler ph N/A meth_spec N/A N/A N/A https_open return response N/A handlers N/A add_ordered_mock_handlers o meth_spec N/A req N/A Request https://www.example.com/ N/A N/A N/A self assertEqual N/A req host www.example.com N/A N/A N/A o open req N/A N/A N/A self assertEqual N/A req host proxy.example.com:3128 N/A N/A N/A self assertEqual N/A N/A N/A handlers N/A 0 https_open N/A N/A tup N/A 0 2 N/A tup N/A o calls N/A test_proxy_https_proxy_authorization N/A N/A self N/A N/A N/A o N/A OpenerDirector N/A ph N/A N/A N/A urllib request ProxyHandler N/A dict https proxy.example.com:3128 N/A N/A N/A o add_handler ph N/A https_handler N/A MockHTTPSHandler N/A N/A N/A o add_handler https_handler N/A req N/A Request https://www.example.com/ N/A N/A N/A req add_header Proxy-Authorization FooBar N/A N/A N/A req add_header User-Agent Grail N/A N/A N/A self assertEqual N/A req host www.example.com N/A N/A N/A self assertIsNone N/A req _tunnel_host N/A N/A N/A o open req N/A N/A N/A self assertNotIn N/A Proxy-Authorization FooBar N/A N/A https_handler httpconn req_headers N/A N/A N/A self assertIn N/A User-Agent Grail N/A N/A https_handler httpconn req_headers N/A N/A N/A self assertIsNotNone N/A req _tunnel_host N/A N/A N/A self assertEqual N/A req host proxy.example.com:3128 N/A N/A N/A self assertEqual N/A N/A req get_header Proxy-authorization FooBar N/A test_osx_proxy_bypass N/A N/A self N/A N/A N/A bypass N/A exclude_simple exceptions False N/A foo.bar *.bar.com 127.0.0.1 10.10 10.0/16 N/A host N/A foo.bar www.bar.com 127.0.0.1 10.10.0.1 10.0.0.1 N/A N/A N/A N/A self assertTrue N/A _proxy_bypass_macosx_sysconf host bypass N/A expected bypass of %s to be True host N/A host N/A abc.foo.bar bar.com 127.0.0.2 10.11.0.1 test N/A N/A N/A N/A self assertFalse N/A _proxy_bypass_macosx_sysconf host bypass N/A expected bypass of %s to be False host N/A bypass N/A exclude_simple exceptions True N/A N/A N/A N/A self assertTrue N/A _proxy_bypass_macosx_sysconf test bypass N/A N/A N/A unittest skipUnless N/A N/A sys platform darwin only relevant for OSX test_basic_auth N/A N/A self quote_char N/A " N/A N/A opener N/A OpenerDirector N/A password_manager N/A MockPasswordManager N/A auth_handler N/A N/A N/A urllib request HTTPBasicAuthHandler password_manager N/A realm ACME Widget Store N/A http_handler N/A MockHTTPHandler 401 N/A WWW-Authenticate: Basic realm=%s%s%s

 N/A quote_char realm quote_char N/A N/A N/A opener add_handler auth_handler N/A N/A N/A opener add_handler http_handler N/A N/A N/A self _test_basic_auth opener auth_handler Authorization realm http_handler password_manager http://acme.example.com/protected http://acme.example.com/protected N/A test_basic_auth_with_single_quoted_realm N/A N/A self N/A N/A N/A N/A N/A self test_basic_auth quote_char ' N/A test_basic_auth_with_unquoted_realm N/A N/A self N/A N/A N/A opener N/A OpenerDirector N/A password_manager N/A MockPasswordManager N/A auth_handler N/A N/A N/A urllib request HTTPBasicAuthHandler password_manager N/A realm ACME Widget Store N/A http_handler N/A MockHTTPHandler 401 N/A WWW-Authenticate: Basic realm=%s

 realm N/A N/A N/A opener add_handler auth_handler N/A N/A N/A opener add_handler http_handler N/A N/A N/A self assertWarns UserWarning N/A N/A N/A N/A self _test_basic_auth opener auth_handler Authorization realm http_handler password_manager http://acme.example.com/protected http://acme.example.com/protected N/A test_proxy_basic_auth N/A N/A self N/A N/A N/A opener N/A OpenerDirector N/A ph N/A N/A N/A urllib request ProxyHandler N/A dict http proxy.example.com:3128 N/A N/A N/A opener add_handler ph N/A password_manager N/A MockPasswordManager N/A auth_handler N/A N/A N/A urllib request ProxyBasicAuthHandler password_manager N/A realm ACME Networks N/A http_handler N/A MockHTTPHandler 407 N/A Proxy-Authenticate: Basic realm="%s"

 realm N/A N/A N/A opener add_handler auth_handler N/A N/A N/A opener add_handler http_handler N/A N/A N/A self _test_basic_auth opener auth_handler Proxy-authorization realm http_handler password_manager http://acme.example.com:3128/protected proxy.example.com:3128 N/A test_basic_and_digest_auth_handlers N/A N/A self N/A N/A RecordingOpenerDirector N/A OpenerDirector N/A __init__ N/A N/A self N/A N/A N/A N/A N/A OpenerDirector __init__ self N/A N/A self recorded N/A N/A record N/A N/A self info N/A N/A N/A N/A N/A N/A self recorded append info N/A N/A TestDigestAuthHandler N/A N/A N/A urllib request HTTPDigestAuthHandler N/A http_error_401 N/A N/A self N/A args kwds N/A N/A N/A N/A N/A self parent record digest N/A N/A N/A N/A N/A urllib request HTTPDigestAuthHandler http_error_401 self args kwds N/A N/A TestBasicAuthHandler N/A N/A N/A urllib request HTTPBasicAuthHandler N/A http_error_401 N/A N/A self N/A args kwds N/A N/A N/A N/A N/A self parent record basic N/A N/A N/A N/A N/A urllib request HTTPBasicAuthHandler http_error_401 self args kwds N/A N/A N/A opener N/A RecordingOpenerDirector N/A password_manager N/A MockPasswordManager N/A digest_handler N/A TestDigestAuthHandler password_manager N/A basic_handler N/A TestBasicAuthHandler password_manager N/A realm ACME Networks N/A http_handler N/A MockHTTPHandler 401 N/A WWW-Authenticate: Basic realm="%s"

 realm N/A N/A N/A opener add_handler basic_handler N/A N/A N/A opener add_handler digest_handler N/A N/A N/A opener add_handler http_handler N/A N/A N/A self _test_basic_auth opener basic_handler Authorization realm http_handler password_manager http://acme.example.com/protected http://acme.example.com/protected N/A N/A N/A self assertEqual N/A opener recorded N/A N/A digest basic 2 N/A test_unsupported_auth_digest_handler N/A N/A self N/A N/A N/A opener N/A OpenerDirector N/A digest_auth_handler N/A N/A N/A urllib request HTTPDigestAuthHandler None N/A http_handler N/A MockHTTPHandler 401 WWW-Authenticate: Kerberos

 N/A N/A N/A opener add_handler digest_auth_handler N/A N/A N/A opener add_handler http_handler N/A N/A N/A self assertRaises ValueError N/A opener open http://www.example.com N/A test_unsupported_auth_basic_handler N/A N/A self N/A N/A N/A opener N/A OpenerDirector N/A basic_auth_handler N/A N/A N/A urllib request HTTPBasicAuthHandler None N/A http_handler N/A MockHTTPHandler 401 WWW-Authenticate: NTLM

 N/A N/A N/A opener add_handler basic_auth_handler N/A N/A N/A opener add_handler http_handler N/A N/A N/A self assertRaises ValueError N/A opener open http://www.example.com N/A _test_basic_auth N/A N/A self opener auth_handler auth_header realm http_handler password_manager request_url protected_url N/A N/A N/A base64 N/A N/A user password N/A wile coyote N/A N/A N/A auth_handler add_password realm request_url user password N/A N/A N/A self assertEqual realm N/A password_manager realm N/A N/A N/A self assertEqual request_url N/A password_manager url N/A N/A N/A self assertEqual user N/A password_manager user N/A N/A N/A self assertEqual password N/A password_manager password N/A N/A N/A opener open request_url N/A N/A N/A self assertEqual N/A password_manager target_realm realm N/A N/A N/A self assertEqual N/A password_manager target_url protected_url N/A N/A N/A self assertEqual N/A len N/A http_handler requests 2 N/A N/A N/A self assertFalse N/A N/A N/A N/A http_handler requests N/A 0 has_header auth_header N/A userpass N/A bytes N/A %s:%s N/A user password ascii N/A auth_hdr_value N/A Basic  N/A N/A N/A N/A N/A N/A base64 encodebytes userpass strip decode N/A N/A N/A self assertEqual N/A N/A N/A N/A http_handler requests N/A 1 get_header auth_header auth_hdr_value N/A N/A N/A self assertEqual N/A N/A N/A N/A http_handler requests N/A 1 unredirected_hdrs N/A auth_header auth_hdr_value N/A N/A password_manager user N/A password_manager password None N/A N/A N/A http_handler reset N/A N/A N/A opener open request_url N/A N/A N/A self assertEqual N/A len N/A http_handler requests 1 N/A N/A N/A self assertFalse N/A N/A N/A N/A http_handler requests N/A 0 has_header auth_header N/A N/A MiscTests N/A N/A unittest TestCase N/A opener_has_handler N/A N/A self opener handler_class N/A N/A N/A N/A N/A self assertTrue N/A any N/A N/A N/A h __class__ handler_class N/A h N/A opener handlers N/A test_build_opener N/A N/A self N/A N/A MyHTTPHandler N/A N/A N/A urllib request HTTPHandler N/A N/A N/A FooHandler N/A N/A N/A urllib request BaseHandler N/A foo_open N/A N/A self N/A N/A N/A N/A N/A BarHandler N/A N/A N/A urllib request BaseHandler N/A bar_open N/A N/A self N/A N/A N/A N/A N/A N/A build_opener N/A N/A urllib request build_opener N/A o N/A build_opener FooHandler BarHandler N/A N/A N/A self opener_has_handler o FooHandler N/A N/A N/A self opener_has_handler o BarHandler N/A o N/A build_opener FooHandler N/A BarHandler N/A N/A N/A self opener_has_handler o FooHandler N/A N/A N/A self opener_has_handler o BarHandler N/A o N/A build_opener MyHTTPHandler N/A N/A N/A self opener_has_handler o MyHTTPHandler N/A o N/A build_opener N/A N/A N/A self opener_has_handler o N/A N/A urllib request HTTPHandler N/A o N/A build_opener N/A N/A urllib request HTTPHandler N/A N/A N/A self opener_has_handler o N/A N/A urllib request HTTPHandler N/A o N/A build_opener N/A N/A N/A urllib request HTTPHandler N/A N/A N/A self opener_has_handler o N/A N/A urllib request HTTPHandler MyOtherHTTPHandler N/A N/A N/A urllib request HTTPHandler N/A N/A N/A N/A o N/A build_opener MyHTTPHandler MyOtherHTTPHandler N/A N/A N/A self opener_has_handler o MyHTTPHandler N/A N/A N/A self opener_has_handler o MyOtherHTTPHandler N/A test_HTTPError_interface N/A N/A self N/A N/A N/A 
        Issue 13211 reveals that HTTPError didn't implement the URLError
        interface even though HTTPError is a subclass of URLError.
         N/A msg something bad happened N/A url code fp None N/A hdrs Content-Length: 42 N/A err N/A N/A N/A urllib error HTTPError url code msg hdrs fp N/A N/A N/A self assertTrue N/A hasattr err reason N/A N/A N/A self assertEqual N/A err reason something bad happened N/A N/A N/A self assertTrue N/A hasattr err hdrs N/A N/A N/A self assertEqual N/A err hdrs Content-Length: 42 N/A expected_errmsg N/A HTTP Error %s: %s N/A N/A err code N/A err msg N/A N/A N/A self assertEqual N/A str err expected_errmsg N/A N/A RequestTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self get N/A Request http://www.python.org/~jeremy/ N/A N/A self post N/A Request http://www.python.org/~jeremy/ data headers N/A X-Test test N/A test_method N/A N/A self N/A N/A N/A N/A N/A self assertEqual POST N/A N/A N/A self post get_method N/A N/A N/A self assertEqual GET N/A N/A N/A self get get_method N/A test_data N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A N/A self get data N/A N/A N/A self assertEqual GET N/A N/A N/A self get get_method N/A N/A N/A self get data spam N/A N/A N/A self assertTrue N/A N/A self get data N/A N/A N/A self assertEqual POST N/A N/A N/A self get get_method N/A test_get_full_url N/A N/A self N/A N/A N/A N/A N/A self assertEqual http://www.python.org/~jeremy/ N/A N/A N/A self get get_full_url N/A test_selector N/A N/A self N/A N/A N/A N/A N/A self assertEqual /~jeremy/ N/A N/A self get selector N/A req N/A Request http://www.python.org/ N/A N/A N/A self assertEqual / N/A req selector N/A test_get_type N/A N/A self N/A N/A N/A N/A N/A self assertEqual http N/A N/A self get type N/A test_get_host N/A N/A self N/A N/A N/A N/A N/A self assertEqual www.python.org N/A N/A self get host N/A test_get_host_unquote N/A N/A self N/A N/A N/A req N/A Request http://www.%70ython.org/ N/A N/A N/A self assertEqual www.python.org N/A req host N/A test_proxy N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A N/A N/A self get has_proxy N/A N/A N/A N/A self get set_proxy www.perl.org http N/A N/A N/A self assertTrue N/A N/A N/A self get has_proxy N/A N/A N/A self assertEqual www.python.org N/A N/A self get origin_req_host N/A N/A N/A self assertEqual www.perl.org N/A N/A self get host N/A test_wrapped_url N/A N/A self N/A N/A N/A req N/A Request <URL:http://www.python.org> N/A N/A N/A self assertEqual www.python.org N/A req host N/A test_url_fragment N/A N/A self N/A N/A N/A req N/A Request http://www.python.org/?qs=query#fragment=true N/A N/A N/A self assertEqual /?qs=query N/A req selector N/A req N/A Request http://www.python.org/#fun=true N/A N/A N/A self assertEqual / N/A req selector N/A url http://docs.python.org/library/urllib2.html#OK N/A req N/A Request url N/A N/A N/A self assertEqual N/A N/A req get_full_url url N/A test_HTTPError_interface_call N/A N/A self N/A N/A N/A 
        Issue 15701 - HTTPError interface has info method available from URLError
         N/A err N/A N/A N/A urllib request HTTPError msg something bad happened url None code None hdrs Content-Length:42 fp None N/A N/A N/A self assertTrue N/A hasattr err reason N/A N/A hasattr err reason N/A N/A hasattr err info N/A N/A callable N/A err info N/A N/A N/A N/A N/A err info N/A N/A N/A AttributeError N/A N/A N/A N/A self fail err.info call failed. N/A N/A N/A self assertEqual N/A N/A err info Content-Length:42 N/A N/A test_main N/A N/A verbose N/A None N/A test test_urllib2 N/A N/A N/A support run_doctest test_urllib2 verbose N/A N/A N/A support run_doctest N/A urllib request verbose N/A tests N/A TrivialTests OpenerDirectorTests HandlerTests MiscTests RequestTests RequestHdrsTests N/A N/A N/A support run_unittest tests N/A N/A N/A __name__ __main__ N/A N/A N/A test_main verbose True