Module Expr Str ImportFrom alias alias Import alias ImportFrom alias alias Import alias Import alias ImportFrom alias alias alias Import alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias identifier alias ImportFrom alias alias ImportFrom alias ClassDef bases body Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Delete AttributeDel NameLoad attr AttributeDel NameLoad attr AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpSub NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr orelse AugAssignAdd AttributeStore NameLoad attr NameLoad If CompareLt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareLtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body If Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd BinOpAdd AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad BinOpMod Str TupleLoad Call NameLoad NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr NameLoad decorator_list decorator_list Call NameLoad NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Pass orelse Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Num Num Num Num body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list decorator_list Call NameLoad NameLoad ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Num Num Num Num body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call NameLoad NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str If CompareNotIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call Call NameLoad NameLoad BinOpAdd Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore NameStore NameStore NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise Call NameLoad Str orelse If CompareNotIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameLoad If CompareNotEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad If CompareIn TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign NameStore ListLoad While AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body While NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Num TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Num Num Num Num body Expr Str If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr Call AttributeLoad NameLoad attr 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 For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Str Assert Call NameLoad NameLoad BinOpMod Str NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Return TupleLoad NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str Assert Call NameLoad NameLoad BinOpMod Str NameLoad Assert CompareGtE NameLoad Num BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad While CompareNotEq NameLoad Num body Assign NameStore BinOpFloorDiv BinOpSub NameLoad Num Num If CompareLtE SubscriptLoad NameLoad Index NameLoad NameLoad body Break Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp NameLoad comprehension NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body AugAssignSub AttributeStore NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Assign NameStore BinOpSub AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call AttributeLoad NameLoad attr Assign NameStore Num Return Call NameLoad Num Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num If CompareEq NameLoad NameLoad body Break Delete SubscriptDel AttributeLoad NameLoad attr Slice NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr While BoolOpAnd AttributeLoad NameLoad attr CompareLtE AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignSub AttributeStore NameLoad attr Num Continue If CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Continue TryExcept body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore Str AugAssignAdd NameStore BinOpAdd Str Str AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr attr attr Str Str AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareGt AttributeLoad NameLoad attr Num CompareGt AttributeLoad NameLoad attr BinOpRShift Call NameLoad AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num If BoolOpAnd Call NameLoad NameLoad NameLoad CompareNotIn Str NameLoad body Return NameLoad Return NameLoad decorator_list If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list If Call AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assert Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad decorator_list orelse FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assert Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad ClassDef bases body Expr Str Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list Call NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Return If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body While AttributeLoad NameLoad attr body TryExcept body While AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpAnd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list Assign NameStore ListLoad
N/A N/A 
Very basic functionality for a Reactor implementation.
 __future__ division absolute_import N/A socket zope.interface implementer classImplements N/A sys N/A warnings heapq heappush heappop heapify N/A traceback twisted.internet.interfaces IReactorCore IReactorTime IReactorThreads twisted.internet.interfaces IResolverSimple IReactorPluggableResolver twisted.internet.interfaces IConnector IDelayedCall twisted.internet fdesc main error abstract defer threads twisted.python log failure reflect twisted.python.compat unicode iteritems twisted.python.runtime seconds runtimeSeconds platform twisted.internet.defer Deferred DeferredList twisted.python threadable DelayedCall N/A N/A N/A debug False N/A _str None __init__ N/A N/A self time func args kw cancel reset seconds N/A runtimeSeconds N/A N/A 
        @param time: Seconds from the epoch at which to call C{func}.
        @param func: The callable to call.
        @param args: The positional arguments to pass to the callable.
        @param kw: The keyword arguments to pass to the callable.
        @param cancel: A callable which will be called with this
            DelayedCall before cancellation.
        @param reset: A callable which will be called with this
            DelayedCall after changing this DelayedCall's scheduled
            execution time. The callable should adjust any necessary
            scheduling details to ensure this DelayedCall is invoked
            at the new appropriate time.
        @param seconds: If provided, a no-argument callable which will be
            used to determine the current time any time that information is
            needed.
         N/A N/A N/A self time N/A self func N/A self args N/A self kw N/A time func args kw N/A N/A self resetter reset N/A N/A self canceller cancel N/A N/A self seconds seconds N/A N/A self cancelled N/A self called 0 N/A N/A self delayed_time 0 N/A N/A self debug N/A N/A N/A self creator N/A N/A N/A traceback format_stack N/A -2 N/A getTime N/A N/A self N/A N/A N/A Return the time at which this call will fire

        @rtype: C{float}
        @return: The number of seconds after the epoch at which this call is
        scheduled to be made.
         N/A N/A N/A self time N/A self delayed_time N/A cancel N/A N/A self N/A N/A N/A Unschedule this call

        @raise AlreadyCancelled: Raised if this call has already been
        unscheduled.

        @raise AlreadyCalled: Raised if this call has already been made.
         N/A N/A self cancelled N/A N/A N/A error AlreadyCancelled N/A N/A N/A self called N/A N/A N/A error AlreadyCalled N/A N/A N/A N/A self canceller self N/A N/A self cancelled 1 N/A N/A self debug N/A N/A N/A self _str N/A bytes self N/A N/A self func N/A self args N/A self kw N/A reset N/A N/A self secondsFromNow N/A N/A N/A Reschedule this call for a different time

        @type secondsFromNow: C{float}
        @param secondsFromNow: The number of seconds from the time of the
        C{reset} call at which this call will be scheduled.

        @raise AlreadyCancelled: Raised if this call has been cancelled.
        @raise AlreadyCalled: Raised if this call has already been made.
         N/A N/A self cancelled N/A N/A N/A error AlreadyCancelled N/A N/A N/A self called N/A N/A N/A error AlreadyCalled N/A N/A newTime N/A N/A N/A self seconds secondsFromNow N/A N/A newTime N/A self time N/A N/A N/A self delayed_time 0 N/A N/A self time newTime N/A N/A N/A self resetter self N/A N/A N/A self delayed_time N/A newTime N/A self time N/A delay N/A N/A self secondsLater N/A N/A N/A Reschedule this call for a later time

        @type secondsLater: C{float}
        @param secondsLater: The number of seconds after the originally
        scheduled time for which to reschedule this call.

        @raise AlreadyCancelled: Raised if this call has been cancelled.
        @raise AlreadyCalled: Raised if this call has already been made.
         N/A N/A self cancelled N/A N/A N/A error AlreadyCancelled N/A N/A N/A self called N/A N/A N/A error AlreadyCalled N/A N/A N/A self delayed_time secondsLater N/A N/A N/A self delayed_time 0 N/A N/A N/A N/A self activate_delay N/A N/A N/A self resetter self N/A activate_delay N/A N/A self N/A N/A N/A N/A self time N/A self delayed_time N/A N/A self delayed_time 0 N/A active N/A N/A self N/A N/A N/A Determine whether this call is still pending

        @rtype: C{bool}
        @return: True if this call has not yet been made or cancelled,
        False otherwise.
         N/A N/A N/A N/A self cancelled N/A self called N/A __le__ N/A N/A self other N/A N/A N/A 
        Implement C{<=} operator between two L{DelayedCall} instances.

        Comparison is based on the C{time} attribute (unadjusted by the
        delayed time).
         N/A N/A N/A self time N/A other time N/A __lt__ N/A N/A self other N/A N/A N/A 
        Implement C{<} operator between two L{DelayedCall} instances.

        Comparison is based on the C{time} attribute (unadjusted by the
        delayed time).
         N/A N/A N/A self time N/A other time N/A __str__ N/A N/A self N/A N/A N/A N/A N/A self _str None N/A N/A N/A self _str N/A N/A hasattr self func N/A N/A N/A hasattr N/A self func __qualname__ N/A N/A func N/A N/A self func __qualname__ N/A N/A N/A hasattr N/A self func __name__ N/A N/A func N/A N/A self func func_name N/A N/A hasattr N/A self func im_class N/A N/A func N/A N/A N/A N/A N/A self func im_class __name__ . func N/A N/A func N/A N/A reflect safe_repr N/A self func N/A N/A func None N/A now N/A N/A self seconds N/A L N/A N/A <DelayedCall 0x%x [%ss] called=%s cancelled=%s N/A N/A id self N/A N/A self time now N/A self called N/A self cancelled N/A N/A func None N/A N/A N/A N/A L extend N/A func ( N/A N/A self args N/A N/A N/A N/A L append N/A N/A ,  join N/A N/A N/A reflect safe_repr e N/A e N/A self args N/A N/A self kw N/A N/A N/A N/A L append ,  N/A N/A self kw N/A N/A N/A N/A L append N/A N/A ,  join N/A N/A %s=%s N/A k N/A N/A reflect safe_repr v N/A N/A k v N/A N/A N/A self kw items N/A N/A N/A L append ) N/A N/A self debug N/A N/A N/A N/A L append N/A 

traceback at creation: 

%s N/A N/A join N/A self creator N/A N/A N/A L append > N/A N/A N/A join L N/A N/A N/A implementer IDelayedCall ThreadedResolver N/A object N/A N/A 
    L{ThreadedResolver} uses a reactor, a threadpool, and
    L{socket.gethostbyname} to perform name lookups without blocking the
    reactor thread.  It also supports timeouts indepedently from whatever
    timeout logic L{socket.gethostbyname} might have.

    @ivar reactor: The reactor the threadpool of which will be used to call
        L{socket.gethostbyname} and the I/O thread of which the result will be
        delivered.
     __init__ N/A N/A self reactor N/A N/A N/A N/A self reactor reactor N/A N/A self _runningQueries N/A N/A _fail N/A N/A self name err N/A N/A N/A err N/A N/A error DNSLookupError N/A address %r not found: %s N/A name err N/A N/A N/A failure Failure err N/A _cleanup N/A N/A self name lookupDeferred N/A N/A N/A N/A userDeferred cancelCall N/A N/A self _runningQueries N/A lookupDeferred N/A N/A N/A self _runningQueries N/A lookupDeferred N/A N/A N/A userDeferred errback N/A N/A self _fail name timeout error N/A _checkTimeout N/A N/A self result name lookupDeferred N/A N/A N/A N/A N/A N/A userDeferred cancelCall N/A N/A self _runningQueries N/A lookupDeferred N/A N/A N/A KeyError N/A N/A N/A N/A N/A N/A self _runningQueries N/A lookupDeferred N/A N/A N/A cancelCall cancel N/A N/A isinstance result N/A failure Failure N/A N/A N/A N/A userDeferred errback N/A N/A self _fail name N/A N/A result getErrorMessage N/A N/A N/A N/A userDeferred callback result N/A getHostByName N/A N/A self name timeout N/A N/A 1 3 11 45 N/A N/A 
        See L{twisted.internet.interfaces.IResolverSimple.getHostByName}.

        Note that the elements of C{timeout} are summed and the result is used
        as a timeout for the lookup.  Any intermediate timeout or retry logic
        is left up to the platform via L{socket.gethostbyname}.
         N/A timeout N/A N/A timeoutDelay N/A sum timeout N/A N/A timeoutDelay 60 N/A userDeferred N/A N/A defer Deferred N/A lookupDeferred N/A N/A threads deferToThreadPool N/A self reactor N/A N/A N/A self reactor getThreadPool N/A socket gethostbyname name N/A cancelCall N/A N/A N/A self reactor callLater timeoutDelay N/A self _cleanup name lookupDeferred N/A N/A N/A self _runningQueries N/A lookupDeferred N/A userDeferred cancelCall N/A N/A N/A lookupDeferred addBoth N/A self _checkTimeout name lookupDeferred N/A userDeferred N/A N/A N/A implementer IResolverSimple BlockingResolver N/A N/A getHostByName N/A N/A self name timeout N/A N/A 1 3 11 45 N/A N/A N/A N/A address N/A N/A socket gethostbyname name N/A N/A N/A N/A socket error N/A N/A msg N/A address %r not found N/A name N/A err N/A N/A error DNSLookupError msg N/A N/A N/A defer fail err N/A N/A N/A N/A defer succeed address N/A N/A N/A implementer IResolverSimple _ThreePhaseEvent N/A object N/A N/A 
    Collection of callables (with arguments) which can be invoked as a group in
    a particular order.

    This provides the underlying implementation for the reactor's system event
    triggers.  An instance of this class tracks triggers for all phases of a
    single type of event.

    @ivar before: A list of the before-phase triggers containing three-tuples
        of a callable, a tuple of positional arguments, and a dict of keyword
        arguments

    @ivar finishedBefore: A list of the before-phase triggers which have
        already been executed.  This is only populated in the C{'BEFORE'} state.

    @ivar during: A list of the during-phase triggers containing three-tuples
        of a callable, a tuple of positional arguments, and a dict of keyword
        arguments

    @ivar after: A list of the after-phase triggers containing three-tuples
        of a callable, a tuple of positional arguments, and a dict of keyword
        arguments

    @ivar state: A string indicating what is currently going on with this
        object.  One of C{'BASE'} (for when nothing in particular is happening;
        this is the initial value), C{'BEFORE'} (when the before-phase triggers
        are in the process of being executed).
     __init__ N/A N/A self N/A N/A N/A N/A self before N/A N/A N/A self during N/A N/A N/A self after N/A N/A N/A self state BASE N/A addTrigger N/A N/A self phase callable N/A args kwargs N/A N/A 
        Add a trigger to the indicate phase.

        @param phase: One of C{'before'}, C{'during'}, or C{'after'}.

        @param callable: An object to be called when this event is triggered.
        @param *args: Positional arguments to pass to C{callable}.
        @param **kwargs: Keyword arguments to pass to C{callable}.

        @return: An opaque handle which may be passed to L{removeTrigger} to
            reverse the effects of calling this method.
         N/A N/A phase N/A before during after N/A N/A N/A KeyError invalid phase N/A N/A N/A N/A getattr self phase append N/A callable args kwargs N/A N/A phase callable args kwargs N/A removeTrigger N/A N/A self handle N/A N/A N/A 
        Remove a previously added trigger callable.

        @param handle: An object previously returned by L{addTrigger}.  The
            trigger added by that call will be removed.

        @raise ValueError: If the trigger associated with C{handle} has already
            been removed or if C{handle} is not a valid handle.
         N/A N/A N/A getattr self N/A removeTrigger_ N/A self state handle N/A removeTrigger_BASE N/A N/A self handle N/A N/A N/A 
        Just try to remove the trigger.

        @see: removeTrigger
         N/A N/A N/A N/A phase callable args kwargs handle N/A N/A N/A N/A TypeError ValueError N/A N/A N/A ValueError invalid trigger handle N/A N/A N/A phase N/A before during after N/A N/A N/A KeyError invalid phase N/A N/A N/A N/A getattr self phase remove N/A callable args kwargs N/A removeTrigger_BEFORE N/A N/A self handle N/A N/A N/A 
        Remove the trigger if it has yet to be executed, otherwise emit a
        warning that in the future an exception will be raised when removing an
        already-executed trigger.

        @see: removeTrigger
         N/A N/A phase callable args kwargs handle N/A N/A phase before N/A N/A N/A N/A self removeTrigger_BASE handle N/A N/A N/A callable args kwargs N/A self finishedBefore N/A N/A N/A N/A warnings warn Removing already-fired system event triggers will raise an exception in a future version of Twisted. category DeprecationWarning stacklevel 3 N/A N/A N/A N/A self removeTrigger_BASE handle N/A fireEvent N/A N/A self N/A N/A N/A 
        Call the triggers added to this event.
         N/A N/A self state BEFORE N/A N/A self finishedBefore N/A N/A beforeResults N/A N/A N/A self before N/A N/A N/A callable args kwargs N/A N/A N/A self before pop 0 N/A N/A N/A N/A self finishedBefore append N/A callable args kwargs N/A N/A N/A result N/A callable args kwargs N/A N/A N/A N/A N/A N/A log err N/A N/A N/A isinstance result Deferred N/A N/A N/A N/A beforeResults append result N/A N/A N/A N/A DeferredList beforeResults addCallback N/A self _continueFiring N/A _continueFiring N/A N/A self ignored N/A N/A N/A 
        Call the during and after phase triggers for this event.
         N/A N/A self state BASE N/A N/A self finishedBefore N/A N/A phase N/A N/A self during N/A self after N/A N/A phase N/A N/A N/A callable args kwargs N/A N/A phase pop 0 N/A N/A N/A N/A callable args kwargs N/A N/A N/A N/A N/A N/A log err N/A N/A ReactorBase N/A object N/A N/A 
    Default base class for Reactors.

    @type _stopped: C{bool}
    @ivar _stopped: A flag which is true between paired calls to C{reactor.run}
        and C{reactor.stop}.  This should be replaced with an explicit state
        machine.

    @type _justStopped: C{bool}
    @ivar _justStopped: A flag which is true between the time C{reactor.stop}
        is called and the time the shutdown system event is fired.  This is
        used to determine whether that event should be fired after each
        iteration through the mainloop.  This should be replaced with an
        explicit state machine.

    @type _started: C{bool}
    @ivar _started: A flag which is true from the time C{reactor.run} is called
        until the time C{reactor.run} returns.  This is used to prevent calls
        to C{reactor.run} on a running reactor.  This should be replaced with
        an explicit state machine.

    @ivar running: See L{IReactorCore.running}

    @ivar _registerAsIOThread: A flag controlling whether the reactor will
        register the thread it is running in as the I/O thread when it starts.
        If C{True}, registration will be done, otherwise it will not be.
     N/A _registerAsIOThread True N/A _stopped True N/A installed False N/A usingThreads False N/A resolver N/A BlockingResolver N/A __name__ twisted.internet.reactor __init__ N/A N/A self N/A N/A N/A N/A self threadCallQueue N/A N/A N/A self _eventTriggers N/A N/A N/A self _pendingTimedCalls N/A N/A N/A self _newTimedCalls N/A N/A N/A self _cancellations 0 N/A N/A self running False N/A N/A self _started False N/A N/A self _justStopped False N/A N/A self _startedBefore False N/A N/A self _internalReaders N/A set N/A N/A self waker None N/A N/A N/A self addSystemEventTrigger during startup N/A self _reallyStartRunning N/A N/A N/A self addSystemEventTrigger during shutdown N/A self crash N/A N/A N/A self addSystemEventTrigger during shutdown N/A self disconnectAll N/A N/A N/A platform supportsThreads N/A N/A N/A N/A self _initThreads N/A N/A N/A self installWaker N/A N/A _lock None installWaker N/A N/A self N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement installWaker N/A installResolver N/A N/A self resolver N/A N/A N/A N/A N/A IResolverSimple providedBy resolver N/A oldResolver N/A self resolver N/A N/A self resolver resolver N/A oldResolver N/A wakeUp N/A N/A self N/A N/A N/A 
        Wake up the event loop.
         N/A N/A self waker N/A N/A N/A N/A N/A self waker wakeUp N/A doIteration N/A N/A self delay N/A N/A N/A 
        Do one iteration over the readers and writers which have been added.
         N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement doIteration N/A addReader N/A N/A self reader N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement addReader N/A addWriter N/A N/A self writer N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement addWriter N/A removeReader N/A N/A self reader N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement removeReader N/A removeWriter N/A N/A self writer N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement removeWriter N/A removeAll N/A N/A self N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement removeAll N/A getReaders N/A N/A self N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement getReaders N/A getWriters N/A N/A self N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement getWriters N/A resolve N/A N/A self name timeout N/A N/A 1 3 11 45 N/A N/A Return a Deferred that will resolve a hostname.
         N/A N/A name N/A N/A N/A N/A defer succeed 0.0.0.0 N/A N/A N/A abstract isIPAddress name N/A N/A N/A N/A defer succeed name N/A N/A N/A N/A self resolver getHostByName name timeout N/A stop N/A N/A self N/A N/A N/A 
        See twisted.internet.interfaces.IReactorCore.stop.
         N/A N/A self _stopped N/A N/A N/A N/A error ReactorNotRunning Can't stop reactor that isn't running. N/A N/A self _stopped True N/A N/A self _justStopped True N/A N/A self _startedBefore True N/A crash N/A N/A self N/A N/A N/A 
        See twisted.internet.interfaces.IReactorCore.crash.

        Reset reactor state tracking attributes and re-initialize certain
        state-transition helpers which were set up in C{__init__} but later
        destroyed (through use).
         N/A N/A self _started False N/A N/A self running False N/A N/A N/A self addSystemEventTrigger during startup N/A self _reallyStartRunning N/A sigInt N/A N/A self N/A args N/A N/A Handle a SIGINT interrupt.
         N/A N/A N/A log msg Received SIGINT, shutting down. N/A N/A N/A self callFromThread N/A self stop N/A sigBreak N/A N/A self N/A args N/A N/A Handle a SIGBREAK interrupt.
         N/A N/A N/A log msg Received SIGBREAK, shutting down. N/A N/A N/A self callFromThread N/A self stop N/A sigTerm N/A N/A self N/A args N/A N/A Handle a SIGTERM interrupt.
         N/A N/A N/A log msg Received SIGTERM, shutting down. N/A N/A N/A self callFromThread N/A self stop N/A disconnectAll N/A N/A self N/A N/A N/A Disconnect every reader, and writer in the system.
         N/A selectables N/A N/A self removeAll N/A reader selectables N/A N/A N/A N/A log callWithLogger reader N/A reader connectionLost N/A N/A failure Failure N/A main CONNECTION_LOST N/A iterate N/A N/A self delay N/A 0 N/A N/A See twisted.internet.interfaces.IReactorCore.iterate.
         N/A N/A N/A self runUntilCurrent N/A N/A N/A self doIteration delay N/A fireSystemEvent N/A N/A self eventType N/A N/A N/A See twisted.internet.interfaces.IReactorCore.fireSystemEvent.
         N/A event N/A N/A N/A self _eventTriggers get eventType N/A N/A event None N/A N/A N/A N/A event fireEvent N/A addSystemEventTrigger N/A N/A self _phase _eventType _f N/A args kw N/A N/A See twisted.internet.interfaces.IReactorCore.addSystemEventTrigger.
         N/A N/A callable _f N/A %s is not callable _f N/A N/A _eventType N/A self _eventTriggers N/A N/A N/A N/A self _eventTriggers N/A _eventType N/A _ThreePhaseEvent N/A N/A _eventType N/A N/A N/A N/A self _eventTriggers N/A _eventType addTrigger _phase _f args kw N/A removeSystemEventTrigger N/A N/A self triggerID N/A N/A N/A See twisted.internet.interfaces.IReactorCore.removeSystemEventTrigger.
         N/A N/A eventType handle triggerID N/A N/A N/A N/A N/A self _eventTriggers N/A eventType removeTrigger handle N/A callWhenRunning N/A N/A self _callable N/A args kw N/A N/A See twisted.internet.interfaces.IReactorCore.callWhenRunning.
         N/A N/A self running N/A N/A N/A _callable args kw N/A N/A N/A N/A self addSystemEventTrigger after startup _callable args kw N/A startRunning N/A N/A self N/A N/A N/A 
        Method called when reactor starts: do some initialization and fire
        startup events.

        Don't call this directly, call reactor.run() instead: it should take
        care of calling this.

        This method is somewhat misnamed.  The reactor will not necessarily be
        in the running state by the time this method returns.  The only
        guarantee is that it will be on its way to the running state.
         N/A N/A self _started N/A N/A N/A N/A error ReactorAlreadyRunning N/A N/A self _startedBefore N/A N/A N/A N/A error ReactorNotRestartable N/A N/A self _started True N/A N/A self _stopped False N/A N/A self _registerAsIOThread N/A N/A N/A N/A threadable registerAsIOThread N/A N/A N/A self fireSystemEvent startup N/A _reallyStartRunning N/A N/A self N/A N/A N/A 
        Method called to transition to the running state.  This should happen
        in the I{during startup} event trigger phase.
         N/A N/A self running True N/A N/A seconds N/A staticmethod runtimeSeconds callLater N/A N/A self _seconds _f N/A args kw N/A N/A See twisted.internet.interfaces.IReactorTime.callLater.
         N/A N/A callable _f N/A %s is not callable _f N/A N/A _seconds 0 N/A %s is not greater than or equal to 0 seconds N/A _seconds N/A tple N/A DelayedCall N/A N/A N/A self seconds _seconds _f args kw N/A self _cancelCallLater N/A self _moveCallLaterSooner seconds N/A self seconds N/A N/A N/A N/A self _newTimedCalls append tple N/A tple N/A _moveCallLaterSooner N/A N/A self tple N/A N/A N/A heap N/A self _pendingTimedCalls N/A N/A N/A pos N/A N/A heap index tple N/A elt N/A heap N/A pos N/A N/A pos 0 N/A N/A parent N/A N/A pos 1 2 N/A N/A N/A heap N/A parent elt N/A N/A N/A N/A heap N/A pos N/A heap N/A parent N/A pos parent N/A N/A heap N/A pos elt N/A N/A N/A ValueError N/A N/A N/A _cancelCallLater N/A N/A self tple N/A N/A N/A N/A self _cancellations 1 N/A getDelayedCalls N/A N/A self N/A N/A N/A Return all the outstanding delayed calls in the system.
        They are returned in no particular order.
        This method is not efficient -- it is really only meant for
        test cases. N/A N/A x N/A x N/A N/A self _pendingTimedCalls N/A self _newTimedCalls N/A N/A x cancelled N/A _insertNewDelayedCalls N/A N/A self N/A N/A N/A call N/A self _newTimedCalls N/A N/A N/A call cancelled N/A N/A N/A self _cancellations 1 N/A N/A N/A N/A call activate_delay N/A N/A heappush N/A self _pendingTimedCalls call N/A N/A self _newTimedCalls N/A N/A timeout N/A N/A self N/A N/A N/A 
        Determine the longest time the reactor may sleep (waiting on I/O
        notification, perhaps) before it must wake up to service a time-related
        event.

        @return: The maximum number of seconds the reactor may sleep.
        @rtype: L{float}
         N/A N/A N/A self _insertNewDelayedCalls N/A N/A N/A self _pendingTimedCalls N/A N/A None N/A delay N/A N/A N/A N/A self _pendingTimedCalls N/A 0 time N/A N/A self seconds N/A longest 2147483 N/A N/A max 0 N/A min longest delay N/A runUntilCurrent N/A N/A self N/A N/A N/A Run all pending timed calls.
         N/A N/A self threadCallQueue N/A N/A count 0 N/A total N/A len N/A self threadCallQueue N/A N/A f a kw N/A self threadCallQueue N/A N/A N/A N/A N/A f a kw N/A N/A N/A N/A N/A N/A log err N/A count 1 N/A N/A count total N/A N/A N/A N/A N/A self threadCallQueue N/A count N/A N/A self threadCallQueue N/A N/A N/A N/A self wakeUp N/A N/A N/A self _insertNewDelayedCalls N/A now N/A N/A self seconds N/A N/A N/A self _pendingTimedCalls N/A N/A N/A N/A self _pendingTimedCalls N/A 0 time now N/A N/A call N/A heappop N/A self _pendingTimedCalls N/A N/A call cancelled N/A N/A N/A self _cancellations 1 N/A N/A N/A N/A call delayed_time 0 N/A N/A N/A N/A call activate_delay N/A N/A heappush N/A self _pendingTimedCalls call N/A N/A N/A N/A N/A call called 1 N/A N/A N/A call func N/A call args N/A call kw N/A N/A N/A N/A N/A N/A log deferr N/A N/A hasattr call creator N/A N/A e N/A e N/A  C: previous exception occurred in  a DelayedCall created here:
 N/A e  C: N/A e N/A N/A N/A N/A N/A N/A join N/A call creator rstrip replace 
 C: N/A e N/A N/A N/A log msg e N/A N/A N/A N/A self _cancellations 50 N/A N/A self _cancellations N/A N/A len N/A self _pendingTimedCalls 1 N/A N/A N/A self _cancellations 0 N/A N/A self _pendingTimedCalls N/A x N/A x N/A self _pendingTimedCalls N/A N/A x cancelled N/A N/A heapify N/A self _pendingTimedCalls N/A N/A self _justStopped N/A N/A N/A self _justStopped False N/A N/A N/A self fireSystemEvent shutdown N/A _checkProcessArgs N/A N/A self args env N/A N/A N/A 
        Check for valid arguments and environment to spawnProcess.

        @return: A two element tuple giving values to use when creating the
        process.  The first element of the tuple is a C{list} of C{str}
        giving the values for argv of the child process.  The second element
        of the tuple is either C{None} if C{env} was C{None} or a C{dict}
        mapping C{str} environment keys to C{str} environment values.
         N/A defaultEncoding N/A N/A sys getdefaultencoding argChecker N/A N/A arg N/A N/A N/A 
            Return either a str or None.  If the given value is not
            allowable for some reason, None is returned.  Otherwise, a
            possibly different object which should be used in place of arg
            is returned.  This forces unicode encoding to happen now, rather
            than implicitly later.
             N/A N/A isinstance arg unicode N/A N/A N/A N/A arg N/A N/A arg encode defaultEncoding N/A N/A N/A UnicodeEncodeError N/A N/A None N/A N/A N/A warnings warn Argument strings and environment keys/values passed to reactor.spawnProcess should be str, not unicode. category DeprecationWarning stacklevel 4 N/A N/A N/A isinstance arg bytes N/A arg N/A N/A arg N/A None N/A N/A N/A N/A isinstance args N/A tuple list N/A N/A N/A TypeError Arguments must be a tuple or list N/A outputArgs N/A N/A arg args N/A N/A arg N/A argChecker arg N/A N/A arg None N/A N/A N/A TypeError Arguments contain a non-string value N/A N/A N/A N/A outputArgs append arg N/A outputEnv None N/A N/A env None N/A N/A outputEnv N/A N/A N/A key val N/A iteritems env N/A N/A key N/A argChecker key N/A N/A key None N/A N/A N/A TypeError Environment contains a non-string key N/A val N/A argChecker val N/A N/A val None N/A N/A N/A TypeError Environment contains a non-string value N/A N/A outputEnv N/A key val N/A N/A outputArgs outputEnv N/A N/A N/A N/A platform supportsThreads N/A N/A threadpool None N/A _threadpoolStartupID None N/A threadpoolShutdownID None _initThreads N/A N/A self N/A N/A N/A N/A self usingThreads True N/A N/A self resolver N/A ThreadedResolver self N/A callFromThread N/A N/A self f N/A args kw N/A N/A 
            See L{twisted.internet.interfaces.IReactorThreads.callFromThread}.
             N/A N/A callable f N/A %s is not callable N/A f N/A N/A N/A N/A self threadCallQueue append N/A f args kw N/A N/A N/A self wakeUp N/A _initThreadPool N/A N/A self N/A N/A N/A 
            Create the threadpool accessible with callFromThread.
             twisted.python threadpool N/A N/A self threadpool N/A N/A threadpool ThreadPool 0 10 twisted.internet.reactor N/A N/A self _threadpoolStartupID N/A N/A self callWhenRunning N/A N/A self threadpool start N/A N/A self threadpoolShutdownID N/A N/A self addSystemEventTrigger during shutdown N/A self _stopThreadPool N/A _uninstallHandler N/A N/A self N/A N/A N/A N/A _stopThreadPool N/A N/A self N/A N/A N/A 
            Stop the reactor threadpool.  This method is only valid if there
            is currently a threadpool (created by L{_initThreadPool}).  It
            is not intended to be called directly; instead, it will be
            called by a shutdown trigger created in L{_initThreadPool}.
             N/A triggers N/A N/A self _threadpoolStartupID N/A self threadpoolShutdownID N/A trigger N/A filter None triggers N/A N/A N/A N/A N/A N/A self removeSystemEventTrigger trigger N/A N/A N/A ValueError N/A N/A N/A N/A self _threadpoolStartupID None N/A N/A self threadpoolShutdownID None N/A N/A N/A N/A self threadpool stop N/A N/A self threadpool None N/A getThreadPool N/A N/A self N/A N/A N/A 
            See L{twisted.internet.interfaces.IReactorThreads.getThreadPool}.
             N/A N/A N/A self threadpool None N/A N/A N/A N/A self _initThreadPool N/A N/A self threadpool N/A callInThread N/A N/A self _callable N/A args kwargs N/A N/A 
            See L{twisted.internet.interfaces.IReactorInThreads.callInThread}.
             N/A N/A N/A N/A N/A self getThreadPool callInThread _callable args kwargs N/A suggestThreadPoolSize N/A N/A self size N/A N/A N/A 
            See L{twisted.internet.interfaces.IReactorThreads.suggestThreadPoolSize}.
             N/A N/A N/A N/A N/A self getThreadPool adjustPoolsize maxthreads size N/A N/A callFromThread N/A N/A self f N/A args kw N/A N/A N/A callable f N/A %s is not callable N/A f N/A N/A N/A N/A self threadCallQueue append N/A f args kw N/A N/A N/A implementer IReactorCore IReactorTime IReactorPluggableResolver N/A N/A N/A platform supportsThreads N/A N/A N/A classImplements ReactorBase IReactorThreads BaseConnector N/A N/A N/A Basic implementation of connector.

    State can be: "connecting", "connected", "disconnected"
     N/A timeoutID None N/A factoryStarted 0 __init__ N/A N/A self factory timeout reactor N/A N/A N/A N/A self state disconnected N/A N/A self reactor reactor N/A N/A self factory factory N/A N/A self timeout timeout N/A disconnect N/A N/A self N/A N/A N/A Disconnect whatever our state is. N/A N/A N/A self state connecting N/A N/A N/A N/A self stopConnecting N/A N/A N/A N/A self state connected N/A N/A N/A N/A N/A self transport loseConnection N/A connect N/A N/A self N/A N/A N/A Start connection to remote server. N/A N/A N/A self state disconnected N/A N/A N/A RuntimeError can't connect in this state N/A N/A self state connecting N/A N/A N/A self factoryStarted N/A N/A N/A N/A N/A self factory doStart N/A N/A self factoryStarted 1 N/A N/A self transport transport N/A N/A self _makeTransport N/A N/A N/A self timeout None N/A N/A N/A self timeoutID N/A N/A N/A self reactor callLater N/A self timeout N/A transport failIfNotConnected N/A N/A error TimeoutError N/A N/A N/A N/A self factory startedConnecting self N/A stopConnecting N/A N/A self N/A N/A N/A Stop attempting to connect. N/A N/A N/A self state connecting N/A N/A N/A N/A error NotConnectingError we're not trying to connect N/A N/A self state disconnected N/A N/A N/A N/A self transport failIfNotConnected N/A N/A error UserError N/A N/A self transport N/A cancelTimeout N/A N/A self N/A N/A N/A N/A N/A self timeoutID None N/A N/A N/A N/A N/A N/A N/A self timeoutID cancel N/A N/A N/A ValueError N/A N/A N/A N/A self timeoutID N/A buildProtocol N/A N/A self addr N/A N/A N/A N/A self state connected N/A N/A N/A self cancelTimeout N/A N/A N/A N/A self factory buildProtocol addr N/A connectionFailed N/A N/A self reason N/A N/A N/A N/A N/A self cancelTimeout N/A N/A self transport None N/A N/A self state disconnected N/A N/A N/A N/A self factory clientConnectionFailed self reason N/A N/A N/A self state disconnected N/A N/A N/A N/A N/A self factory doStop N/A N/A self factoryStarted 0 N/A connectionLost N/A N/A self reason N/A N/A N/A N/A self state disconnected N/A N/A N/A N/A self factory clientConnectionLost self reason N/A N/A N/A self state disconnected N/A N/A N/A N/A N/A self factory doStop N/A N/A self factoryStarted 0 N/A getDestination N/A N/A self N/A N/A N/A N/A NotImplementedError N/A N/A N/A reflect qual N/A self __class__  did not implement getDestination N/A N/A N/A implementer IConnector BasePort N/A N/A abstract FileDescriptor N/A N/A Basic implementation of a ListeningPort.

    Note: This does not actually implement IListeningPort.
     N/A addressFamily None N/A socketType None createInternetSocket N/A N/A self N/A N/A N/A s N/A N/A socket socket N/A self addressFamily N/A self socketType N/A N/A N/A s setblocking 0 N/A N/A N/A fdesc _setCloseOnExec N/A N/A s fileno N/A s N/A doWrite N/A N/A self N/A N/A N/A Raises a RuntimeError N/A N/A RuntimeError N/A doWrite called on a %s N/A N/A reflect qual N/A self __class__ N/A N/A _SignalReactorMixin N/A object N/A N/A 
    Private mixin to manage signals: it installs signal handlers at start time,
    and define run method.

    It can only be used mixed in with L{ReactorBase}, and has to be defined
    first in the inheritance (so that method resolution order finds
    startRunning first).

    @type _installSignalHandlers: C{bool}
    @ivar _installSignalHandlers: A flag which indicates whether any signal
        handlers will be installed during startup.  This includes handlers for
        SIGCHLD to monitor child processes, and SIGINT, SIGTERM, and SIGBREAK
        to stop the reactor.
     N/A _installSignalHandlers False _handleSignals N/A N/A self N/A N/A N/A 
        Install the signal handlers for the Twisted event loop.
         N/A N/A N/A signal N/A N/A N/A ImportError N/A N/A N/A N/A log msg Warning: signal module unavailable -- not installing signal handlers. N/A N/A N/A N/A N/A signal getsignal N/A signal SIGINT N/A signal default_int_handler N/A N/A N/A N/A signal signal N/A signal SIGINT N/A self sigInt N/A N/A N/A signal signal N/A signal SIGTERM N/A self sigTerm N/A N/A hasattr signal SIGBREAK N/A N/A N/A N/A signal signal N/A signal SIGBREAK N/A self sigBreak N/A startRunning N/A N/A self installSignalHandlers N/A True N/A N/A 
        Extend the base implementation in order to remember whether signal
        handlers should be installed later.

        @type installSignalHandlers: C{bool}
        @param installSignalHandlers: A flag which, if set, indicates that
            handlers for a number of (implementation-defined) signals should be
            installed during startup.
         N/A N/A self _installSignalHandlers installSignalHandlers N/A N/A N/A ReactorBase startRunning self N/A _reallyStartRunning N/A N/A self N/A N/A N/A 
        Extend the base implementation by also installing signal handlers, if
        C{self._installSignalHandlers} is true.
         N/A N/A N/A ReactorBase _reallyStartRunning self N/A N/A self _installSignalHandlers N/A N/A N/A N/A self _handleSignals N/A run N/A N/A self installSignalHandlers N/A True N/A N/A N/A N/A self startRunning installSignalHandlers installSignalHandlers N/A N/A N/A self mainLoop N/A mainLoop N/A N/A self N/A N/A N/A N/A self _started N/A N/A N/A N/A N/A self _started N/A N/A N/A N/A self runUntilCurrent N/A t2 N/A N/A self timeout N/A t N/A N/A self running t2 N/A N/A N/A self doIteration t N/A N/A N/A N/A N/A N/A log msg Unexpected error in main loop. N/A N/A N/A log err N/A N/A N/A N/A log msg Main loop terminated. N/A N/A N/A __all__ N/A