Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias TryExcept body ImportFrom alias alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases NameLoad body Pass decorator_list Assign NameStore TupleLoad Str Str Str Str Str Str Str Assign NameStore BinOpPow Num Num Assign NameStore BinOpPow Num Num ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list Assign NameStore Dict FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr BinOpAdd Num AttributeLoad NameLoad attr decorator_list Assign SubscriptStore NameLoad Index Str NameLoad FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr decorator_list Assign SubscriptStore NameLoad Index Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Str If CompareIsNot AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr orelse If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Str If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Return Call AttributeLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Slice Num attr orelse If CompareIn Str NameLoad body Return Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr orelse If UnaryOpNot NameLoad body Return NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num attr Str Index Num If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Return Call NameLoad NameLoad Num orelse Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Return NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If BoolOpOr CompareNotEq NameLoad AttributeLoad NameLoad attr CompareNotEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Assign NameStore IfExp NameLoad Num Num Assign NameStore BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpOr CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr If BoolOpAnd NameLoad UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad NameLoad attr Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryExcept body Expr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str UnaryOpNot Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BoolOpAnd SubscriptLoad NameLoad Index Str CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Str body Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return orelse If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Assign NameStore NameLoad Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad Return handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return Assign NameStore IfExp NameLoad Call NameLoad NameLoad Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Str If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Return Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad NameLoad attr orelse If CompareIn Str NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str Return Assign AttributeStore NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Return If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad Return Assign AttributeStore NameLoad attr Call SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad BinOpMod Str AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Return Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignSub AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot CompareIs AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If NameLoad body AugAssignAdd AttributeStore NameLoad attr BinOpAdd NameLoad NameLoad Return Assign NameStore Call NameLoad AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse If UnaryOpNot Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad orelse Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse AugAssignAdd NameStore Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AugAssignSub AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice Num If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Num If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameStore NameLoad Assign AttributeStore NameLoad attr NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr Num If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr Num If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body If UnaryOpNot NameLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Dict Str Str NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body AugAssignAdd SubscriptStore NameLoad Index Str BinOpMod Str NameLoad If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd UnaryOpNot CompareIn Str NameLoad UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad orelse If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Str orelse If BoolOpAnd UnaryOpNot CompareIn Str NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad BoolOpOr NameLoad Dict NameLoad NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign NameStore Num For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Num Num AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr BoolOpOr NameLoad Dict NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse If UnaryOpNot NameLoad body Assign NameStore ListLoad Assign NameStore Num orelse Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign NameStore NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam 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 NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr If CompareEq AttributeLoad NameLoad attr Str body Return CompareEq NameLoad Str Return CompareNotEq NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Index Num If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return If NameLoad body Assign NameStore BoolOpOr AttributeLoad NameLoad attr Str Assign NameStore Call Call AttributeLoad NameLoad attr NameLoad keyword Str orelse Assign NameStore NameLoad Assign NameStore Num While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad If NameLoad body Expr Yield NameLoad Return Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad body If NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad For NameStore NameLoad body Expr Yield NameLoad If CompareIsNot NameLoad NameLoad body Expr Yield NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Raise NameLoad If BoolOpAnd CompareEq NameLoad Num UnaryOpNot CompareIn NameLoad TupleLoad Str Str body Raise NameLoad orelse If CompareIn NameLoad TupleLoad Num Num body Assign NameStore Str Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad AugAssignSub AttributeStore NameLoad attr Num Expr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad NameLoad attr Return handlers ExceptHandler type NameLoad body Return NameLoad decorator_list Assign NameStore NameStore NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Return NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Num If UnaryOpNot CompareIn Call AttributeLoad NameLoad attr TupleLoad Str Str body Return NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Return NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
``pants.http.client`` implements a basic asynchronous HTTP client on top of
Pants with an API modelled after that of the wonderful
`requests <http://www.python-requests.org/>`_ library. The client supports
keep-alive and SSL for connections, domain verification for SSL certificates,
basic WWW authentication, sessions with persistent cookies, automatic redirect
handling, automatic decompression of responses, connection timeouts, file
uploads, and saving large responses to temporary files to decrease
memory usage.

Logic is implemented using a series of request handlers.

Making Requests
===============

It's simple and easy to make requests, and it only requires that you have an
instance of :class:`HTTPClient` ready.

.. code-block:: python

    from pants.http import HTTPClient
    client = HTTPClient()

Like with `requests <http://www.python-requests.org/>`_, there are simple
methods for making requests with the different HTTP methods. For now, let's get
information for a bunch of Pants' commits on GitHub.

.. code-block:: python

    client.get("https://api.github.com/repos/ecdavis/pants/commits")

You'll notice that this is very similar to making a request with requests.
However, we do not get a response objects. Actually, calling
:meth:`HTTPClient.get` returns an instance of :class:`HTTPRequest` rather than
anything to do with a response, but we'll get to that later.

The Pants HTTP client is asynchronous, so to get your response, you need a
response handler. There are several ways to set one up, but the easiest way is
to pass it to your :class:`HTTPClient` during initialization.

.. code-block:: python

    def handle_response(response):
        if response.status_code != 200:
            print "There was a problem!"

    client = HTTPClient(handle_response)

``response`` in this situation is an instance of :class:`HTTPResponse`, and
it has an API modelled after the response objects that requests would give you.


Making *Useful* Requests
------------------------

Basic GET requests are nice, but you'll often want to send data to the server.
For query parameters you can use the optional *params* argument of the various
request methods, like so::

    data = {'since': '2013-11-01'}
    client.get("https://api.github.com/repos/ecdavis/pants/commits", params=data)

With that, you could eventually take your response and get the correct URL.

.. code-block:: python

    >>> response.url
    'https://api.github.com/repos/ecdavis/pants/commits?since=2013-11-01'

You can also post data to the server, either as a pre-made string, or as a
dictionary of values to be encoded.

.. code-block:: python

    client.post("http://httpbin.org/post", data="Hello World!")
    client.post("http://httpbin.org/post", data={"greeting": "Hello"})

By default, the ``Content-Type`` header will be set to
``application/x-www-form-urlencoded`` when you provide data for the request
body. If any files are present, it will instead default to
``multipart/form-data`` to transmit those. You can also manually set the
header when making your request.

You set files via the files parameter, which expects a dictionary of form field
names and file objects. You can also provide filenames if desired.

.. code-block:: python

    client.post("http://httpbin.org/post", files={'file': open("test.txt")})
    client.post("http://httpbin.org/post", files={'file': ("test.txt", open("test.txt"))})

You can, of course, use data and files together. Please note that, if you *do*
use them together, you'll need to supply data as a dictionary. Data strings are
not supported.

As many of you have probably noticed, this is *very* similar to using
`requests <http://www.python-requests.org/>`_. The Pants API was implemented
this way to make it easier to switch between the two libraries.


Reading Responses
=================

Making your request is only half the battle, of course. You have to read your
response when it comes in. And, for that, you start with the status code.

.. code-block:: python

    >>> response.status_code
    200
    >>> response.status_text
    'OK'
    >>> response.status
    '200 OK'

Unlike with requests, there is no ``raise_for_status()`` method available.
Raising a strange exception in an asynchronous framework that your code isn't
designed to catch just wouldn't work.


Headers
-------

HTTP headers are case-insensitive, and so the headers are stored in a special
case-insensitive dictionary made available as :attr:`HTTPResponse.headers`.

.. code-block:: python

    >>> response.headers
    HTTPHeaders({
        'Content-Length': 986,
        'Server': 'gunicorn/0.17.4',
        'Connection': 'keep-alive',
        'Date': 'Wed, 06 Nov 2013 05:58:53 GMT',
        'Access-Control-Allow-Origin': '*',
        'Content-Type': 'application/json'
        })
    >>> response.headers['content-length']
    986

Nothing special here.


Cookies
-------

Cookies are a weak point of Pants' HTTP client at this time. Cookies are stored
in instances of :class:`Cookie.SimpleCookie`, which doesn't handle multiple
domains. Pants has logic to prevent sending cookies to the wrong domains, but
ideally it should move to using a better cookie storage structure in future
versions that handles multiple domains elegantly.

.. code-block:: python

    >>> response.cookies['cake']
    <Morsel: cake='lie'>
    >>> response.cookies['cake'].value
    'lie'

As you can see, Pants does not yet handle cookies as well as requests. Setting
cookies is a bit better.

.. code-block:: python

    client.get("http://httpbin.org/cookies", cookies={"cake": "lie"})


Redirects
---------

The HTTP client will follow redirects automatically. When this happens, the
redirecting responses are stored in the :attr:`HTTPResponse.history` list.

.. code-block:: python

    >>> response.history
    [<HTTPResponse [301 Moved Permanently] at 0x2C988F0>]

You can limit the number of times the HTTP client will automatically follow
redirects with the ``max_redirects`` argument.

.. code-block:: python

    client.get("http://github.com/", max_redirects=0)

By default, Pants will follow up to 10 redirects.


 N/A codecs N/A Cookie N/A json N/A os N/A ssl N/A tempfile N/A urllib N/A urlparse N/A zlib datetime datetime pants.stream Stream pants.engine Engine pants.http.auth BasicAuth pants.http.utils CRLF date DOUBLE_CRLF encode_multipart log read_headers USER_AGENT N/A N/A backports.ssl_match_hostname match_hostname CertificateError N/A N/A N/A ImportError N/A N/A match_hostname None CertificateError N/A Exception N/A N/A N/A N/A __all__ N/A HTTPClientException RequestTimedOut MalformedResponse RequestClosed HTTPClient Session HTTPResponse N/A CHUNK_SIZE N/A 2 16 N/A MAX_MEMORY_SIZE N/A 2 20 HTTPClientException N/A Exception N/A N/A 
    The base exception for all the exceptions used by the HTTP client, aside
    from :class:`CertificateError`.
     N/A N/A RequestTimedOut N/A HTTPClientException N/A N/A  The exception returned when a connection times out.  N/A N/A MalformedResponse N/A HTTPClientException N/A N/A  The exception returned when the response is malformed in some way.  N/A N/A RequestClosed N/A HTTPClientException N/A N/A 
    The exception returned when the connection closes before the entire
    request has been downloaded.
     N/A N/A N/A CONTENT_ENCODING N/A encoding_gzip N/A N/A N/A N/A N/A N/A N/A zlib decompressobj N/A 16 N/A zlib MAX_WBITS N/A N/A N/A CONTENT_ENCODING N/A gzip encoding_gzip encoding_deflate N/A N/A N/A N/A N/A N/A N/A zlib decompressobj N/A N/A zlib MAX_WBITS N/A N/A N/A CONTENT_ENCODING N/A deflate encoding_deflate _get_cookies N/A N/A request N/A N/A N/A  Build a SimpleCookie with all the necessary cookies.  N/A cookies N/A N/A Cookie SimpleCookie N/A N/A request cookies N/A N/A key N/A request cookies N/A N/A N/A N/A cookies load N/A N/A N/A N/A request cookies N/A key output None N/A N/A N/A request cookies N/A N/A request session cookies N/A N/A N/A _load_cookies cookies N/A request session N/A N/A N/A N/A request session parent N/A N/A N/A _load_cookies cookies N/A N/A request session parent N/A cookies N/A _load_cookies N/A N/A cookies session N/A N/A N/A N/A session cookies N/A N/A key N/A session cookies N/A N/A N/A N/A key cookies N/A N/A N/A N/A cookies load N/A N/A N/A N/A session cookies N/A key output None N/A N/A session parent N/A N/A N/A _load_cookies cookies N/A session parent N/A _hostname N/A N/A parts N/A N/A N/A netloc N/A N/A N/A N/A parts netloc split @ N/A -1 N/A N/A N/A [ netloc N/A ] netloc N/A N/A N/A N/A N/A N/A N/A N/A netloc split ] N/A 0 N/A 1 lower N/A N/A N/A : netloc N/A N/A N/A N/A N/A N/A N/A netloc split : N/A 0 lower N/A N/A N/A netloc N/A N/A None N/A N/A N/A N/A netloc lower N/A _port N/A N/A parts N/A N/A N/A netloc N/A N/A N/A N/A N/A N/A N/A parts netloc split @ N/A -1 split ] N/A -1 N/A N/A : netloc N/A N/A port N/A N/A N/A netloc split : N/A 1 N/A N/A int port 10 N/A N/A None N/A _HTTPStream N/A Stream N/A N/A 
    The _HTTPStream is a basic Pants client with an extra function for
    determining if it can connect to a given host without being destroyed and
    recreated. This is useful when dealing with proxies.

    It also automatically connects to the provided HTTPClient.
     N/A _host None __init__ N/A N/A self client N/A args kwargs N/A N/A N/A N/A Stream __init__ self args kwargs N/A N/A self client client N/A N/A self need_full_url False N/A can_fetch N/A N/A self host is_secure N/A N/A N/A 
        Returns True if this stream can connect to the provided host (a string
        of ``"host:port"``) with HTTP (or HTTPS if is_secure is True), or
        False otherwise.
         N/A N/A N/A self connected N/A N/A True N/A N/A N/A self ssl_enabled is_secure N/A N/A False N/A N/A isinstance N/A self _host basestring N/A N/A N/A N/A self _host host N/A N/A False N/A N/A N/A host port N/A N/A host split : N/A port N/A int port N/A N/A N/A host N/A self _host N/A port N/A N/A self remote_address N/A -1 N/A N/A False N/A True N/A connect N/A N/A self addr N/A N/A N/A N/A isinstance addr basestring N/A N/A N/A self _host addr N/A N/A N/A self _host N/A %s:%d N/A N/A addr N/A 0 N/A addr N/A -1 N/A N/A self connected N/A N/A N/A N/A self _safely_call N/A self on_connect N/A N/A N/A N/A Stream connect self addr N/A on_connect N/A N/A self N/A N/A N/A N/A N/A N/A self client _on_connect N/A on_close N/A N/A self N/A N/A N/A N/A N/A N/A self client _on_close N/A on_connect_error N/A N/A self err N/A N/A N/A N/A N/A N/A self client _on_connect_error err N/A on_read_error N/A N/A self err N/A N/A N/A N/A N/A N/A self client _do_error err N/A on_overflow_error N/A N/A self err N/A N/A N/A N/A N/A N/A self client _do_error err N/A N/A HTTPClient N/A object N/A N/A 
    An easy to use, asynchronous HTTP client implementing HTTP 1.1. All
    arguments passed to HTTPClient are used to initialize the default session.
    See :class:`Session` for more details. The following is a basic example of
    using an HTTPClient to fetch a remote resource::

        from pants.http import HTTPClient
        from pants.engine import Engine

        def response_handler(response):
            Engine.instance().stop()
            print response.content

        client = HTTPClient(response_handler)
        client.get("http://httpbin.org/ip")
        Engine.instance().start()

    Groups of requests can have their behavior customized with the use of
    sessions::

        from pants.http import HTTPClient
        from pants.engine import Engine

        def response_handler(response):
            Engine.instance().stop()
            print response.content

        def other_handler(response):
            print response.content

        client = HTTPClient(response_handler)
        client.get("http://httpbin.org/cookies")

        with client.session(cookies={'pie':'yummy'}):
            client.get("http://httpbin.org/cookies")

        Engine.instance().start()

     __init__ N/A N/A self N/A args kwargs N/A N/A  Initialize the HTTPClient and start the first session.  N/A N/A engine kwargs N/A N/A N/A self engine N/A N/A kwargs pop engine N/A N/A N/A self engine N/A N/A Engine instance N/A N/A self _stream None N/A N/A self _processing None N/A N/A self _requests N/A N/A N/A self _sessions N/A N/A N/A self _ssl_options None N/A N/A self _reading_forever False N/A N/A self _want_close False N/A N/A self _no_process False N/A ses N/A Session self args kwargs N/A N/A N/A N/A self _sessions append ses N/A on_response N/A N/A self response N/A N/A N/A 
        Placeholder. Called when a complete response has been received.

        =========  ============
        Argument   Description
        =========  ============
        response   A :class:`HTTPResponse` instance with information about the received response.
        =========  ============
         N/A N/A on_headers N/A N/A self response N/A N/A N/A 
        Placeholder. Called when we've received headers for a request. You can
        abort a request at this time by returning False from this function. It
        *must* be False, and not simply a false-like value, such as an empty
        string.

        .. note::

            This function isn't called for HTTP ``HEAD`` requests.

        =========  ============
        Argument   Description
        =========  ============
        response   A :class:`HTTPResponse` instance with information about the received response.
        =========  ============
         N/A N/A on_progress N/A N/A self response received total N/A N/A N/A 
        Placeholder. Called when progress is made in downloading a response.

        =========  ============
        Argument   Description
        =========  ============
        response   A :class:`HTTPResponse` instance with information about the response.
        received   The number of bytes received thus far.
        total      The total number of bytes expected for the response. This will be ``0`` if we don't know how much to expect.
        =========  ============
         N/A N/A on_ssl_error N/A N/A self response certificate exception N/A N/A N/A 
        Placeholder. Called when the remote server's SSL certificate failed
        initial verification. If this method returns True, the certificate will
        be accepted, otherwise, the connection will be closed and
        :func:`on_error` will be called.

        ============  ============
        Argument      Description
        ============  ============
        response      A :class:`HTTPResponse` instance with information about the response. Notably, with the ``host`` to expect.
        certificate   A dictionary representing the certificate that wasn't automatically verified.
        exception     A CertificateError instance with information about the error that occurred.
        ============  ============
         N/A False N/A on_error N/A N/A self response exception N/A N/A N/A 
        Placeholder. Called when an error occurs.

        ==========  ============
        Argument    Description
        ==========  ============
        exception   An Exception instance with information about the error that occurred.
        ==========  ============
         N/A N/A session N/A N/A self N/A args kwargs N/A N/A  Create a new session. See :class:`Session` for details.  N/A N/A Session self args kwargs N/A request N/A N/A self N/A args kwargs N/A N/A 
        Begin a request. Missing parameters will be taken from the active
        session when available. See :func:`Session.request` for more details.
         N/A N/A N/A N/A N/A self _sessions N/A -1 request args kwargs N/A delete N/A N/A self url N/A kwargs N/A N/A  Begin a DELETE request. See :func:`request` for more details.  N/A N/A N/A self request DELETE url kwargs N/A get N/A N/A self url params N/A None kwargs N/A N/A  Begin a GET request. See :func:`request` for more details.  N/A N/A N/A self request GET url params params kwargs N/A head N/A N/A self url params N/A None kwargs N/A N/A  Begin a HEAD request. See :func:`request` for more details.  N/A N/A N/A self request HEAD url params params kwargs N/A options N/A N/A self url N/A kwargs N/A N/A  Begin an OPTIONS request. See :func:`request` for more details.  N/A N/A N/A self request OPTIONS url kwargs N/A patch N/A N/A self url data N/A None kwargs N/A N/A  Begin a PATCH request. See :func:`request` for more details.  N/A N/A N/A self request PATCH url data data kwargs N/A post N/A N/A self url data files N/A None None kwargs N/A N/A  Begin a POST request. See :func:`request` for more details.  N/A N/A N/A self request POST url data data files files kwargs N/A put N/A N/A self url data N/A None kwargs N/A N/A  Begin a PUT request. See :func:`request` for more details.  N/A N/A N/A self request PUT url data data kwargs N/A trace N/A N/A self url N/A kwargs N/A N/A  Begin a TRACE request. See :func:`request` for more details.  N/A N/A N/A self request TRACE url kwargs N/A _safely_call N/A N/A self thing_to_call N/A args kwargs N/A N/A 
        Safely execute a callable.

        The callable is wrapped in a try block and executed. If an
        exception is raised it is logged.

        ==============  ============
        Argument        Description
        ==============  ============
        thing_to_call   The callable to execute.
        *args           The positional arguments to be passed to the callable.
        **kwargs        The keyword arguments to be passed to the callable.
        ==============  ============
         N/A N/A N/A N/A thing_to_call args kwargs N/A N/A N/A Exception N/A N/A N/A N/A log exception N/A Exception raised in callback on %r. self N/A _process N/A N/A self N/A N/A N/A  Send the first request on the stack.  N/A N/A N/A self _requests N/A N/A N/A self _stream N/A N/A N/A self _want_close True N/A N/A self _no_process True N/A N/A N/A N/A self _stream close False N/A N/A self _stream None N/A N/A self _processing False N/A N/A N/A self _processing True N/A request N/A N/A self _requests N/A 0 N/A N/A N/A request response N/A N/A N/A HTTPResponse request N/A N/A N/A request auth N/A N/A isinstance N/A request auth N/A list tuple N/A N/A request N/A N/A request auth request N/A port N/A _port N/A request url N/A is_secure N/A N/A N/A request url scheme https N/A N/A port N/A N/A port N/A is_secure 443 80 N/A host N/A %s:%d N/A N/A _hostname N/A request url port N/A N/A self _stream N/A N/A N/A N/A N/A self _stream connected N/A N/A N/A self _stream None N/A N/A N/A N/A N/A self _ssl_options N/A N/A request session ssl_options N/A N/A N/A N/A self _stream can_fetch host is_secure N/A N/A N/A N/A log debug N/A Closing unusable stream for %r. self N/A N/A self _want_close True N/A N/A self _no_process False N/A N/A N/A N/A self _stream close False N/A N/A N/A N/A log debug N/A Sending HTTP request %r. request N/A N/A N/A self _reset_timer N/A N/A N/A self _stream N/A N/A N/A self _stream N/A _HTTPStream self engine N/A self engine N/A N/A is_secure N/A N/A N/A self _stream ssl_enabled N/A N/A N/A self _ssl_options N/A N/A request session ssl_options N/A N/A N/A N/A self _stream startSSL N/A N/A self _ssl_options N/A N/A N/A N/A N/A self _stream connect N/A N/A _hostname N/A request url port N/A _timed_out N/A N/A self request N/A N/A N/A  Called when a request times out.  N/A N/A N/A request N/A self _requests N/A N/A N/A N/A N/A log debug N/A HTTP request %r timed out. request N/A N/A N/A N/A self _requests remove request N/A N/A N/A N/A request session on_error N/A request response N/A RequestTimedOut N/A N/A self _stream N/A N/A N/A self _want_close True N/A N/A self _no_process True N/A N/A N/A N/A self _stream close False N/A N/A self _stream None N/A N/A N/A self _process N/A _reset_timer N/A N/A self N/A N/A N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A N/A request _timeout_timer N/A N/A N/A N/A request _timeout_timer N/A N/A request _timeout_timer N/A N/A N/A self engine defer N/A request timeout N/A self _timed_out request N/A _on_connect N/A N/A self N/A N/A N/A  The Stream connected, so send the request.  N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A N/A N/A self _reset_timer N/A N/A N/A N/A N/A request url scheme https N/A N/A request session verify_ssl N/A N/A cert N/A N/A N/A N/A self _stream _socket getpeercert N/A N/A N/A N/A match_hostname cert N/A _hostname N/A request url N/A N/A N/A CertificateError N/A err N/A N/A N/A N/A N/A self _safely_call N/A N/A request session on_ssl_error N/A request response cert err N/A N/A N/A N/A self _do_error err N/A N/A N/A N/A self _stream need_full_url N/A N/A path N/A %s://%s%s N/A N/A N/A request url scheme N/A N/A request url netloc N/A request path N/A N/A path N/A request path N/A N/A N/A N/A self _stream write N/A %s %s HTTP/1.1%s N/A N/A request method path CRLF N/A N/A key val N/A N/A N/A request headers iteritems N/A N/A N/A N/A N/A self _stream write N/A %s: %s%s N/A key val CRLF N/A cookies N/A _get_cookies request N/A cookies N/A N/A key cookies N/A N/A morsel N/A cookies N/A key N/A N/A N/A N/A N/A N/A request path startswith N/A morsel N/A path N/A N/A N/A N/A N/A N/A _hostname N/A request url lower endswith N/A N/A N/A morsel N/A domain lower N/A N/A morsel N/A secure N/A N/A N/A request url scheme https N/A N/A N/A N/A N/A N/A self _stream write N/A N/A N/A morsel output None Cookie: CRLF N/A N/A N/A N/A self _stream write CRLF N/A N/A request body N/A N/A item N/A request body N/A N/A N/A isinstance item basestring N/A N/A N/A N/A N/A self _stream write item N/A N/A N/A N/A N/A self _stream write_file item N/A N/A N/A self _stream on_read N/A self _read_headers N/A N/A N/A self _stream read_delimiter DOUBLE_CRLF N/A _on_connect_error N/A N/A self err N/A N/A N/A  The Stream had an exception. Pass it along.  N/A N/A N/A self _requests N/A N/A N/A request N/A N/A N/A self _requests pop 0 N/A N/A request _timeout_timer N/A N/A N/A N/A request _timeout_timer N/A N/A N/A self _safely_call N/A N/A request session on_error N/A request response err N/A N/A self _stream N/A N/A N/A self _want_close True N/A N/A self _no_process True N/A N/A N/A N/A self _stream close False N/A N/A self _stream None N/A N/A N/A self _process N/A _on_close N/A N/A self N/A N/A N/A 
        If we weren't expecting the stream to close, it's an error, otherwise,
        just process our requests.
         N/A N/A self _reading_forever N/A N/A N/A self _reading_forever False N/A N/A self _requests N/A N/A request N/A N/A self _requests N/A 0 N/A response N/A request response N/A N/A response _decoder N/A N/A N/A N/A response _receive N/A N/A N/A response _decoder flush N/A N/A N/A response _receive N/A N/A response _decoder unused_data N/A N/A response _decoder None N/A N/A self _want_close False N/A N/A self _no_process False N/A N/A N/A self _on_response N/A N/A N/A N/A N/A self _want_close N/A N/A N/A self _want_close False N/A N/A self _requests N/A N/A request N/A N/A self _requests N/A 0 N/A N/A self _no_process False N/A N/A N/A self _do_error N/A RequestClosed The server closed the connection. N/A N/A N/A self _stream None N/A N/A self _no_process N/A N/A N/A self _no_process False N/A N/A N/A N/A self _process N/A _do_error N/A N/A self err N/A N/A N/A 
        There was some kind of exception. Close the stream, report it, and then
        keep processing.
         N/A N/A self _want_close True N/A N/A self _no_process True N/A N/A N/A N/A self _stream close False N/A N/A self _stream None N/A N/A N/A self _requests N/A N/A N/A request N/A N/A N/A self _requests pop 0 N/A N/A request _timeout_timer N/A N/A N/A N/A request _timeout_timer N/A N/A N/A self _safely_call N/A N/A request session on_error N/A request response err N/A N/A N/A self _process N/A _read_headers N/A N/A self data N/A N/A N/A 
        Read the headers of an HTTP response from the socket into the current
        HTTPResponse object, and prepare to read the body. Or, if necessary,
        follow a redirect.
         N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A response N/A request response N/A N/A N/A self _reset_timer N/A ind N/A N/A data find CRLF N/A N/A ind -1 N/A N/A initial_line data N/A data N/A N/A initial_line N/A data N/A ind N/A data N/A data N/A N/A ind 2 N/A N/A N/A N/A http_version status status_text N/A N/A initial_line split 2 N/A status N/A int status N/A N/A N/A N/A http_version startswith HTTP/ N/A N/A N/A N/A self _do_error N/A MalformedResponse N/A Invalid HTTP protocol version %r. http_version N/A N/A N/A N/A ValueError N/A N/A N/A N/A self _do_error N/A MalformedResponse Invalid status line. N/A N/A headers N/A data N/A read_headers data N/A N/A N/A response http_version http_version N/A N/A response status_code status N/A N/A response status_text status_text N/A N/A response headers headers N/A N/A Set-Cookie headers N/A N/A N/A N/A response cookies N/A N/A N/A request cookies N/A N/A Cookie SimpleCookie N/A N/A response cookies N/A N/A request session cookies N/A request cookies N/A cookies N/A headers N/A Set-Cookie N/A N/A N/A isinstance cookies list N/A N/A cookies N/A cookies N/A val cookies N/A N/A val_jar N/A N/A Cookie SimpleCookie N/A N/A N/A val_jar load val N/A key val_jar N/A N/A morsel N/A val_jar N/A key N/A N/A N/A morsel N/A domain N/A N/A N/A morsel N/A domain N/A _hostname N/A request url N/A N/A N/A N/A response cookies load N/A N/A morsel output None N/A N/A N/A request method HEAD N/A N/A N/A N/A self _on_response N/A N/A continue_request N/A N/A self _safely_call N/A N/A request session on_headers response N/A N/A continue_request False N/A N/A N/A N/A N/A self _requests pop 0 N/A N/A self _want_close True N/A N/A self _no_process False N/A N/A N/A N/A self _stream close False N/A N/A N/A Content-Length headers N/A N/A N/A response length N/A int N/A headers N/A Content-Length N/A N/A response remaining N/A response length N/A N/A N/A response remaining N/A N/A N/A N/A self _on_response N/A N/A N/A N/A self _stream on_read N/A self _read_body N/A N/A N/A self _stream read_delimiter N/A min CHUNK_SIZE N/A response remaining N/A N/A N/A Transfer-Encoding headers N/A N/A N/A N/A headers N/A Transfer-Encoding chunked N/A N/A N/A N/A self _do_error N/A MalformedResponse N/A Unable to handle Transfer-Encoding %r. N/A headers N/A Transfer-Encoding N/A N/A N/A response length 0 N/A N/A N/A self _stream on_read N/A self _read_chunk_head N/A N/A N/A self _stream read_delimiter CRLF N/A N/A N/A N/A response _keep_alive N/A N/A N/A response length 0 N/A N/A response remaining 0 N/A N/A self _reading_forever True N/A N/A N/A self _stream on_read N/A self _read_forever N/A N/A N/A self _stream read_delimiter None N/A N/A N/A N/A self _on_response N/A N/A N/A Content-Encoding headers N/A N/A encoding N/A headers N/A Content-Encoding N/A N/A N/A encoding CONTENT_ENCODING N/A N/A N/A N/A self _do_error N/A MalformedResponse N/A Unable to handle Content-Encoding %r. encoding N/A N/A N/A response _decoder N/A N/A CONTENT_ENCODING N/A encoding N/A _on_response N/A N/A self N/A N/A N/A 
        A response has been completed. Send it on through.
         N/A N/A N/A self _requests N/A N/A N/A request N/A N/A N/A self _requests pop 0 N/A response N/A request response N/A N/A N/A response _keep_alive N/A N/A N/A self _want_close True N/A N/A self _no_process True N/A N/A N/A N/A self _stream close False N/A N/A self _stream None N/A N/A request _timeout_timer N/A N/A N/A N/A request _timeout_timer N/A handler N/A getattr response N/A handle_%d N/A response status_code None N/A handler N/A N/A response N/A N/A self _safely_call handler self N/A N/A response N/A N/A N/A N/A N/A self _safely_call N/A N/A request session on_response response N/A N/A N/A self _process N/A _read_forever N/A N/A self data N/A N/A N/A 
        Read until the connection closes.
         N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A response N/A request response N/A N/A N/A self _reset_timer N/A N/A response length N/A len data N/A N/A response _decoder N/A N/A data N/A N/A N/A response _decoder decompress data N/A N/A N/A response _receive data N/A N/A N/A self _safely_call N/A N/A request session on_progress response N/A response length 0 N/A _read_body N/A N/A self data N/A N/A N/A 
        Add the data we received to the response body, doing any necessary
        decompression and character set nonsense.
         N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A response N/A request response N/A N/A N/A self _reset_timer N/A N/A response remaining N/A len data N/A N/A N/A self _stream read_delimiter N/A min CHUNK_SIZE N/A response remaining N/A finished N/A N/A N/A response remaining N/A N/A N/A response remaining False N/A N/A response _decoder N/A N/A data N/A N/A N/A response _decoder decompress data N/A finished N/A N/A data N/A N/A N/A response _decoder flush N/A data N/A N/A response _decoder unused_data N/A N/A response _decoder None N/A N/A N/A response _receive data N/A N/A N/A self _safely_call N/A N/A request session on_progress response N/A N/A response length N/A response remaining N/A response length N/A finished N/A N/A N/A N/A self _on_response N/A _read_additional_headers N/A N/A self data N/A N/A N/A  Read additional headers for the response.  N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A response N/A request response N/A N/A N/A self _reset_timer N/A data N/A N/A N/A response _additional_headers N/A data CRLF N/A N/A headers N/A read_headers N/A response _additional_headers N/A N/A response _additional_headers N/A N/A key val N/A N/A headers iteritems N/A N/A N/A N/A key N/A response headers N/A N/A N/A N/A response headers N/A key val N/A N/A N/A N/A isinstance N/A N/A response headers N/A key list N/A N/A N/A N/A response headers N/A key N/A N/A N/A response headers N/A key N/A N/A isinstance val N/A tuple list N/A N/A N/A N/A N/A N/A response headers N/A key extend val N/A N/A N/A N/A N/A N/A response headers N/A key append val N/A N/A N/A self _on_response N/A _read_chunk_head N/A N/A self data N/A N/A N/A  Read a chunk header.  N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A response N/A request response N/A N/A N/A self _reset_timer N/A N/A ; data N/A N/A N/A data ext N/A N/A data split ; 1 N/A length N/A int N/A N/A data strip 16 N/A N/A length N/A N/A N/A response _decoder N/A N/A N/A N/A response _receive N/A N/A N/A response _decoder flush N/A N/A N/A response _receive N/A N/A response _decoder unused_data N/A N/A response _decoder None N/A N/A N/A self _stream on_read N/A self _read_additional_headers N/A N/A response _additional_headers N/A N/A N/A self _stream read_delimiter CRLF N/A N/A length 2 N/A N/A N/A self _stream on_read N/A self _read_chunk_body N/A N/A response remaining length N/A N/A N/A self _stream read_delimiter N/A min CHUNK_SIZE length N/A _read_chunk_body N/A N/A self data N/A N/A N/A  Read a chunk body.  N/A N/A N/A self _requests N/A N/A N/A request N/A N/A self _requests N/A 0 N/A response N/A request response N/A N/A N/A self _reset_timer N/A bytes N/A len data N/A N/A response remaining bytes N/A N/A response length bytes N/A N/A N/A self _stream read_delimiter N/A min CHUNK_SIZE N/A response remaining N/A data N/A data N/A -2 N/A N/A response _decoder N/A N/A data N/A N/A N/A response _decoder decompress data N/A N/A N/A response _receive data N/A N/A N/A self _safely_call N/A N/A request session on_progress response N/A response length 0 N/A N/A N/A response remaining N/A N/A N/A N/A self _stream on_read N/A self _read_chunk_head N/A N/A N/A self _stream read_delimiter CRLF N/A N/A Session N/A object N/A N/A 
    The Session class is the heart of the HTTP client, making it easy to share
    state between multiple requests, and enabling the use of ``with`` syntax.
    They're responsible for determining everything about a request before
    handing it back to :class:`HTTPClient` to be executed.

    ===============  ==========  ============
    Argument         Default     Description
    ===============  ==========  ============
    client                       The :class:`HTTPClient` instance this Session is associated with.
    on_response                  *Optional.* A callable that will handle any received responses, rather than the HTTPClient's own :func:`on_response` method.
    on_headers                   *Optional.* A callable for when response headers have been received.
    on_progress                  *Optional.* A callable for progress notifications.
    on_ssl_error                 *Optional.* A callable responsible for handling SSL verification errors, if ``verify_ssl`` is True.
    on_error                     *Optional.* A callable that will handle any errors that occur.
    timeout          ``30``      *Optional.* The time to wait, in seconds, of no activity to allow before timing out.
    max_redirects    ``10``      *Optional.* The maximum number of times to follow a server-issued redirect.
    keep_alive       ``True``    *Optional.* Whether or not a single connection will be reused for multiple requests.
    auth             ``None``    *Optional.* An instance of :class:`AuthBase` for authenticating requests to the server.
    headers          ``None``    *Optional.* A dictionary of default headers to send with requests.
    verify_ssl       ``False``   *Optional.* Whether or not to attempt to check the certificate of the remote secure server against its hostname.
    ssl_options      ``None``    *Optional.* Options to use when initializing SSL. See :func:`Stream.startSSL` for more.
    ===============  ==========  ============
     __init__ N/A N/A self client on_response on_headers on_progress on_ssl_error on_error timeout max_redirects keep_alive auth headers cookies verify_ssl ssl_options N/A None None None None None None None None None None None None None N/A N/A  Initialize the Session.  N/A N/A isinstance client Session N/A N/A N/A self parent parent client N/A N/A self client client N/A N/A self parent client N/A N/A N/A self client client N/A parent N/A N/A client _sessions N/A N/A client _sessions N/A -1 None N/A N/A self parent parent N/A N/A on_response None N/A N/A on_response N/A parent N/A parent on_response N/A client on_response N/A N/A on_headers None N/A N/A on_headers N/A parent N/A parent on_headers N/A client on_headers N/A N/A on_progress None N/A N/A on_progress N/A parent N/A parent on_progress N/A client on_progress N/A N/A on_ssl_error None N/A N/A parent N/A N/A on_ssl_error N/A parent on_ssl_error N/A N/A on_ssl_error N/A client on_ssl_error N/A N/A on_error None N/A N/A on_error N/A parent N/A parent on_error N/A client on_error N/A N/A timeout None N/A N/A timeout N/A parent N/A parent timeout 30 N/A N/A max_redirects None N/A N/A max_redirects N/A parent N/A parent max_redirects 10 N/A N/A keep_alive None N/A N/A keep_alive N/A parent N/A parent keep_alive True N/A N/A auth None N/A N/A auth N/A parent N/A parent auth None N/A N/A headers None N/A N/A headers N/A N/A N/A parent N/A parent headers N/A N/A N/A N/A headers update N/A parent headers N/A N/A verify_ssl None N/A N/A verify_ssl N/A parent N/A parent verify_ssl False N/A N/A ssl_options None N/A N/A ssl_options N/A parent N/A parent ssl_options None N/A verify_ssl N/A N/A N/A ssl_options N/A N/A loc None N/A N/A verify_ssl True N/A N/A loc verify_ssl N/A N/A loc N/A N/A loc N/A N/A N/A os environ get PANTS_CA_BUNDLE N/A N/A loc N/A N/A loc N/A N/A N/A os environ get CURL_CA_BUNDLE N/A N/A loc N/A N/A N/A N/A certifi N/A loc N/A N/A certifi where N/A N/A N/A ImportError N/A N/A N/A N/A loc N/A N/A N/A RuntimeError Cannot find certificates for SSL verification. N/A ssl_options N/A ca_certs cert_reqs loc N/A ssl CERT_REQUIRED N/A N/A match_hostname N/A N/A N/A RuntimeError Cannot verify SSL certificates without the package backports.ssl_match_hostname. N/A N/A cookies None N/A N/A cookies N/A N/A Cookie SimpleCookie N/A N/A N/A isinstance cookies dict N/A N/A cookies N/A N/A Cookie SimpleCookie cookies N/A N/A self on_response on_response N/A N/A self on_headers on_headers N/A N/A self on_progress on_progress N/A N/A self on_ssl_error on_ssl_error N/A N/A self on_error on_error N/A N/A self timeout timeout N/A N/A self max_redirects max_redirects N/A N/A self keep_alive keep_alive N/A N/A self auth auth N/A N/A self headers headers N/A N/A self cookies cookies N/A N/A self verify_ssl verify_ssl N/A N/A self ssl_options ssl_options N/A session N/A N/A self N/A args kwargs N/A N/A  Create a new session. See :class:`Session` for details.  N/A N/A Session self args kwargs N/A request N/A N/A self method url params data headers cookies files auth timeout max_redirects keep_alive N/A None None None None None None None None None N/A N/A 
        Begin a request.

        ==============  ============
        Argument        Description
        ==============  ============
        method          The HTTP method of the request.
        url             The URL to request.
        params          *Optional.* A dictionary or string of query parameters to add to the request.
        data            *Optional.* A dictionary or string of content to send in the request body.
        headers         *Optional.* A dictionary of headers to send with the request.
        cookies         *Optional.* A dictionary or CookieJar of cookies to send with the request.
        files           *Optional.* A dictionary of file-like objects to upload with the request.
        auth            *Optional.* An instance of :class:`AuthBase` to use to authenticate the request.
        timeout         *Optional.* The time to wait, in seconds, of no activity to allow before timing out.
        max_redirects   *Optional.* The maximum number of times to follow a server-issued redirect.
        keep_alive      *Optional.* Whether or not to reuse the connection for multiple requests.
        ==============  ============
         N/A method N/A N/A N/A str method upper N/A parts N/A N/A urlparse urlparse url N/A N/A N/A N/A parts scheme N/A http https N/A N/A N/A ValueError N/A HTTPClient unable to serve request with scheme %r. N/A parts scheme N/A N/A timeout None N/A N/A timeout N/A self timeout N/A N/A max_redirects None N/A N/A max_redirects N/A self max_redirects N/A N/A keep_alive None N/A N/A keep_alive N/A self keep_alive N/A N/A auth None N/A N/A auth N/A self auth N/A N/A cookies None N/A N/A cookies N/A self cookies N/A N/A N/A isinstance cookies dict N/A N/A cookies N/A N/A Cookie SimpleCookie cookies N/A N/A headers N/A N/A headers N/A N/A key N/A self headers N/A N/A N/A N/A key headers N/A N/A N/A headers N/A key N/A N/A self headers N/A key N/A N/A N/A Accept-Encoding headers N/A N/A N/A headers N/A Accept-Encoding deflate, gzip N/A N/A N/A Date headers N/A N/A N/A headers N/A Date N/A date N/A N/A datetime utcnow N/A N/A N/A Host headers N/A N/A N/A headers N/A Host N/A _hostname parts N/A port N/A _port parts N/A port N/A N/A N/A headers N/A Host N/A :%d port N/A N/A N/A User-Agent headers N/A N/A N/A headers N/A User-Agent USER_AGENT N/A N/A N/A N/A Connection headers N/A keep_alive N/A N/A N/A headers N/A Connection close N/A files N/A N/A hdr N/A N/A headers get Content-Type N/A N/A hdr N/A N/A N/A hdr startswith multipart/form-data N/A N/A N/A ValueError N/A Cannot transmit files with Content-Type %r. hdr N/A N/A N/A hdr N/A N/A N/A headers N/A Content-Type multipart/form-data N/A N/A N/A N/A N/A Content-Type headers data N/A N/A N/A headers N/A Content-Type application/x-www-form-urlencoded N/A N/A Content-Type headers N/A N/A hdr N/A headers N/A Content-Type N/A N/A isinstance data bytes N/A N/A body N/A data N/A length N/A len data N/A N/A N/A N/A hdr startswith multipart/form-data N/A N/A ind N/A N/A hdr find boundary= N/A N/A ind -1 N/A N/A boundary N/A hdr N/A N/A ind 9 N/A N/A boundary None N/A N/A boundary body N/A encode_multipart N/A data N/A files boundary N/A N/A headers N/A Content-Type N/A multipart/form-data; boundary=%s boundary N/A length 0 N/A item body N/A N/A N/A isinstance item basestring N/A N/A length N/A len item N/A N/A N/A N/A item seek 0 2 N/A length N/A N/A item tell N/A N/A N/A hdr application/x-www-form-urlencoded N/A N/A N/A isinstance data dict N/A N/A body N/A N/A N/A urllib urlencode N/A data N/A True N/A length N/A len N/A body N/A 0 N/A N/A N/A data N/A N/A body N/A N/A length 0 N/A N/A body N/A data N/A length N/A len N/A body N/A 0 N/A N/A N/A ValueError N/A Unknown Content-Type %r. hdr N/A N/A headers N/A Content-Length length N/A N/A body None N/A path N/A N/A parts path / N/A params N/A N/A new_params N/A N/A urlparse parse_qs N/A parts query N/A N/A key value N/A N/A params iteritems N/A N/A N/A N/A key new_params N/A N/A N/A new_params N/A key N/A N/A N/A isinstance value N/A tuple list N/A N/A N/A N/A N/A new_params N/A key extend value N/A N/A N/A N/A N/A new_params N/A key append value N/A parts N/A N/A parts _replace query N/A N/A urllib urlencode new_params True N/A N/A parts query N/A N/A path N/A ?%s N/A parts query N/A N/A parts fragment N/A N/A path N/A #%s N/A parts fragment N/A request N/A HTTPRequest self method path parts headers cookies body timeout max_redirects keep_alive auth N/A N/A N/A N/A N/A self client _requests append request N/A N/A N/A N/A self client _processing N/A N/A N/A N/A N/A self client _process N/A request N/A delete N/A N/A self url N/A kwargs N/A N/A  Begin a DELETE request. See :func:`request` for more details.  N/A N/A N/A self request DELETE url kwargs N/A get N/A N/A self url params N/A None kwargs N/A N/A  Begin a GET request. See :func:`request` for more details.  N/A N/A N/A self request GET url params params kwargs N/A head N/A N/A self url params N/A None kwargs N/A N/A  Begin a HEAD request. See :func:`request` for more details.  N/A N/A N/A self request HEAD url params params kwargs N/A options N/A N/A self url N/A kwargs N/A N/A  Begin an OPTIONS request. See :func:`request` for more details.  N/A N/A N/A self request OPTIONS url kwargs N/A patch N/A N/A self url data N/A None kwargs N/A N/A  Begin a PATCH request. See :func:`request` for more details.  N/A N/A N/A self request PATCH url data data kwargs N/A post N/A N/A self url data files N/A None None kwargs N/A N/A  Begin a POST request. See :func:`request` for more details.  N/A N/A N/A self request POST url data data files files kwargs N/A put N/A N/A self url data N/A None kwargs N/A N/A  Begin a PUT request. See :func:`request` for more details.  N/A N/A N/A self request PUT url data data kwargs N/A trace N/A N/A self url N/A kwargs N/A N/A  Begin a TRACE request. See :func:`request` for more details.  N/A N/A N/A self request TRACE url kwargs N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self client _sessions append self N/A self N/A __exit__ N/A N/A self N/A args N/A N/A N/A N/A N/A N/A self client _sessions pop N/A N/A HTTPRequest N/A object N/A N/A  A very basic structure for storing HTTP request information.  N/A response None N/A _timeout_timer None __init__ N/A N/A self session method path url headers cookies body timeout max_redirects keep_alive auth N/A N/A N/A N/A self session session N/A N/A self method method N/A N/A self path path N/A N/A self url url N/A N/A self headers headers N/A N/A self cookies cookies N/A N/A self body body N/A N/A self timeout timeout N/A N/A self max_redirects max_redirects N/A N/A self keep_alive keep_alive N/A N/A self auth auth N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s ["%s://%s%s"] at 0x%X> N/A N/A N/A self __class__ __name__ N/A N/A self url scheme N/A N/A self url netloc N/A self path N/A id self N/A N/A HTTPResponse N/A object N/A N/A 
    The HTTPResponse class represents a single HTTPResponse, and has all the
    available information about a response, including the redirect history and
    the original HTTPRequest.
     N/A total None N/A remaining None N/A http_version None N/A status_code None N/A status_text None N/A cookies None N/A headers None N/A _body_file None N/A _decoder None N/A _encoding None __init__ N/A N/A self request N/A N/A N/A  Initialize from the provided request.  N/A N/A self request request N/A N/A self history N/A N/A N/A self method N/A request method N/A N/A self url N/A N/A urlparse urlunparse N/A request url N/A N/A self path N/A request path N/A N/A N/A self request response N/A N/A N/A N/A N/A self history extend N/A N/A N/A self request response history N/A N/A N/A N/A self history insert 0 N/A N/A self request response N/A N/A N/A self request response self N/A N/A self cookies N/A N/A N/A self request session cookies N/A status N/A N/A self N/A N/A N/A  The status code and status text as a string.  N/A N/A N/A self status_code N/A N/A None N/A N/A N/A self status_text N/A N/A N/A str N/A self status_code N/A N/A %d %s N/A N/A self status_code N/A self status_text N/A property __repr__ N/A N/A self N/A N/A N/A N/A <%s [%s] at 0x%X> N/A N/A N/A self __class__ __name__ N/A self status N/A id self N/A _keep_alive N/A N/A self N/A N/A N/A conn N/A N/A N/A N/A N/A self headers get Connection lower N/A N/A N/A self http_version HTTP/1.0 N/A N/A N/A conn keep-alive N/A N/A conn close N/A property encoding N/A N/A self N/A N/A N/A 
        This is the detected character encoding of the response. You can also
        set this to a specific character set to have :attr:`text` decoded
        properly.

        Pants will attempt to fill this value from the Content-Type response
        header. If no value was available, it will be ``None``.
         N/A N/A N/A self _encoding N/A N/A cset N/A N/A N/A N/A N/A N/A self headers get Content-Type partition charset= N/A -1 N/A N/A cset N/A N/A cset None N/A N/A self _encoding cset N/A N/A self _encoding N/A property encoding N/A N/A self val N/A N/A N/A N/A val None N/A N/A N/A N/A codecs lookup val N/A N/A self _encoding val N/A N/A encoding setter text N/A N/A self N/A N/A N/A 
        The content of the response, after being decoded into unicode with
        :attr:`encoding`. Be careful when using this with large responses, as
        it will load the entire response into memory. ``None`` if no data has
        been received.

        If :attr:`encoding` is ``None``, this will default to ``UTF-8``.

         N/A raw N/A self content N/A N/A raw N/A N/A raw N/A encoding N/A self encoding N/A N/A encoding N/A N/A encoding utf-8 N/A N/A N/A raw decode encoding N/A property json N/A N/A self N/A kwargs N/A N/A 
        The content of the response, having been interpreted as JSON. This
        uses the value of :attr:`encoding` if possible. If :attr:`encoding`
        is not set, it will default to ``UTF-8``.

        Any provided keyword arguments will be passed to :func:`json.loads`.

         N/A N/A N/A encoding kwargs N/A N/A N/A kwargs N/A encoding N/A self encoding N/A raw N/A self content N/A N/A raw N/A N/A raw N/A N/A N/A json loads raw kwargs N/A file N/A N/A self N/A N/A N/A 
        The content of the response as a :class:`tempfile.SpooledTemporaryFile`.
        Pants uses temporary files to decrease memory usage for
        large responses. ``None`` if no data has been received.
         N/A N/A self _body_file N/A property N/A raw file N/A stream True content N/A N/A self N/A N/A N/A 
        The content of the response as a byte string. Be careful when using
        this with large responses, as it will load the entire response into
        memory. ``None`` if no data has been received.
         N/A N/A N/A self _body_file N/A N/A None N/A f N/A N/A self _body_file _file N/A N/A hasattr f getvalue N/A N/A N/A N/A f getvalue N/A current_pos N/A N/A f tell N/A N/A N/A f seek 0 N/A out N/A N/A f read N/A N/A N/A f seek current_pos N/A out N/A property iter_content N/A N/A self chunk_size decode_unicode N/A 1 False N/A N/A 
        Iterate over the content of the response. Using this, rather than
        :attr:`content` or :attr:`text` can prevent the loading of large
        responses into memory in their entirety.

        ===============  ========  ============
        Argument         Default   Description
        ===============  ========  ============
        chunk_size       ``1``     The number of bytes to read at once.
        decode_unicode   False     Whether or not to decode the bytes into unicode using the response's :attr:`encoding`.
        ===============  ========  ============
         N/A f N/A self _body_file N/A N/A f N/A N/A N/A decode_unicode N/A N/A codec N/A N/A self encoding utf-8 N/A decoder N/A N/A N/A codecs getincrementaldecoder codec errors replace N/A N/A decoder None N/A pos 0 N/A True N/A N/A N/A N/A f seek pos N/A data N/A N/A f read chunk_size N/A pos N/A len data N/A decoder N/A N/A data N/A N/A decoder decode data N/A N/A data N/A N/A decoder N/A N/A final N/A N/A decoder decode final True N/A final N/A N/A N/A final N/A N/A N/A data N/A iter_lines N/A N/A self chunk_size decode_unicode N/A 512 False N/A N/A 
        Iterate over the content of the response, one line at a time. By
        using this rather than :attr:`content` or :attr:`text` you can
        prevent loading of the entire response into memory. The two arguments
        to this method are passed directly to :meth:`iter_content`.
         N/A pending None N/A chunk N/A N/A self iter_content chunk_size chunk_size decode_unicode decode_unicode N/A N/A pending N/A N/A chunk N/A pending chunk N/A lines N/A N/A chunk splitlines N/A N/A lines N/A lines N/A -1 chunk N/A N/A N/A lines N/A -1 N/A -1 N/A chunk N/A -1 N/A N/A pending N/A N/A lines pop N/A N/A pending None N/A line lines N/A N/A N/A line N/A N/A pending None N/A N/A N/A pending N/A N/A __iter__ iter_lines _receive N/A N/A self data N/A N/A N/A N/A N/A self _body_file N/A N/A N/A N/A self _init_body N/A N/A N/A N/A self _body_file write data N/A _init_body N/A N/A self N/A N/A N/A N/A self _body_file N/A N/A tempfile SpooledTemporaryFile MAX_MEMORY_SIZE N/A handle_301 N/A N/A self client N/A N/A N/A  Handle the different redirect codes.  N/A request N/A self request N/A N/A N/A N/A request max_redirects N/A N/A Location N/A self headers N/A N/A self N/A status N/A self status_code N/A method N/A self method N/A body N/A request body N/A location N/A N/A self headers N/A Location N/A N/A N/A log debug N/A Redirecting request %r to %r. N/A request location N/A N/A N/A location N/A N/A urlparse urljoin N/A N/A urlparse urlunparse N/A request url location N/A parts N/A N/A urlparse urlparse location N/A N/A N/A N/A parts scheme N/A http https N/A N/A MalformedResponse N/A N/A N/A status 301 N/A N/A method N/A GET HEAD N/A N/A MalformedResponse N/A N/A N/A status N/A 302 303 N/A N/A method GET N/A body None N/A host N/A _hostname parts N/A port N/A _port parts N/A port N/A N/A host N/A :%d port N/A N/A request url parts N/A N/A request path N/A N/A parts path / N/A N/A request method method N/A N/A request body body N/A N/A N/A request headers N/A Host host N/A N/A request max_redirects 1 N/A N/A HTTPResponse request N/A N/A N/A N/A client _requests insert 0 request N/A N/A N/A client _process N/A N/A N/A N/A MalformedResponse N/A N/A self N/A N/A handle_302 handle_303 handle_307 handle_301 handle_401 N/A N/A self client N/A N/A N/A  Handle authorization, if we know how.  N/A request N/A self request N/A N/A N/A N/A isinstance N/A request auth N/A list tuple N/A N/A WWW-Authenticate N/A self headers N/A N/A self N/A N/A auth_type options N/A N/A N/A N/A self headers N/A WWW-Authenticate split 1 N/A N/A N/A N/A N/A auth_type lower N/A digest basic N/A N/A self N/A N/A N/A N/A auth_type lower basic N/A N/A N/A request auth N/A BasicAuth N/A request auth N/A N/A self N/A N/A HTTPResponse request N/A N/A N/A N/A client _requests insert 0 request N/A N/A N/A client _process N/A N/A