Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias alias ImportFrom alias identifier alias identifier alias identifier alias identifier alias identifier alias identifier alias identifier alias identifier ImportFrom alias alias alias alias alias alias TryExcept body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body ClassDef bases NameLoad body Pass decorator_list TryExcept body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body ClassDef bases NameLoad body Pass decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Num Assign NameStore Call NameLoad NameLoad Str Num TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body TryExcept body Expr Call NameLoad handlers ExceptHandler type NameLoad body Pass Raise Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Num orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Num orelse Return Num decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr GeneratorExp TupleLoad Call NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign SubscriptStore NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Return Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Num decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Slice Assign NameStore ListLoad While NameLoad body Assign NameStore Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign SubscriptStore NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Return Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Num decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Slice Assign NameStore ListLoad While NameLoad body Assign NameStore Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign SubscriptStore NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Return Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Num decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str orelse If CompareLt NameLoad Num body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body FunctionDef arguments args defaults vararg kwarg body Raise Call NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad orelse Return NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Str Str Str Str Str Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIsNot Call NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr 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 Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Expr Call NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad Expr Call NameLoad CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call NameLoad CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad TryExcept body For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Num decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr GeneratorExp TupleLoad Call NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr 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 SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If BoolOpOr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body If CompareEq Call AttributeLoad NameLoad attr Num body If CompareLt NameLoad Num body If CompareEq NameLoad Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num orelse Assign NameStore AttributeLoad NameLoad attr Raise Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Num Str orelse Expr Call NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Pass orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str orelse If CompareIn Str NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad Str NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad Str NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad AugAssignSub NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Slice decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad TryExcept body Assign SubscriptStore NameLoad Slice NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Slice NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str orelse Raise Call NameLoad Str orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If CompareLtE NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Slice decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad If CompareLtE NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call NameLoad CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If CompareGt NameLoad Num body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Break Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return ListLoad Assign NameStore ListLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Slice decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Slice decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Slice decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore ListLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Num If CompareEq NameLoad Num body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Slice decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Slice decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr GeneratorExp TupleLoad Call NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Return Str Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Slice decorator_list NameLoad decorator_list Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A socket sys platform functools wraps partial itertools count chain weakref WeakValueDictionary errno errorcode six binary_type _binary_type six integer_types integer_types six int2byte indexbytes OpenSSL._util UNSPECIFIED _UNSPECIFIED exception_from_error_queue _exception_from_error_queue ffi _ffi lib _lib make_assert _make_assert native _native path_string _path_string text_to_bytes_and_warn _text_to_bytes_and_warn OpenSSL.crypto FILETYPE_PEM _PassphraseHelper PKey X509Name X509 X509Store N/A N/A N/A _memoryview memoryview N/A N/A N/A NameError N/A _memoryview N/A object N/A N/A N/A N/A N/A N/A _buffer buffer N/A N/A N/A NameError N/A _buffer N/A object N/A N/A N/A N/A OPENSSL_VERSION_NUMBER N/A _lib OPENSSL_VERSION_NUMBER N/A SSLEAY_VERSION N/A _lib SSLEAY_VERSION N/A SSLEAY_CFLAGS N/A _lib SSLEAY_CFLAGS N/A SSLEAY_PLATFORM N/A _lib SSLEAY_PLATFORM N/A SSLEAY_DIR N/A _lib SSLEAY_DIR N/A SSLEAY_BUILT_ON N/A _lib SSLEAY_BUILT_ON N/A SENT_SHUTDOWN N/A _lib SSL_SENT_SHUTDOWN N/A RECEIVED_SHUTDOWN N/A _lib SSL_RECEIVED_SHUTDOWN N/A SSLv2_METHOD 1 N/A SSLv3_METHOD 2 N/A SSLv23_METHOD 3 N/A TLSv1_METHOD 4 N/A TLSv1_1_METHOD 5 N/A TLSv1_2_METHOD 6 N/A OP_NO_SSLv2 N/A _lib SSL_OP_NO_SSLv2 N/A OP_NO_SSLv3 N/A _lib SSL_OP_NO_SSLv3 N/A OP_NO_TLSv1 N/A _lib SSL_OP_NO_TLSv1 N/A OP_NO_TLSv1_1 N/A getattr _lib SSL_OP_NO_TLSv1_1 0 N/A OP_NO_TLSv1_2 N/A getattr _lib SSL_OP_NO_TLSv1_2 0 N/A N/A N/A MODE_RELEASE_BUFFERS N/A _lib SSL_MODE_RELEASE_BUFFERS N/A N/A N/A AttributeError N/A N/A N/A OP_SINGLE_DH_USE N/A _lib SSL_OP_SINGLE_DH_USE N/A OP_SINGLE_ECDH_USE N/A _lib SSL_OP_SINGLE_ECDH_USE N/A OP_EPHEMERAL_RSA N/A _lib SSL_OP_EPHEMERAL_RSA N/A OP_MICROSOFT_SESS_ID_BUG N/A _lib SSL_OP_MICROSOFT_SESS_ID_BUG N/A OP_NETSCAPE_CHALLENGE_BUG N/A _lib SSL_OP_NETSCAPE_CHALLENGE_BUG N/A OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG N/A _lib SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG N/A OP_SSLREF2_REUSE_CERT_TYPE_BUG N/A _lib SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG N/A OP_MICROSOFT_BIG_SSLV3_BUFFER N/A _lib SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER N/A N/A N/A OP_MSIE_SSLV2_RSA_PADDING N/A _lib SSL_OP_MSIE_SSLV2_RSA_PADDING N/A N/A N/A AttributeError N/A N/A N/A OP_SSLEAY_080_CLIENT_DH_BUG N/A _lib SSL_OP_SSLEAY_080_CLIENT_DH_BUG N/A OP_TLS_D5_BUG N/A _lib SSL_OP_TLS_D5_BUG N/A OP_TLS_BLOCK_PADDING_BUG N/A _lib SSL_OP_TLS_BLOCK_PADDING_BUG N/A OP_DONT_INSERT_EMPTY_FRAGMENTS N/A _lib SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS N/A OP_CIPHER_SERVER_PREFERENCE N/A _lib SSL_OP_CIPHER_SERVER_PREFERENCE N/A OP_TLS_ROLLBACK_BUG N/A _lib SSL_OP_TLS_ROLLBACK_BUG N/A OP_PKCS1_CHECK_1 N/A _lib SSL_OP_PKCS1_CHECK_1 N/A OP_PKCS1_CHECK_2 N/A _lib SSL_OP_PKCS1_CHECK_2 N/A OP_NETSCAPE_CA_DN_BUG N/A _lib SSL_OP_NETSCAPE_CA_DN_BUG N/A OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG N/A _lib SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG N/A N/A N/A OP_NO_COMPRESSION N/A _lib SSL_OP_NO_COMPRESSION N/A N/A N/A AttributeError N/A N/A N/A OP_NO_QUERY_MTU N/A _lib SSL_OP_NO_QUERY_MTU N/A OP_COOKIE_EXCHANGE N/A _lib SSL_OP_COOKIE_EXCHANGE N/A N/A N/A OP_NO_TICKET N/A _lib SSL_OP_NO_TICKET N/A N/A N/A AttributeError N/A N/A N/A OP_ALL N/A _lib SSL_OP_ALL N/A VERIFY_PEER N/A _lib SSL_VERIFY_PEER N/A VERIFY_FAIL_IF_NO_PEER_CERT N/A _lib SSL_VERIFY_FAIL_IF_NO_PEER_CERT N/A VERIFY_CLIENT_ONCE N/A _lib SSL_VERIFY_CLIENT_ONCE N/A VERIFY_NONE N/A _lib SSL_VERIFY_NONE N/A SESS_CACHE_OFF N/A _lib SSL_SESS_CACHE_OFF N/A SESS_CACHE_CLIENT N/A _lib SSL_SESS_CACHE_CLIENT N/A SESS_CACHE_SERVER N/A _lib SSL_SESS_CACHE_SERVER N/A SESS_CACHE_BOTH N/A _lib SSL_SESS_CACHE_BOTH N/A SESS_CACHE_NO_AUTO_CLEAR N/A _lib SSL_SESS_CACHE_NO_AUTO_CLEAR N/A SESS_CACHE_NO_INTERNAL_LOOKUP N/A _lib SSL_SESS_CACHE_NO_INTERNAL_LOOKUP N/A SESS_CACHE_NO_INTERNAL_STORE N/A _lib SSL_SESS_CACHE_NO_INTERNAL_STORE N/A SESS_CACHE_NO_INTERNAL N/A _lib SSL_SESS_CACHE_NO_INTERNAL N/A SSL_ST_CONNECT N/A _lib SSL_ST_CONNECT N/A SSL_ST_ACCEPT N/A _lib SSL_ST_ACCEPT N/A SSL_ST_MASK N/A _lib SSL_ST_MASK N/A SSL_ST_INIT N/A _lib SSL_ST_INIT N/A SSL_ST_BEFORE N/A _lib SSL_ST_BEFORE N/A SSL_ST_OK N/A _lib SSL_ST_OK N/A SSL_ST_RENEGOTIATE N/A _lib SSL_ST_RENEGOTIATE N/A SSL_CB_LOOP N/A _lib SSL_CB_LOOP N/A SSL_CB_EXIT N/A _lib SSL_CB_EXIT N/A SSL_CB_READ N/A _lib SSL_CB_READ N/A SSL_CB_WRITE N/A _lib SSL_CB_WRITE N/A SSL_CB_ALERT N/A _lib SSL_CB_ALERT N/A SSL_CB_READ_ALERT N/A _lib SSL_CB_READ_ALERT N/A SSL_CB_WRITE_ALERT N/A _lib SSL_CB_WRITE_ALERT N/A SSL_CB_ACCEPT_LOOP N/A _lib SSL_CB_ACCEPT_LOOP N/A SSL_CB_ACCEPT_EXIT N/A _lib SSL_CB_ACCEPT_EXIT N/A SSL_CB_CONNECT_LOOP N/A _lib SSL_CB_CONNECT_LOOP N/A SSL_CB_CONNECT_EXIT N/A _lib SSL_CB_CONNECT_EXIT N/A SSL_CB_HANDSHAKE_START N/A _lib SSL_CB_HANDSHAKE_START N/A SSL_CB_HANDSHAKE_DONE N/A _lib SSL_CB_HANDSHAKE_DONE Error N/A Exception N/A N/A 
    An error occurred in an `OpenSSL.SSL` API.
     N/A N/A _raise_current_error N/A partial _exception_from_error_queue Error N/A _openssl_assert N/A _make_assert Error WantReadError N/A Error N/A N/A N/A WantWriteError N/A Error N/A N/A N/A WantX509LookupError N/A Error N/A N/A N/A ZeroReturnError N/A Error N/A N/A N/A SysCallError N/A Error N/A N/A N/A _CallbackExceptionHelper N/A object N/A N/A 
    A base class for wrapper classes that allow for intelligent exception
    handling in OpenSSL callbacks.

    :ivar list _problems: Any exceptions that occurred while executing in a
        context where they could not be raised in the normal way.  Typically
        this is because OpenSSL has called into some Python code and requires a
        return value.  The exceptions are saved to be raised later when it is
        possible to do so.
     __init__ N/A N/A self N/A N/A N/A N/A self _problems N/A N/A raise_if_problem N/A N/A self N/A N/A N/A 
        Raise an exception from the OpenSSL error queue or that was previously
        captured whe running a callback.
         N/A N/A self _problems N/A N/A N/A N/A N/A _raise_current_error N/A N/A N/A Error N/A N/A N/A N/A N/A N/A self _problems pop 0 N/A N/A _VerifyHelper N/A _CallbackExceptionHelper N/A N/A 
    Wrap a callback such that it can be used as a certificate verification
    callback.
     __init__ N/A N/A self callback N/A N/A N/A N/A N/A _CallbackExceptionHelper __init__ self wrapper N/A N/A ok store_ctx N/A N/A N/A cert N/A N/A X509 __new__ X509 N/A N/A cert _x509 N/A N/A _lib X509_STORE_CTX_get_current_cert store_ctx N/A error_number N/A N/A _lib X509_STORE_CTX_get_error store_ctx N/A error_depth N/A N/A _lib X509_STORE_CTX_get_error_depth store_ctx N/A index N/A N/A _lib SSL_get_ex_data_X509_STORE_CTX_idx N/A ssl N/A N/A _lib X509_STORE_CTX_get_ex_data store_ctx index N/A connection N/A N/A Connection _reverse_mapping N/A ssl N/A N/A N/A result N/A callback connection cert error_number error_depth ok N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _problems append e N/A 0 N/A N/A result N/A N/A N/A N/A _lib X509_STORE_CTX_set_error store_ctx N/A _lib X509_V_OK N/A 1 N/A N/A 0 N/A N/A wraps callback N/A N/A self callback N/A N/A _ffi callback int (*)(int, X509_STORE_CTX *) wrapper N/A N/A _NpnAdvertiseHelper N/A _CallbackExceptionHelper N/A N/A 
    Wrap a callback such that it can be used as an NPN advertisement callback.
     __init__ N/A N/A self callback N/A N/A N/A N/A N/A _CallbackExceptionHelper __init__ self wrapper N/A N/A ssl out outlen arg N/A N/A N/A N/A N/A conn N/A N/A Connection _reverse_mapping N/A ssl N/A protos N/A callback conn N/A protostr N/A N/A join N/A N/A chain from_iterable N/A N/A N/A int2byte N/A len p p N/A p protos N/A N/A conn _npn_advertise_callback_args N/A N/A N/A _ffi new unsigned int * N/A len protostr N/A N/A _ffi new unsigned char[] protostr N/A N/A outlen N/A 0 N/A N/A N/A conn _npn_advertise_callback_args N/A 0 N/A 0 N/A N/A out N/A 0 N/A N/A conn _npn_advertise_callback_args N/A 1 N/A 0 N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _problems append e N/A 2 N/A N/A wraps callback N/A N/A self callback N/A N/A _ffi callback int (*)(SSL *, const unsigned char **, unsigned int *, void *) wrapper N/A N/A _NpnSelectHelper N/A _CallbackExceptionHelper N/A N/A 
    Wrap a callback such that it can be used as an NPN selection callback.
     __init__ N/A N/A self callback N/A N/A N/A N/A N/A _CallbackExceptionHelper __init__ self wrapper N/A N/A ssl out outlen in_ inlen arg N/A N/A N/A N/A N/A conn N/A N/A Connection _reverse_mapping N/A ssl N/A instr N/A N/A N/A _ffi buffer in_ inlen N/A N/A protolist N/A N/A instr N/A N/A l N/A indexbytes instr 0 N/A proto N/A instr N/A 1 N/A l 1 N/A N/A N/A protolist append proto N/A instr N/A instr N/A N/A l 1 N/A outstr N/A callback conn protolist N/A N/A conn _npn_select_callback_args N/A N/A N/A _ffi new unsigned char * N/A len outstr N/A N/A _ffi new unsigned char[] outstr N/A N/A outlen N/A 0 N/A N/A N/A conn _npn_select_callback_args N/A 0 N/A 0 N/A N/A out N/A 0 N/A N/A conn _npn_select_callback_args N/A 1 N/A 0 N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _problems append e N/A 2 N/A N/A wraps callback N/A N/A self callback N/A N/A _ffi callback int (*)(SSL *, unsigned char **, unsigned char *, const unsigned char *, unsigned int, void *) wrapper N/A N/A _ALPNSelectHelper N/A _CallbackExceptionHelper N/A N/A 
    Wrap a callback such that it can be used as an ALPN selection callback.
     __init__ N/A N/A self callback N/A N/A N/A N/A N/A _CallbackExceptionHelper __init__ self wrapper N/A N/A ssl out outlen in_ inlen arg N/A N/A N/A N/A N/A conn N/A N/A Connection _reverse_mapping N/A ssl N/A instr N/A N/A N/A _ffi buffer in_ inlen N/A N/A protolist N/A N/A instr N/A N/A encoded_len N/A indexbytes instr 0 N/A proto N/A instr N/A 1 N/A encoded_len 1 N/A N/A N/A protolist append proto N/A instr N/A instr N/A N/A encoded_len 1 N/A outstr N/A callback conn protolist N/A N/A N/A isinstance outstr _binary_type N/A N/A N/A TypeError ALPN callback must return a bytestring. N/A N/A conn _alpn_select_callback_args N/A N/A N/A _ffi new unsigned char * N/A len outstr N/A N/A _ffi new unsigned char[] outstr N/A N/A outlen N/A 0 N/A N/A N/A conn _alpn_select_callback_args N/A 0 N/A 0 N/A N/A out N/A 0 N/A N/A conn _alpn_select_callback_args N/A 1 N/A 0 N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _problems append e N/A 2 N/A N/A wraps callback N/A N/A self callback N/A N/A _ffi callback int (*)(SSL *, unsigned char **, unsigned char *, const unsigned char *, unsigned int, void *) wrapper N/A N/A _asFileDescriptor N/A N/A obj N/A N/A N/A fd None N/A N/A N/A isinstance obj integer_types N/A N/A meth N/A getattr obj fileno None N/A N/A meth None N/A N/A obj N/A meth N/A N/A isinstance obj integer_types N/A N/A fd obj N/A N/A N/A isinstance fd integer_types N/A N/A N/A TypeError argument must be an int, or have a fileno() method. N/A N/A N/A fd 0 N/A N/A N/A ValueError N/A file descriptor cannot be a negative integer (%i) N/A fd N/A fd N/A SSLeay_version N/A N/A type N/A N/A N/A 
    Return a string describing the version of OpenSSL in use.

    :param type: One of the SSLEAY_ constants defined in this module.
     N/A N/A N/A _ffi string N/A N/A _lib SSLeay_version type N/A _make_requires N/A N/A flag error N/A N/A N/A 
    Builds a decorator that ensures that functions that rely on OpenSSL
    functions that are not present in this build raise NotImplementedError,
    rather than AttributeError coming out of cryptography.

    :param flag: A cryptography flag that guards the functions, e.g.
        ``Cryptography_HAS_NEXTPROTONEG``.
    :param error: The string to be used in the exception if the flag is false.
     _requires_decorator N/A N/A func N/A N/A N/A N/A flag N/A explode N/A N/A N/A args kwargs N/A N/A N/A NotImplementedError error N/A N/A wraps func N/A explode N/A N/A func N/A N/A _requires_decorator N/A N/A _requires_npn N/A _make_requires N/A _lib Cryptography_HAS_NEXTPROTONEG NPN not available N/A _requires_alpn N/A _make_requires N/A _lib Cryptography_HAS_ALPN ALPN not available N/A _requires_sni N/A _make_requires N/A _lib Cryptography_HAS_TLSEXT_HOSTNAME SNI not available Session N/A object N/A N/A N/A Context N/A object N/A N/A 
    :class:`OpenSSL.SSL.Context` instances define the parameters for setting
    up new SSL connections.
     N/A _methods N/A SSLv2_METHOD SSLv3_METHOD SSLv23_METHOD TLSv1_METHOD TLSv1_1_METHOD TLSv1_2_METHOD SSLv2_method SSLv3_method SSLv23_method TLSv1_method TLSv1_1_method TLSv1_2_method N/A _methods N/A dict N/A N/A identifier N/A getattr _lib name N/A N/A identifier name N/A N/A _methods items N/A N/A getattr _lib name None None __init__ N/A N/A self method N/A N/A N/A 
        :param method: One of SSLv2_METHOD, SSLv3_METHOD, SSLv23_METHOD, or
            TLSv1_METHOD.
         N/A N/A N/A isinstance method integer_types N/A N/A N/A TypeError method must be an integer N/A N/A N/A method_func N/A N/A self _methods N/A method N/A N/A N/A KeyError N/A N/A N/A ValueError No such protocol N/A method_obj N/A method_func N/A N/A method_obj N/A _ffi NULL N/A N/A N/A _raise_current_error N/A context N/A N/A _lib SSL_CTX_new method_obj N/A N/A context N/A _ffi NULL N/A N/A N/A _raise_current_error N/A context N/A N/A _ffi gc context N/A _lib SSL_CTX_free N/A N/A self _context context N/A N/A self _passphrase_helper None N/A N/A self _passphrase_callback None N/A N/A self _passphrase_userdata None N/A N/A self _verify_helper None N/A N/A self _verify_callback None N/A N/A self _info_callback None N/A N/A self _tlsext_servername_callback None N/A N/A self _app_data None N/A N/A self _npn_advertise_helper None N/A N/A self _npn_advertise_callback None N/A N/A self _npn_select_helper None N/A N/A self _npn_select_callback None N/A N/A self _alpn_select_helper None N/A N/A self _alpn_select_callback None N/A N/A N/A self set_mode N/A _lib SSL_MODE_ENABLE_PARTIAL_WRITE N/A load_verify_locations N/A N/A self cafile capath N/A None N/A N/A 
        Let SSL know where we can find trusted certificates for the certificate
        chain

        :param cafile: In which file we can find the certificates (``bytes`` or
            ``unicode``).
        :param capath: In which directory we can find the certificates
            (``bytes`` or ``unicode``).

        :return: None
         N/A N/A cafile None N/A N/A cafile N/A _ffi NULL N/A N/A cafile N/A _path_string cafile N/A N/A capath None N/A N/A capath N/A _ffi NULL N/A N/A capath N/A _path_string capath N/A load_result N/A N/A _lib SSL_CTX_load_verify_locations N/A self _context cafile capath N/A N/A load_result N/A N/A N/A _raise_current_error N/A _wrap_callback N/A N/A self callback N/A N/A wrapper N/A N/A size verify userdata N/A N/A N/A N/A callback size verify N/A self _passphrase_userdata N/A N/A wraps callback N/A N/A _PassphraseHelper FILETYPE_PEM wrapper more_args True truncate True N/A set_passwd_cb N/A N/A self callback userdata N/A None N/A N/A 
        Set the passphrase callback

        :param callback: The Python callback to use
        :param userdata: (optional) A Python object which will be given as
                         argument to the callback
        :return: None
         N/A N/A N/A callable callback N/A N/A N/A TypeError callback must be callable N/A N/A self _passphrase_helper N/A N/A self _wrap_callback callback N/A N/A self _passphrase_callback N/A N/A self _passphrase_helper callback N/A N/A N/A _lib SSL_CTX_set_default_passwd_cb N/A self _context N/A self _passphrase_callback N/A N/A self _passphrase_userdata userdata N/A set_default_verify_paths N/A N/A self N/A N/A N/A 
        Use the platform-specific CA certificate locations

        :return: None
         N/A set_result N/A N/A _lib SSL_CTX_set_default_verify_paths N/A self _context N/A N/A set_result N/A N/A N/A _raise_current_error N/A use_certificate_chain_file N/A N/A self certfile N/A N/A N/A 
        Load a certificate chain from a file

        :param certfile: The name of the certificate chain file (``bytes`` or
            ``unicode``).

        :return: None
         N/A certfile N/A _path_string certfile N/A result N/A N/A _lib SSL_CTX_use_certificate_chain_file N/A self _context certfile N/A N/A result N/A N/A N/A _raise_current_error N/A use_certificate_file N/A N/A self certfile filetype N/A FILETYPE_PEM N/A N/A 
        Load a certificate from a file

        :param certfile: The name of the certificate file (``bytes`` or
            ``unicode``).
        :param filetype: (optional) The encoding of the file, default is PEM

        :return: None
         N/A certfile N/A _path_string certfile N/A N/A N/A isinstance filetype integer_types N/A N/A N/A TypeError filetype must be an integer N/A use_result N/A N/A _lib SSL_CTX_use_certificate_file N/A self _context certfile filetype N/A N/A use_result N/A N/A N/A _raise_current_error N/A use_certificate N/A N/A self cert N/A N/A N/A 
        Load a certificate from a X509 object

        :param cert: The X509 object
        :return: None
         N/A N/A N/A isinstance cert X509 N/A N/A N/A TypeError cert must be an X509 instance N/A use_result N/A N/A _lib SSL_CTX_use_certificate N/A self _context N/A cert _x509 N/A N/A use_result N/A N/A N/A _raise_current_error N/A add_extra_chain_cert N/A N/A self certobj N/A N/A N/A 
        Add certificate to chain

        :param certobj: The X509 certificate object to add to the chain
        :return: None
         N/A N/A N/A isinstance certobj X509 N/A N/A N/A TypeError certobj must be an X509 instance N/A copy N/A N/A _lib X509_dup N/A certobj _x509 N/A add_result N/A N/A _lib SSL_CTX_add_extra_chain_cert N/A self _context copy N/A N/A add_result N/A N/A N/A N/A _lib X509_free copy N/A N/A _raise_current_error N/A _raise_passphrase_exception N/A N/A self N/A N/A N/A N/A N/A self _passphrase_helper None N/A N/A N/A _raise_current_error N/A exception N/A N/A N/A self _passphrase_helper raise_if_problem Error N/A N/A exception None N/A N/A exception N/A use_privatekey_file N/A N/A self keyfile filetype N/A _UNSPECIFIED N/A N/A 
        Load a private key from a file

        :param keyfile: The name of the key file (``bytes`` or ``unicode``)
        :param filetype: (optional) The encoding of the file, default is PEM

        :return: None
         N/A keyfile N/A _path_string keyfile N/A N/A filetype _UNSPECIFIED N/A N/A filetype FILETYPE_PEM N/A N/A N/A N/A isinstance filetype integer_types N/A N/A N/A TypeError filetype must be an integer N/A use_result N/A N/A _lib SSL_CTX_use_PrivateKey_file N/A self _context keyfile filetype N/A N/A use_result N/A N/A N/A N/A self _raise_passphrase_exception N/A use_privatekey N/A N/A self pkey N/A N/A N/A 
        Load a private key from a PKey object

        :param pkey: The PKey object
        :return: None
         N/A N/A N/A isinstance pkey PKey N/A N/A N/A TypeError pkey must be a PKey instance N/A use_result N/A N/A _lib SSL_CTX_use_PrivateKey N/A self _context N/A pkey _pkey N/A N/A use_result N/A N/A N/A N/A self _raise_passphrase_exception N/A check_privatekey N/A N/A self N/A N/A N/A 
        Check that the private key and certificate match up

        :return: None (raises an exception if something's wrong)
         N/A N/A N/A N/A _lib SSL_CTX_check_private_key N/A self _context N/A N/A N/A _raise_current_error N/A load_client_ca N/A N/A self cafile N/A N/A N/A 
        Load the trusted certificates that will be sent to the client.  Does
        not actually imply any of the certificates are trusted; that must be
        configured separately.

        :param bytes cafile: The path to a certificates file in PEM format.
        :return: None
         N/A ca_list N/A N/A _lib SSL_load_client_CA_file N/A _text_to_bytes_and_warn cafile cafile N/A N/A _openssl_assert N/A ca_list N/A _ffi NULL N/A N/A N/A _lib SSL_CTX_set_client_CA_list N/A self _context ca_list N/A set_session_id N/A N/A self buf N/A N/A N/A 
        Set the session id to *buf* within which a session can be reused for
        this Context object.  This is needed when doing session resumption,
        because there is no way for a stored session to know which Context
        object it is associated with.

        :param bytes buf: The session id.

        :returns: None
         N/A buf N/A _text_to_bytes_and_warn buf buf N/A N/A _openssl_assert N/A N/A N/A _lib SSL_CTX_set_session_id_context N/A self _context buf N/A len buf 1 N/A set_session_cache_mode N/A N/A self mode N/A N/A N/A 
        Enable/disable session caching and specify the mode used.

        :param mode: One or more of the SESS_CACHE_* flags (combine using
            bitwise or)
        :returns: The previously set caching mode.
         N/A N/A N/A isinstance mode integer_types N/A N/A N/A TypeError mode must be an integer N/A N/A N/A _lib SSL_CTX_set_session_cache_mode N/A self _context mode N/A get_session_cache_mode N/A N/A self N/A N/A N/A 
        :returns: The currently used cache mode.
         N/A N/A N/A _lib SSL_CTX_get_session_cache_mode N/A self _context N/A set_verify N/A N/A self mode callback N/A N/A N/A 
        Set the verify mode and verify callback

        :param mode: The verify mode, this is either VERIFY_NONE or
                     VERIFY_PEER combined with possible other flags
        :param callback: The Python callback to use
        :return: None

        See SSL_CTX_set_verify(3SSL) for further details.
         N/A N/A N/A isinstance mode integer_types N/A N/A N/A TypeError mode must be an integer N/A N/A N/A callable callback N/A N/A N/A TypeError callback must be callable N/A N/A self _verify_helper N/A _VerifyHelper callback N/A N/A self _verify_callback N/A N/A self _verify_helper callback N/A N/A N/A _lib SSL_CTX_set_verify N/A self _context mode N/A self _verify_callback N/A set_verify_depth N/A N/A self depth N/A N/A N/A 
        Set the verify depth

        :param depth: An integer specifying the verify depth
        :return: None
         N/A N/A N/A isinstance depth integer_types N/A N/A N/A TypeError depth must be an integer N/A N/A N/A _lib SSL_CTX_set_verify_depth N/A self _context depth N/A get_verify_mode N/A N/A self N/A N/A N/A 
        Get the verify mode

        :return: The verify mode
         N/A N/A N/A _lib SSL_CTX_get_verify_mode N/A self _context N/A get_verify_depth N/A N/A self N/A N/A N/A 
        Get the verify depth

        :return: The verify depth
         N/A N/A N/A _lib SSL_CTX_get_verify_depth N/A self _context N/A load_tmp_dh N/A N/A self dhfile N/A N/A N/A 
        Load parameters for Ephemeral Diffie-Hellman

        :param dhfile: The file to load EDH parameters from (``bytes`` or
            ``unicode``).

        :return: None
         N/A dhfile N/A _path_string dhfile N/A bio N/A N/A _lib BIO_new_file dhfile r N/A N/A bio N/A _ffi NULL N/A N/A N/A _raise_current_error N/A bio N/A N/A _ffi gc bio N/A _lib BIO_free N/A dh N/A N/A _lib PEM_read_bio_DHparams bio N/A _ffi NULL N/A _ffi NULL N/A _ffi NULL N/A dh N/A N/A _ffi gc dh N/A _lib DH_free N/A N/A N/A _lib SSL_CTX_set_tmp_dh N/A self _context dh N/A set_tmp_ecdh N/A N/A self curve N/A N/A N/A 
        Select a curve to use for ECDHE key exchange.

        :param curve: A curve object to use as returned by either
            :py:meth:`OpenSSL.crypto.get_elliptic_curve` or
            :py:meth:`OpenSSL.crypto.get_elliptic_curves`.

        :return: None
         N/A N/A N/A _lib SSL_CTX_set_tmp_ecdh N/A self _context N/A N/A curve _to_EC_KEY N/A set_cipher_list N/A N/A self cipher_list N/A N/A N/A 
        Set the list of ciphers to be used in this context.

        See the OpenSSL manual for more information (e.g.
        :manpage:`ciphers(1)`).

        :param bytes cipher_list: An OpenSSL cipher string.
        :return: None
         N/A cipher_list N/A _text_to_bytes_and_warn cipher_list cipher_list N/A N/A N/A isinstance cipher_list bytes N/A N/A N/A TypeError cipher_list must be a byte string. N/A N/A _openssl_assert N/A N/A N/A _lib SSL_CTX_set_cipher_list N/A self _context cipher_list 1 N/A set_client_ca_list N/A N/A self certificate_authorities N/A N/A N/A 
        Set the list of preferred client certificate signers for this server
        context.

        This list of certificate authorities will be sent to the client when
        the server requests a client certificate.

        :param certificate_authorities: a sequence of X509Names.
        :return: None
         N/A name_stack N/A N/A _lib sk_X509_NAME_new_null N/A N/A name_stack N/A _ffi NULL N/A N/A N/A _raise_current_error N/A N/A N/A ca_name certificate_authorities N/A N/A N/A N/A isinstance ca_name X509Name N/A N/A N/A TypeError N/A client CAs must be X509Name objects, not %s objects N/A N/A N/A type ca_name __name__ N/A copy N/A N/A _lib X509_NAME_dup N/A ca_name _name N/A N/A copy N/A _ffi NULL N/A N/A N/A _raise_current_error N/A push_result N/A N/A _lib sk_X509_NAME_push name_stack copy N/A N/A push_result N/A N/A N/A N/A _lib X509_NAME_free copy N/A N/A _raise_current_error N/A N/A N/A N/A N/A N/A _lib sk_X509_NAME_free name_stack N/A N/A N/A N/A _lib SSL_CTX_set_client_CA_list N/A self _context name_stack N/A add_client_ca N/A N/A self certificate_authority N/A N/A N/A 
        Add the CA certificate to the list of preferred signers for this
        context.

        The list of certificate authorities will be sent to the client when the
        server requests a client certificate.

        :param certificate_authority: certificate authority's X509 certificate.
        :return: None
         N/A N/A N/A isinstance certificate_authority X509 N/A N/A N/A TypeError certificate_authority must be an X509 instance N/A add_result N/A N/A _lib SSL_CTX_add_client_CA N/A self _context N/A certificate_authority _x509 N/A N/A add_result N/A N/A N/A _raise_current_error N/A set_timeout N/A N/A self timeout N/A N/A N/A 
        Set session timeout

        :param timeout: The timeout in seconds
        :return: The previous session timeout
         N/A N/A N/A isinstance timeout integer_types N/A N/A N/A TypeError timeout must be an integer N/A N/A N/A _lib SSL_CTX_set_timeout N/A self _context timeout N/A get_timeout N/A N/A self N/A N/A N/A 
        Get the session timeout

        :return: The session timeout
         N/A N/A N/A _lib SSL_CTX_get_timeout N/A self _context N/A set_info_callback N/A N/A self callback N/A N/A N/A 
        Set the info callback

        :param callback: The Python callback to use
        :return: None
         wrapper N/A N/A ssl where return_code N/A N/A N/A N/A callback N/A N/A Connection _reverse_mapping N/A ssl where return_code N/A N/A wraps callback N/A N/A self _info_callback N/A N/A _ffi callback void (*)(const SSL *, int, int) wrapper N/A N/A N/A _lib SSL_CTX_set_info_callback N/A self _context N/A self _info_callback N/A get_app_data N/A N/A self N/A N/A N/A 
        Get the application data (supplied via set_app_data())

        :return: The application data
         N/A N/A self _app_data N/A set_app_data N/A N/A self data N/A N/A N/A 
        Set the application data (will be returned from get_app_data())

        :param data: Any Python object
        :return: None
         N/A N/A self _app_data data N/A get_cert_store N/A N/A self N/A N/A N/A 
        Get the certificate store for the context.

        :return: A X509Store object or None if it does not have one.
         N/A store N/A N/A _lib SSL_CTX_get_cert_store N/A self _context N/A N/A store N/A _ffi NULL N/A N/A None N/A pystore N/A N/A X509Store __new__ X509Store N/A N/A pystore _store store N/A pystore N/A set_options N/A N/A self options N/A N/A N/A 
        Add options. Options set before are not cleared!

        :param options: The options to add.
        :return: The new option bitmask.
         N/A N/A N/A isinstance options integer_types N/A N/A N/A TypeError options must be an integer N/A N/A N/A _lib SSL_CTX_set_options N/A self _context options N/A set_mode N/A N/A self mode N/A N/A N/A 
        Add modes via bitmask. Modes set before are not cleared!

        :param mode: The mode to add.
        :return: The new mode bitmask.
         N/A N/A N/A isinstance mode integer_types N/A N/A N/A TypeError mode must be an integer N/A N/A N/A _lib SSL_CTX_set_mode N/A self _context mode N/A set_tlsext_servername_callback N/A N/A self callback N/A N/A N/A 
        Specify a callback function to be called when clients specify a server
        name.

        :param callback: The callback function.  It will be invoked with one
            argument, the Connection instance.
         wrapper N/A N/A ssl alert arg N/A N/A N/A N/A callback N/A N/A Connection _reverse_mapping N/A ssl N/A 0 N/A N/A wraps callback N/A N/A self _tlsext_servername_callback N/A N/A _ffi callback int (*)(const SSL *, int *, void *) wrapper N/A N/A N/A _lib SSL_CTX_set_tlsext_servername_callback N/A self _context N/A self _tlsext_servername_callback N/A _requires_sni set_npn_advertise_callback N/A N/A self callback N/A N/A N/A 
        Specify a callback function that will be called when offering `Next
        Protocol Negotiation
        <https://technotes.googlecode.com/git/nextprotoneg.html>`_ as a server.

        :param callback: The callback function.  It will be invoked with one
            argument, the Connection instance.  It should return a list of
            bytestrings representing the advertised protocols, like
            ``[b'http/1.1', b'spdy/2']``.
         N/A N/A self _npn_advertise_helper N/A _NpnAdvertiseHelper callback N/A N/A self _npn_advertise_callback N/A N/A self _npn_advertise_helper callback N/A N/A N/A _lib SSL_CTX_set_next_protos_advertised_cb N/A self _context N/A self _npn_advertise_callback N/A _ffi NULL N/A _requires_npn set_npn_select_callback N/A N/A self callback N/A N/A N/A 
        Specify a callback function that will be called when a server offers
        Next Protocol Negotiation options.

        :param callback: The callback function.  It will be invoked with two
            arguments: the Connection, and a list of offered protocols as
            bytestrings, e.g. ``[b'http/1.1', b'spdy/2']``.  It should return
            one of those bytestrings, the chosen protocol.
         N/A N/A self _npn_select_helper N/A _NpnSelectHelper callback N/A N/A self _npn_select_callback N/A N/A self _npn_select_helper callback N/A N/A N/A _lib SSL_CTX_set_next_proto_select_cb N/A self _context N/A self _npn_select_callback N/A _ffi NULL N/A _requires_npn set_alpn_protos N/A N/A self protos N/A N/A N/A 
        Specify the clients ALPN protocol list.

        These protocols are offered to the server during protocol negotiation.

        :param protos: A list of the protocols to be offered to the server.
            This list should be a Python list of bytestrings representing the
            protocols to offer, e.g. ``[b'http/1.1', b'spdy/2']``.
         N/A protostr N/A N/A join N/A N/A chain from_iterable N/A N/A N/A int2byte N/A len p p N/A p protos N/A input_str N/A N/A _ffi new unsigned char[] protostr N/A input_str_len N/A N/A _ffi cast unsigned N/A len protostr N/A N/A N/A _lib SSL_CTX_set_alpn_protos N/A self _context input_str input_str_len N/A _requires_alpn set_alpn_select_callback N/A N/A self callback N/A N/A N/A 
        Set the callback to handle ALPN protocol choice.

        :param callback: The callback function.  It will be invoked with two
            arguments: the Connection, and a list of offered protocols as
            bytestrings, e.g ``[b'http/1.1', b'spdy/2']``.  It should return
            one of those bytestrings, the chosen protocol.
         N/A N/A self _alpn_select_helper N/A _ALPNSelectHelper callback N/A N/A self _alpn_select_callback N/A N/A self _alpn_select_helper callback N/A N/A N/A _lib SSL_CTX_set_alpn_select_cb N/A self _context N/A self _alpn_select_callback N/A _ffi NULL N/A _requires_alpn N/A N/A ContextType Context Connection N/A object N/A N/A N/A _reverse_mapping N/A WeakValueDictionary __init__ N/A N/A self context socket N/A None N/A N/A 
        Create a new Connection object, using the given OpenSSL.SSL.Context
        instance and socket.

        :param context: An SSL Context to use for this connection
        :param socket: The socket to use for transport layer
         N/A N/A N/A isinstance context Context N/A N/A N/A TypeError context must be a Context instance N/A ssl N/A N/A _lib SSL_new N/A context _context N/A N/A self _ssl N/A N/A _ffi gc ssl N/A _lib SSL_free N/A N/A self _context context N/A N/A self _app_data None N/A N/A self _npn_advertise_callback_args None N/A N/A self _npn_select_callback_args None N/A N/A self _alpn_select_callback_args None N/A N/A N/A self _reverse_mapping N/A N/A self _ssl self N/A N/A socket None N/A N/A N/A self _socket None N/A N/A self _into_ssl N/A N/A _lib BIO_new N/A N/A _lib BIO_s_mem N/A N/A self _from_ssl N/A N/A _lib BIO_new N/A N/A _lib BIO_s_mem N/A N/A N/A N/A self _into_ssl N/A _ffi NULL N/A N/A self _from_ssl N/A _ffi NULL N/A N/A N/A _raise_current_error N/A N/A N/A _lib SSL_set_bio N/A self _ssl N/A self _into_ssl N/A self _from_ssl N/A N/A N/A self _into_ssl None N/A N/A self _from_ssl None N/A N/A self _socket socket N/A set_result N/A N/A _lib SSL_set_fd N/A self _ssl N/A _asFileDescriptor N/A self _socket N/A N/A set_result N/A N/A N/A _raise_current_error N/A __getattr__ N/A N/A self name N/A N/A N/A 
        Look up attributes on the wrapped socket object if they are not found
        on the Connection object.
         N/A N/A N/A self _socket None N/A N/A N/A AttributeError N/A '%s' object has no attribute '%s' N/A N/A N/A self __class__ __name__ name N/A N/A N/A getattr N/A self _socket name N/A _raise_ssl_error N/A N/A self ssl result N/A N/A N/A N/A N/A N/A self _context _verify_helper None N/A N/A N/A N/A N/A N/A self _context _verify_helper raise_if_problem N/A N/A N/A N/A self _context _npn_advertise_helper None N/A N/A N/A N/A N/A N/A self _context _npn_advertise_helper raise_if_problem N/A N/A N/A N/A self _context _npn_select_helper None N/A N/A N/A N/A N/A N/A self _context _npn_select_helper raise_if_problem N/A N/A N/A N/A self _context _alpn_select_helper None N/A N/A N/A N/A N/A N/A self _context _alpn_select_helper raise_if_problem N/A error N/A N/A _lib SSL_get_error ssl result N/A N/A error N/A _lib SSL_ERROR_WANT_READ N/A N/A N/A WantReadError N/A N/A N/A error N/A _lib SSL_ERROR_WANT_WRITE N/A N/A N/A WantWriteError N/A N/A N/A error N/A _lib SSL_ERROR_ZERO_RETURN N/A N/A N/A ZeroReturnError N/A N/A N/A error N/A _lib SSL_ERROR_WANT_X509_LOOKUP N/A N/A N/A WantX509LookupError N/A N/A N/A error N/A _lib SSL_ERROR_SYSCALL N/A N/A N/A N/A N/A _lib ERR_peek_error 0 N/A N/A N/A result 0 N/A N/A N/A platform win32 N/A N/A errno N/A N/A N/A _ffi getwinerror N/A 0 N/A N/A errno N/A _ffi errno N/A N/A SysCallError errno N/A N/A errorcode get errno N/A N/A N/A SysCallError -1 Unexpected EOF N/A N/A N/A _raise_current_error N/A N/A N/A error N/A _lib SSL_ERROR_NONE N/A N/A N/A N/A N/A _raise_current_error N/A get_context N/A N/A self N/A N/A N/A 
        Get session context
         N/A N/A self _context N/A set_context N/A N/A self context N/A N/A N/A 
        Switch this connection to a new session context

        :param context: A :py:class:`Context` instance giving the new session
            context to use.
         N/A N/A N/A isinstance context Context N/A N/A N/A TypeError context must be a Context instance N/A N/A N/A _lib SSL_set_SSL_CTX N/A self _ssl N/A context _context N/A N/A self _context context N/A get_servername N/A N/A self N/A N/A N/A 
        Retrieve the servername extension value if provided in the client hello
        message, or None if there wasn't one.

        :return: A byte string giving the server name or :py:data:`None`.
         N/A name N/A N/A _lib SSL_get_servername N/A self _ssl N/A _lib TLSEXT_NAMETYPE_host_name N/A N/A name N/A _ffi NULL N/A N/A None N/A N/A N/A _ffi string name N/A _requires_sni set_tlsext_host_name N/A N/A self name N/A N/A N/A 
        Set the value of the servername extension to send in the client hello.

        :param name: A byte string giving the name.
         N/A N/A N/A isinstance name bytes N/A N/A N/A TypeError name must be a byte string N/A N/A N/A name N/A N/A N/A TypeError name must not contain NUL byte N/A N/A N/A _lib SSL_set_tlsext_host_name N/A self _ssl name N/A _requires_sni pending N/A N/A self N/A N/A N/A 
        Get the number of bytes that can be safely read from the connection

        :return: The number of bytes available in the receive buffer.
         N/A N/A N/A _lib SSL_pending N/A self _ssl N/A send N/A N/A self buf flags N/A 0 N/A N/A 
        Send data on the connection. NOTE: If you get one of the WantRead,
        WantWrite or WantX509Lookup exceptions on this, you have to call the
        method again with the SAME buffer.

        :param buf: The string, buffer or memoryview to send
        :param flags: (optional) Included for compatibility with the socket
                      API, the value is ignored
        :return: The number of bytes written
         N/A buf N/A _text_to_bytes_and_warn buf buf N/A N/A isinstance buf _memoryview N/A N/A buf N/A N/A buf tobytes N/A N/A isinstance buf _buffer N/A N/A buf N/A str buf N/A N/A N/A isinstance buf bytes N/A N/A N/A TypeError data must be a memoryview, buffer or byte string N/A result N/A N/A _lib SSL_write N/A self _ssl buf N/A len buf N/A N/A N/A self _raise_ssl_error N/A self _ssl result N/A result N/A N/A write send sendall N/A N/A self buf flags N/A 0 N/A N/A 
        Send "all" data on the connection. This calls send() repeatedly until
        all data is sent. If an error occurs, it's impossible to tell how much
        data has been sent.

        :param buf: The string, buffer or memoryview to send
        :param flags: (optional) Included for compatibility with the socket
                      API, the value is ignored
        :return: The number of bytes written
         N/A buf N/A _text_to_bytes_and_warn buf buf N/A N/A isinstance buf _memoryview N/A N/A buf N/A N/A buf tobytes N/A N/A isinstance buf _buffer N/A N/A buf N/A str buf N/A N/A N/A isinstance buf bytes N/A N/A N/A TypeError buf must be a memoryview, buffer or byte string N/A left_to_send N/A len buf N/A total_sent 0 N/A data N/A N/A _ffi new char[] buf N/A left_to_send N/A N/A result N/A N/A _lib SSL_write N/A self _ssl N/A data total_sent left_to_send N/A N/A N/A self _raise_ssl_error N/A self _ssl result N/A total_sent result N/A left_to_send result N/A recv N/A N/A self bufsiz flags N/A None N/A N/A 
        Receive data on the connection. NOTE: If you get one of the WantRead,
        WantWrite or WantX509Lookup exceptions on this, you have to call the
        method again with the SAME buffer.

        :param bufsiz: The maximum number of bytes to read
        :param flags: (optional) The only supported flag is ``MSG_PEEK``,
            all other flags are ignored.
        :return: The string read from the Connection
         N/A buf N/A N/A _ffi new char[] bufsiz N/A N/A N/A flags None N/A flags N/A socket MSG_PEEK N/A N/A result N/A N/A _lib SSL_peek N/A self _ssl buf bufsiz N/A N/A result N/A N/A _lib SSL_read N/A self _ssl buf bufsiz N/A N/A N/A self _raise_ssl_error N/A self _ssl result N/A N/A N/A N/A _ffi buffer buf result N/A N/A N/A read recv recv_into N/A N/A self buffer nbytes flags N/A None None N/A N/A 
        Receive data on the connection and store the data into a buffer rather
        than creating a new string.

        :param buffer: The buffer to copy into.
        :param nbytes: (optional) The maximum number of bytes to read into the
            buffer. If not present, defaults to the size of the buffer. If
            larger than the size of the buffer, is reduced to the size of the
            buffer.
        :param flags: (optional) The only supported flag is ``MSG_PEEK``,
            all other flags are ignored.
        :return: The number of bytes read into the buffer.
         N/A N/A nbytes None N/A N/A nbytes N/A len buffer N/A N/A nbytes N/A min nbytes N/A len buffer N/A buf N/A N/A _ffi new char[] nbytes N/A N/A N/A flags None N/A flags N/A socket MSG_PEEK N/A N/A result N/A N/A _lib SSL_peek N/A self _ssl buf nbytes N/A N/A result N/A N/A _lib SSL_read N/A self _ssl buf nbytes N/A N/A N/A self _raise_ssl_error N/A self _ssl result N/A N/A N/A N/A buffer N/A result N/A memoryview N/A N/A _ffi buffer buf result N/A N/A N/A NameError N/A N/A N/A buffer N/A result N/A N/A _ffi buffer buf result N/A result N/A _handle_bio_errors N/A N/A self bio result N/A N/A N/A N/A N/A _lib BIO_should_retry bio N/A N/A N/A N/A _lib BIO_should_read bio N/A N/A N/A WantReadError N/A N/A N/A N/A _lib BIO_should_write bio N/A N/A N/A WantWriteError N/A N/A N/A N/A _lib BIO_should_io_special bio N/A N/A N/A ValueError BIO_should_io_special N/A N/A N/A ValueError unknown bio failure N/A N/A N/A _raise_current_error N/A bio_read N/A N/A self bufsiz N/A N/A N/A 
        When using non-socket connections this function reads the "dirty" data
        that would have traveled away on the network.

        :param bufsiz: The maximum number of bytes to read
        :return: The string read.
         N/A N/A N/A self _from_ssl None N/A N/A N/A TypeError Connection sock was not None N/A N/A N/A isinstance bufsiz integer_types N/A N/A N/A TypeError bufsiz must be an integer N/A buf N/A N/A _ffi new char[] bufsiz N/A result N/A N/A _lib BIO_read N/A self _from_ssl buf bufsiz N/A N/A result 0 N/A N/A N/A N/A self _handle_bio_errors N/A self _from_ssl result N/A N/A N/A N/A _ffi buffer buf result N/A N/A bio_write N/A N/A self buf N/A N/A N/A 
        When using non-socket connections this function sends "dirty" data that
        would have traveled in on the network.

        :param buf: The string to put into the memory BIO.
        :return: The number of bytes written
         N/A buf N/A _text_to_bytes_and_warn buf buf N/A N/A N/A self _into_ssl None N/A N/A N/A TypeError Connection sock was not None N/A result N/A N/A _lib BIO_write N/A self _into_ssl buf N/A len buf N/A N/A result 0 N/A N/A N/A N/A self _handle_bio_errors N/A self _into_ssl result N/A result N/A renegotiate N/A N/A self N/A N/A N/A 
        Renegotiate the session.

        :return: True if the renegotiation can be started, False otherwise
        :rtype: bool
         N/A N/A N/A N/A self renegotiate_pending N/A N/A N/A _openssl_assert N/A N/A N/A _lib SSL_renegotiate N/A self _ssl 1 N/A True N/A False N/A do_handshake N/A N/A self N/A N/A N/A 
        Perform an SSL handshake (usually called after renegotiate() or one of
        set_*_state()). This can raise the same exceptions as send and recv.

        :return: None.
         N/A result N/A N/A _lib SSL_do_handshake N/A self _ssl N/A N/A N/A self _raise_ssl_error N/A self _ssl result N/A renegotiate_pending N/A N/A self N/A N/A N/A 
        Check if there's a renegotiation in progress, it will return False once
        a renegotiation is finished.

        :return: Whether there's a renegotiation in progress
        :rtype: bool
         N/A N/A N/A N/A _lib SSL_renegotiate_pending N/A self _ssl 1 N/A total_renegotiations N/A N/A self N/A N/A N/A 
        Find out the total number of renegotiations.

        :return: The number of renegotiations.
        :rtype: int
         N/A N/A N/A _lib SSL_total_renegotiations N/A self _ssl N/A connect N/A N/A self addr N/A N/A N/A 
        Connect to remote host and set up client-side SSL

        :param addr: A remote address
        :return: What the socket's connect method returns
         N/A N/A N/A _lib SSL_set_connect_state N/A self _ssl N/A N/A N/A N/A self _socket connect addr N/A connect_ex N/A N/A self addr N/A N/A N/A 
        Connect to remote host and set up client-side SSL. Note that if the
        socket's connect_ex method doesn't return 0, SSL won't be initialized.

        :param addr: A remove address
        :return: What the socket's connect_ex method returns
         N/A connect_ex N/A N/A self _socket connect_ex N/A N/A N/A self set_connect_state N/A N/A connect_ex addr N/A accept N/A N/A self N/A N/A N/A 
        Accept incoming connection and set up SSL on it

        :return: A (conn,addr) pair where conn is a Connection and addr is an
                 address
         N/A N/A client addr N/A N/A N/A self _socket accept N/A conn N/A Connection N/A self _context client N/A N/A N/A conn set_accept_state N/A N/A conn addr N/A bio_shutdown N/A N/A self N/A N/A N/A 
        When using non-socket connections this function signals end of
        data on the input for this connection.

        :return: None
         N/A N/A N/A self _from_ssl None N/A N/A N/A TypeError Connection sock was not None N/A N/A N/A _lib BIO_set_mem_eof_return N/A self _into_ssl 0 N/A shutdown N/A N/A self N/A N/A N/A 
        Send closure alert

        :return: True if the shutdown completed successfully (i.e. both sides
                 have sent closure alerts), false otherwise (i.e. you have to
                 wait for a ZeroReturnError on a recv() method call
         N/A result N/A N/A _lib SSL_shutdown N/A self _ssl N/A N/A result 0 N/A N/A N/A N/A self _raise_ssl_error N/A self _ssl result N/A N/A N/A result 0 N/A N/A True N/A N/A False N/A get_cipher_list N/A N/A self N/A N/A N/A 
        Retrieve the list of ciphers used by the Connection object.

        :return: A list of native cipher strings.
         N/A ciphers N/A N/A i N/A count N/A N/A result N/A N/A _lib SSL_get_cipher_list N/A self _ssl i N/A N/A result N/A _ffi NULL N/A N/A N/A N/A N/A ciphers append N/A _native N/A N/A _ffi string result N/A ciphers N/A get_client_ca_list N/A N/A self N/A N/A N/A 
        Get CAs whose certificates are suggested for client authentication.

        :return: If this is a server connection, a list of X509Names
            representing the acceptable CAs as set by
            :py:meth:`OpenSSL.SSL.Context.set_client_ca_list` or
            :py:meth:`OpenSSL.SSL.Context.add_client_ca`.  If this is a client
            connection, the list of such X509Names sent by the server, or an
            empty list if that has not yet happened.
         N/A ca_names N/A N/A _lib SSL_get_client_CA_list N/A self _ssl N/A N/A ca_names N/A _ffi NULL N/A N/A N/A N/A result N/A N/A i N/A range N/A N/A _lib sk_X509_NAME_num ca_names N/A N/A name N/A N/A _lib sk_X509_NAME_value ca_names i N/A copy N/A N/A _lib X509_NAME_dup name N/A N/A copy N/A _ffi NULL N/A N/A N/A _raise_current_error N/A pyname N/A N/A X509Name __new__ X509Name N/A N/A pyname _name N/A N/A _ffi gc copy N/A _lib X509_NAME_free N/A N/A N/A result append pyname N/A result N/A makefile N/A N/A self N/A N/A N/A 
        The makefile() method is not implemented, since there is no dup
        semantics for SSL connections

        :raise: NotImplementedError
         N/A N/A NotImplementedError Cannot make file object of OpenSSL.SSL.Connection N/A get_app_data N/A N/A self N/A N/A N/A 
        Get application data

        :return: The application data
         N/A N/A self _app_data N/A set_app_data N/A N/A self data N/A N/A N/A 
        Set application data

        :param data - The application data
        :return: None
         N/A N/A self _app_data data N/A get_shutdown N/A N/A self N/A N/A N/A 
        Get shutdown state

        :return: The shutdown state, a bitvector of SENT_SHUTDOWN,
            RECEIVED_SHUTDOWN.
         N/A N/A N/A _lib SSL_get_shutdown N/A self _ssl N/A set_shutdown N/A N/A self state N/A N/A N/A 
        Set shutdown state

        :param state - bitvector of SENT_SHUTDOWN, RECEIVED_SHUTDOWN.
        :return: None
         N/A N/A N/A isinstance state integer_types N/A N/A N/A TypeError state must be an integer N/A N/A N/A _lib SSL_set_shutdown N/A self _ssl state N/A get_state_string N/A N/A self N/A N/A N/A 
        Retrieve a verbose string detailing the state of the Connection.

        :return: A string representing the state
        :rtype: bytes
         N/A N/A N/A _ffi string N/A N/A _lib SSL_state_string_long N/A self _ssl N/A server_random N/A N/A self N/A N/A N/A 
        Get a copy of the server hello nonce.

        :return: A string representing the state
         N/A N/A N/A N/A self _ssl session N/A _ffi NULL N/A N/A None N/A N/A N/A N/A _ffi buffer N/A N/A N/A self _ssl s3 server_random N/A _lib SSL3_RANDOM_SIZE N/A N/A client_random N/A N/A self N/A N/A N/A 
        Get a copy of the client hello nonce.

        :return: A string representing the state
         N/A N/A N/A N/A self _ssl session N/A _ffi NULL N/A N/A None N/A N/A N/A N/A _ffi buffer N/A N/A N/A self _ssl s3 client_random N/A _lib SSL3_RANDOM_SIZE N/A N/A master_key N/A N/A self N/A N/A N/A 
        Get a copy of the master key.

        :return: A string representing the state
         N/A N/A N/A N/A self _ssl session N/A _ffi NULL N/A N/A None N/A N/A N/A N/A _ffi buffer N/A N/A N/A self _ssl session master_key N/A N/A N/A self _ssl session master_key_length N/A N/A sock_shutdown N/A N/A self N/A args kwargs N/A N/A 
        See shutdown(2)

        :return: What the socket's shutdown() method returns
         N/A N/A N/A N/A self _socket shutdown args kwargs N/A get_peer_certificate N/A N/A self N/A N/A N/A 
        Retrieve the other side's certificate (if any)

        :return: The peer's certificate
         N/A cert N/A N/A _lib SSL_get_peer_certificate N/A self _ssl N/A N/A cert N/A _ffi NULL N/A N/A pycert N/A N/A X509 __new__ X509 N/A N/A pycert _x509 N/A N/A _ffi gc cert N/A _lib X509_free N/A pycert N/A None N/A get_peer_cert_chain N/A N/A self N/A N/A N/A 
        Retrieve the other side's certificate (if any)

        :return: A list of X509 instances giving the peer's certificate chain,
                 or None if it does not have one.
         N/A cert_stack N/A N/A _lib SSL_get_peer_cert_chain N/A self _ssl N/A N/A cert_stack N/A _ffi NULL N/A N/A None N/A result N/A N/A i N/A range N/A N/A _lib sk_X509_num cert_stack N/A N/A cert N/A N/A _lib X509_dup N/A N/A _lib sk_X509_value cert_stack i N/A pycert N/A N/A X509 __new__ X509 N/A N/A pycert _x509 N/A N/A _ffi gc cert N/A _lib X509_free N/A N/A N/A result append pycert N/A result N/A want_read N/A N/A self N/A N/A N/A 
        Checks if more data has to be read from the transport layer to complete
        an operation.

        :return: True iff more data has to be read
         N/A N/A N/A _lib SSL_want_read N/A self _ssl N/A want_write N/A N/A self N/A N/A N/A 
        Checks if there is data to write to the transport layer to complete an
        operation.

        :return: True iff there is data to write
         N/A N/A N/A _lib SSL_want_write N/A self _ssl N/A set_accept_state N/A N/A self N/A N/A N/A 
        Set the connection to work in server mode. The handshake will be
        handled automatically by read/write.

        :return: None
         N/A N/A N/A _lib SSL_set_accept_state N/A self _ssl N/A set_connect_state N/A N/A self N/A N/A N/A 
        Set the connection to work in client mode. The handshake will be
        handled automatically by read/write.

        :return: None
         N/A N/A N/A _lib SSL_set_connect_state N/A self _ssl N/A get_session N/A N/A self N/A N/A N/A 
        Returns the Session currently used.

        @return: An instance of :py:class:`OpenSSL.SSL.Session` or
            :py:obj:`None` if no session exists.
         N/A session N/A N/A _lib SSL_get1_session N/A self _ssl N/A N/A session N/A _ffi NULL N/A N/A None N/A pysession N/A N/A Session __new__ Session N/A N/A pysession _session N/A N/A _ffi gc session N/A _lib SSL_SESSION_free N/A pysession N/A set_session N/A N/A self session N/A N/A N/A 
        Set the session to be used when the TLS/SSL connection is established.

        :param session: A Session instance representing the session to use.
        :returns: None
         N/A N/A N/A isinstance session Session N/A N/A N/A TypeError session must be a Session instance N/A result N/A N/A _lib SSL_set_session N/A self _ssl N/A session _session N/A N/A result N/A N/A N/A _raise_current_error N/A _get_finished_message N/A N/A self function N/A N/A N/A 
        Helper to implement :py:meth:`get_finished` and
        :py:meth:`get_peer_finished`.

        :param function: Either :py:data:`SSL_get_finished`: or
            :py:data:`SSL_get_peer_finished`.

        :return: :py:data:`None` if the desired message has not yet been
            received, otherwise the contents of the message.
        :rtype: :py:class:`bytes` or :py:class:`NoneType`
         N/A empty N/A N/A _ffi new char[] 0 N/A size N/A function N/A self _ssl empty 0 N/A N/A size 0 N/A N/A None N/A buf N/A N/A _ffi new char[] size N/A N/A function N/A self _ssl buf size N/A N/A N/A N/A _ffi buffer buf size N/A N/A get_finished N/A N/A self N/A N/A N/A 
        Obtain the latest `handshake finished` message sent to the peer.

        :return: The contents of the message or :py:obj:`None` if the TLS
            handshake has not yet completed.
        :rtype: :py:class:`bytes` or :py:class:`NoneType`
         N/A N/A N/A self _get_finished_message N/A _lib SSL_get_finished N/A get_peer_finished N/A N/A self N/A N/A N/A 
        Obtain the latest `handshake finished` message received from the peer.

        :return: The contents of the message or :py:obj:`None` if the TLS
            handshake has not yet completed.
        :rtype: :py:class:`bytes` or :py:class:`NoneType`
         N/A N/A N/A self _get_finished_message N/A _lib SSL_get_peer_finished N/A get_cipher_name N/A N/A self N/A N/A N/A 
        Obtain the name of the currently used cipher.

        :returns: The name of the currently used cipher or :py:obj:`None`
            if no connection has been established.
        :rtype: :py:class:`unicode` or :py:class:`NoneType`
         N/A cipher N/A N/A _lib SSL_get_current_cipher N/A self _ssl N/A N/A cipher N/A _ffi NULL N/A N/A None N/A N/A name N/A N/A _ffi string N/A N/A _lib SSL_CIPHER_get_name cipher N/A N/A N/A name decode utf-8 N/A get_cipher_bits N/A N/A self N/A N/A N/A 
        Obtain the number of secret bits of the currently used cipher.

        :returns: The number of secret bits of the currently used cipher
            or :py:obj:`None` if no connection has been established.
        :rtype: :py:class:`int` or :py:class:`NoneType`
         N/A cipher N/A N/A _lib SSL_get_current_cipher N/A self _ssl N/A N/A cipher N/A _ffi NULL N/A N/A None N/A N/A N/A N/A _lib SSL_CIPHER_get_bits cipher N/A _ffi NULL N/A get_cipher_version N/A N/A self N/A N/A N/A 
        Obtain the protocol version of the currently used cipher.

        :returns: The protocol name of the currently used cipher
            or :py:obj:`None` if no connection has been established.
        :rtype: :py:class:`unicode` or :py:class:`NoneType`
         N/A cipher N/A N/A _lib SSL_get_current_cipher N/A self _ssl N/A N/A cipher N/A _ffi NULL N/A N/A None N/A N/A version N/A N/A _ffi string N/A N/A _lib SSL_CIPHER_get_version cipher N/A N/A N/A version decode utf-8 N/A get_protocol_version_name N/A N/A self N/A N/A N/A 
        Obtain the protocol version of the current connection.

        :returns: The TLS version of the current connection, for example
            the value for TLS 1.2 would be ``TLSv1.2``or ``Unknown``
            for connections that were not successfully established.
        :rtype: :py:class:`unicode`
         N/A version N/A N/A _ffi string N/A N/A _lib SSL_get_version N/A self _ssl N/A N/A N/A version decode utf-8 N/A get_protocol_version N/A N/A self N/A N/A N/A 
        Obtain the protocol version of the current connection.

        :returns: The TLS version of the current connection, for example
            the value for TLS 1 would be 0x769.
        :rtype: :py:class:`int`
         N/A version N/A N/A _lib SSL_version N/A self _ssl N/A version N/A get_next_proto_negotiated N/A N/A self N/A N/A N/A 
        Get the protocol that was negotiated by NPN.
         N/A data N/A N/A _ffi new unsigned char ** N/A data_len N/A N/A _ffi new unsigned int * N/A N/A N/A _lib SSL_get0_next_proto_negotiated N/A self _ssl data data_len N/A N/A N/A N/A _ffi buffer N/A data N/A 0 N/A data_len N/A 0 N/A N/A _requires_npn set_alpn_protos N/A N/A self protos N/A N/A N/A 
        Specify the client's ALPN protocol list.

        These protocols are offered to the server during protocol negotiation.

        :param protos: A list of the protocols to be offered to the server.
            This list should be a Python list of bytestrings representing the
            protocols to offer, e.g. ``[b'http/1.1', b'spdy/2']``.
         N/A protostr N/A N/A join N/A N/A chain from_iterable N/A N/A N/A int2byte N/A len p p N/A p protos N/A input_str N/A N/A _ffi new unsigned char[] protostr N/A input_str_len N/A N/A _ffi cast unsigned N/A len protostr N/A N/A N/A _lib SSL_set_alpn_protos N/A self _ssl input_str input_str_len N/A _requires_alpn get_alpn_proto_negotiated N/A N/A self N/A N/A N/A 
        Get the protocol that was negotiated by ALPN.
         N/A data N/A N/A _ffi new unsigned char ** N/A data_len N/A N/A _ffi new unsigned int * N/A N/A N/A _lib SSL_get0_alpn_selected N/A self _ssl data data_len N/A N/A data_len N/A N/A N/A N/A N/A N/A _ffi buffer N/A data N/A 0 N/A data_len N/A 0 N/A N/A _requires_alpn N/A N/A ConnectionType Connection N/A N/A N/A _lib SSL_library_init