Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Return Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad If NameLoad body AugAssignBitOr NameStore SetComp AttributeLoad NameLoad attr comprehension NameStore NameLoad If NameLoad body AugAssignBitOr NameStore SetComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body If CompareIn AttributeLoad NameLoad attr NameLoad body Continue Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore DictComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad BoolOpOr CompareIn AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad TryExcept body Assign TupleStore NameStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body TryExcept body Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad keyword TupleLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If CompareIn NameLoad ListLoad Str Str body For NameStore Call AttributeLoad NameLoad attr body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue TryExcept body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr handlers ExceptHandler body Continue If CompareNotEq NameLoad NameLoad body Continue Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Return NameLoad orelse Return Call NameLoad NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults ListLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad BinOpSub Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict For NameStore NameLoad body Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr BinOpBitOr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad Call NameLoad NameLoad Assign NameStore Yield Call AttributeLoad Call AttributeLoad NameLoad attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad keyword NameLoad keyword Num comprehension NameStore NameLoad keyword NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If CompareIn AttributeLoad NameLoad attr NameLoad body Continue Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad DictComp TupleLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad DictComp TupleLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults UnaryOpUSub Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num If CompareGt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad NameLoad Call NameLoad AttributeLoad NameLoad attr comprehension TupleStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body TryExcept body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler body Pass Return Call NameLoad Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad CompareIsNot NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body For NameStore NameLoad body TryExcept body Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Continue ExceptHandler type NameLoad name NameStore body If CompareLtELt Num AttributeLoad NameLoad attr Num body Raise Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Continue ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Continue ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Continue If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr Assign NameStore Yield Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad NameLoad attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Yield Call NameLoad ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Expr Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad Assign NameStore Call NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword NameLoad handlers ExceptHandler body Pass Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad With Call NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad finalbody Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore NameLoad body If CompareIn AttributeLoad NameLoad attr NameLoad body Continue TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body If CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpAdd ListLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad handlers ExceptHandler type NameLoad body Pass Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Dict body Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Dict Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body If CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Yield Call NameLoad If NameLoad body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Num Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore DictComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr body If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Delete SubscriptDel NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr ListLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Num Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num If NameLoad body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Num Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call AttributeLoad NameLoad attr NameLoad ListLoad While NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword UnaryOpNot NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Yield Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr ListComp TupleLoad SubscriptLoad NameLoad Index Str NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareEq TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Break For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad NameLoad body Assign NameStore DictComp TupleLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Raise Assign AttributeStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr ListComp TupleLoad NameLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareLt AttributeLoad NameLoad attr Num body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num keyword NameLoad If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad TryExcept body Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body For NameStore NameLoad body TryExcept body Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Num Str Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr If BinOpSub NameLoad NameLoad body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub NameLoad NameLoad orelse Assign NameStore Dict Expr Call AttributeLoad NameLoad attr DictComp AttributeLoad NameLoad attr Str comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad For NameStore NameLoad body If CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Continue If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue TryExcept body Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore DictComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad BoolOpOr CompareIn AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Yield Call AttributeLoad Call AttributeLoad NameLoad attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad comprehension NameStore NameLoad BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot SubscriptLoad NameLoad Index NameLoad keyword NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr DictComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn NameLoad NameLoad body If CompareIn SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore NameLoad Break If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr ListComp AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index Str body If CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Continue If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue TryExcept body Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore DictComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str BoolOpOr CompareIn AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Raise decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Return Call AttributeLoad NameLoad attr handlers ExceptHandler body Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore ListLoad While BoolOpOr NameLoad NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Continue If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Continue If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Continue If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Continue If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Continue If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Continue Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Dict For NameStore NameLoad body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Pass orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Pass orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad DictComp AttributeLoad NameLoad attr Dict Str Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str NameLoad Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad GeneratorExp SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num comprehension NameStore TupleLoad NameLoad NameLoad Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore TupleLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Num Str Assign NameStore NameLoad For NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad body TryExcept body For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad If CompareIn Str NameLoad body Expr Yield Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Return handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad Raise NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Yield Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Dict Str NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Num Str If BoolOpOr CompareNotIn Str NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str body Raise Call NameLoad Num Str decorator_list AttributeLoad NameLoad attr decorator_list
N/A N/A Contains handlers for federation events. signedjson.key decode_verify_key_bytes signedjson.sign verify_signed_json unpaddedbase64 decode_base64 _base BaseHandler synapse.api.errors AuthError FederationError StoreError CodeMessageException SynapseError synapse.api.constants EventTypes Membership RejectedReason synapse.events.validator EventValidator synapse.util unwrapFirstError synapse.util.logcontext PreserveLoggingContext synapse.util.logutils log_function synapse.util.async run_on_reactor synapse.util.frozenutils unfreeze synapse.crypto.event_signing compute_event_signature add_hashes_and_signatures synapse.types UserID synapse.events.utils prune_event synapse.util.retryutils NotRetryingDestination synapse.push.action_generator ActionGenerator twisted.internet defer N/A itertools N/A logging N/A logger N/A N/A logging getLogger __name__ user_joined_room N/A N/A distributor user room_id N/A N/A N/A N/A N/A distributor fire user_joined_room user room_id N/A FederationHandler N/A BaseHandler N/A N/A Handles events that originated from federation.
        Responsible for:
        a) handling received Pdus before handing them on as Events to the rest
        of the home server (including auth and state conflict resoultion)
        b) converting events that were produced by local clients that may need
        to be sent to remote home servers.
        c) doing the necessary dances to invite remote users and join remote
        rooms.
     __init__ N/A N/A self hs N/A N/A N/A N/A N/A N/A super FederationHandler self __init__ hs N/A N/A self hs hs N/A N/A N/A N/A self distributor observe user_joined_room N/A self user_joined_room N/A N/A self waiting_for_join_list N/A N/A N/A self store N/A N/A hs get_datastore N/A N/A self replication_layer N/A N/A hs get_replication_layer N/A N/A self state_handler N/A N/A hs get_state_handler N/A N/A self server_name N/A hs hostname N/A N/A self keyring N/A N/A hs get_keyring N/A N/A N/A N/A self replication_layer set_handler self N/A N/A self room_queues N/A N/A handle_new_event N/A N/A self event destinations N/A N/A N/A  Takes in an event from the client to server side, that has already
        been authed and handled by the state module, and sends it to any
        remote home servers that may be interested.

        Args:
            event: The event to send
            destinations: A list of destinations to send it to

        Returns:
            Deferred: Resolved when it has successfully been queued for
            processing.
         N/A N/A N/A N/A self replication_layer send_pdu event destinations N/A on_receive_pdu N/A N/A self origin pdu state auth_chain N/A None None N/A N/A  Called by the ReplicationLayer when we have a new pdu. We need to
        do auth checks and put it through the StateHandler.
         N/A event pdu N/A N/A N/A logger debug Got event: %s N/A event event_id N/A N/A N/A event room_id N/A self room_queues N/A N/A N/A N/A N/A N/A self room_queues N/A N/A event room_id append N/A pdu origin N/A N/A N/A N/A logger debug Processing event: %s N/A event event_id N/A N/A N/A logger debug Event: %s event N/A is_in_room N/A N/A N/A N/A self auth check_host_in_room N/A event room_id N/A self server_name N/A N/A N/A is_in_room N/A N/A N/A N/A event internal_metadata is_outlier N/A N/A N/A N/A logger debug Got event for room we're not in. N/A N/A N/A N/A event_stream_id max_stream_id N/A N/A N/A self _persist_auth_tree auth_chain state event N/A N/A N/A AuthError N/A e N/A N/A N/A FederationError ERROR N/A e code N/A e msg affected N/A event event_id N/A N/A event_ids N/A set N/A state N/A N/A event_ids N/A N/A e event_id N/A e state N/A auth_chain N/A N/A event_ids N/A N/A e event_id N/A e auth_chain N/A seen_ids N/A set N/A N/A N/A N/A N/A N/A self store have_events event_ids keys N/A N/A state N/A auth_chain None N/A N/A event_infos N/A N/A e N/A N/A itertools chain auth_chain state N/A N/A N/A N/A e event_id seen_ids N/A N/A N/A N/A N/A e internal_metadata outlier True N/A auth_ids N/A e_id N/A N/A e_id _ N/A e auth_events N/A auth N/A N/A N/A e type N/A e state_key e N/A e auth_chain N/A N/A N/A e event_id auth_ids N/A N/A e type N/A EventTypes Create N/A N/A N/A event_infos append N/A event auth_events e auth N/A N/A N/A seen_ids add N/A e event_id N/A N/A N/A N/A self _handle_new_events origin event_infos outliers True N/A N/A N/A N/A context event_stream_id max_stream_id N/A N/A N/A self _handle_new_event origin event state state N/A N/A N/A AuthError N/A e N/A N/A N/A FederationError ERROR N/A e code N/A e msg affected N/A event event_id N/A retry_timings N/A N/A N/A N/A self store get_destination_retry_timings origin N/A N/A retry_timings N/A retry_timings N/A retry_last_ts N/A N/A N/A N/A N/A self store set_destination_retry_timings origin 0 0 N/A room N/A N/A N/A N/A self store get_room N/A event room_id N/A N/A room N/A N/A N/A N/A N/A N/A N/A N/A self store store_room room_id N/A event room_id room_creator_user_id is_public False N/A N/A N/A StoreError N/A N/A N/A N/A logger exception Failed to store room. N/A extra_users N/A N/A N/A N/A event type N/A EventTypes Member N/A N/A target_user_id N/A event state_key N/A target_user N/A N/A UserID from_string target_user_id N/A N/A N/A extra_users append target_user N/A N/A PreserveLoggingContext N/A N/A N/A N/A N/A self notifier on_new_room_event event event_stream_id max_stream_id extra_users extra_users N/A N/A N/A event type N/A EventTypes Member N/A N/A N/A N/A event membership N/A Membership JOIN N/A N/A prev_state N/A N/A N/A context current_state get N/A N/A event type N/A event state_key N/A N/A N/A prev_state N/A N/A prev_state membership N/A Membership JOIN N/A N/A user N/A N/A UserID from_string N/A event state_key N/A N/A N/A user_joined_room N/A self distributor user N/A event room_id N/A log_function N/A defer inlineCallbacks _filter_events_for_server N/A N/A self server_name room_id events N/A N/A N/A event_to_state N/A N/A N/A N/A self store get_state_for_events N/A frozenset N/A N/A e event_id N/A e events types N/A N/A N/A EventTypes RoomHistoryVisibility N/A N/A EventTypes Member None redact_disallowed N/A N/A event state N/A N/A N/A N/A state N/A N/A event N/A history N/A N/A state get N/A N/A EventTypes RoomHistoryVisibility None N/A history N/A N/A visibility N/A N/A N/A history content get history_visibility shared N/A N/A visibility N/A invited joined N/A N/A ev N/A N/A state values N/A N/A N/A N/A ev type N/A EventTypes Member N/A N/A N/A N/A N/A domain N/A N/A N/A UserID from_string N/A ev state_key domain N/A N/A N/A N/A N/A N/A domain server_name N/A N/A N/A memtype N/A ev membership N/A N/A memtype N/A Membership JOIN N/A N/A event N/A N/A N/A memtype N/A Membership INVITE N/A N/A N/A visibility invited N/A N/A event N/A N/A N/A prune_event event N/A event N/A N/A N/A N/A defer returnValue N/A N/A redact_disallowed e N/A event_to_state N/A N/A e event_id N/A e events N/A N/A defer inlineCallbacks backfill N/A N/A self dest room_id limit extremities N/A N/A N/A N/A  Trigger a backfill request to `dest` for the given `room_id`
         N/A N/A extremities N/A N/A extremities N/A N/A N/A N/A self store get_oldest_events_in_room room_id N/A events N/A N/A N/A N/A self replication_layer backfill dest room_id limit limit extremities extremities N/A event_map N/A N/A e event_id e N/A e events N/A event_ids N/A set N/A N/A e event_id N/A e events N/A edges N/A N/A ev event_id N/A ev events N/A N/A set N/A e_id N/A N/A e_id _ N/A ev prev_events event_ids N/A N/A N/A logger info backfill: Got %d events with %d edges N/A len events N/A len edges N/A auth_events N/A N/A state_events N/A N/A events_to_state N/A N/A e_id edges N/A N/A N/A state auth N/A N/A N/A N/A self replication_layer get_state_for_room destination dest room_id room_id event_id e_id N/A N/A N/A auth_events update N/A N/A a event_id a N/A a auth N/A N/A N/A auth_events update N/A N/A s event_id s N/A s state N/A N/A N/A state_events update N/A N/A s event_id s N/A s state N/A N/A events_to_state N/A e_id state N/A seen_events N/A N/A N/A N/A self store have_events N/A N/A set N/A N/A auth_events keys N/A set N/A N/A state_events keys N/A all_events N/A N/A events N/A N/A state_events values N/A N/A auth_events values N/A required_auth N/A set N/A a_id N/A event all_events N/A N/A a_id _ N/A event auth_events N/A missing_auth N/A required_auth N/A set auth_events N/A results N/A N/A N/A N/A N/A defer gatherResults N/A N/A N/A N/A self replication_layer get_pdu N/A dest event_id outlier True timeout 10000 N/A event_id missing_auth consumeErrors True addErrback unwrapFirstError N/A N/A N/A auth_events update N/A N/A a event_id a N/A a results N/A ev_infos N/A N/A a N/A N/A auth_events values N/A N/A N/A N/A a event_id seen_events N/A N/A N/A N/A N/A ev_infos append N/A event auth_events a N/A N/A N/A N/A auth_events N/A a_id type N/A N/A auth_events N/A a_id state_key N/A auth_events N/A a_id N/A N/A a_id _ N/A a auth_events N/A e_id events_to_state N/A N/A N/A N/A ev_infos append N/A event state auth_events N/A event_map N/A e_id N/A events_to_state N/A e_id N/A N/A N/A N/A auth_events N/A a_id type N/A N/A auth_events N/A a_id state_key N/A auth_events N/A a_id N/A N/A a_id _ N/A N/A event_map N/A e_id auth_events N/A N/A N/A events sort key N/A N/A N/A e N/A N/A e depth N/A event events N/A N/A N/A event events_to_state N/A N/A N/A N/A N/A ev_infos append N/A event event N/A N/A N/A N/A self _handle_new_events dest ev_infos backfilled True N/A N/A N/A defer returnValue events N/A log_function N/A defer inlineCallbacks maybe_backfill N/A N/A self room_id current_depth N/A N/A N/A Checks the database to see if we should backfill before paginating,
        and if so do.
         N/A extremities N/A N/A N/A N/A self store get_oldest_events_with_depth_in_room room_id N/A N/A extremities N/A N/A N/A N/A logger debug Not backfilling as no extremeties found. N/A N/A sorted_extremeties_tuple N/A sorted N/A N/A extremities items key N/A N/A N/A e N/A N/A N/A int N/A e N/A 1 N/A max_depth N/A N/A sorted_extremeties_tuple N/A 0 N/A 1 N/A N/A current_depth max_depth N/A N/A N/A N/A logger debug Not backfilling as we don't need to. %d < %d max_depth current_depth N/A N/A curr_state N/A N/A N/A N/A self state_handler get_current_state room_id get_domains_from_state N/A N/A state N/A N/A N/A joined_users N/A N/A state_key N/A int N/A event depth N/A N/A N/A e_type state_key event N/A N/A state items N/A N/A e_type N/A EventTypes Member N/A N/A event membership N/A Membership JOIN N/A joined_domains N/A N/A N/A u d joined_users N/A N/A N/A N/A dom N/A N/A N/A UserID from_string u domain N/A old_d N/A N/A joined_domains get dom N/A old_d N/A N/A N/A joined_domains N/A dom N/A min d old_d N/A N/A N/A joined_domains N/A dom d N/A N/A N/A N/A N/A N/A sorted N/A N/A joined_domains items key N/A N/A N/A d N/A N/A d N/A 1 N/A N/A curr_domains N/A get_domains_from_state curr_state N/A likely_domains N/A domain N/A N/A domain depth curr_domains N/A domain N/A self server_name try_backfill N/A N/A domains N/A N/A N/A dom domains N/A N/A N/A N/A events N/A N/A N/A self backfill dom room_id limit 100 extremities N/A e N/A e N/A N/A extremities keys N/A N/A N/A SynapseError N/A e N/A N/A N/A N/A logger info Failed to backfill from %s because %s dom e N/A N/A N/A CodeMessageException N/A e N/A N/A N/A 400 N/A e code 500 N/A N/A N/A N/A N/A logger info Failed to backfill from %s because %s dom e N/A N/A N/A NotRetryingDestination N/A e N/A N/A N/A N/A logger info N/A e message N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger exception Failed to backfill from %s because %s dom e N/A N/A events N/A N/A N/A N/A defer returnValue True N/A N/A N/A defer returnValue False N/A N/A defer inlineCallbacks N/A success N/A N/A try_backfill likely_domains N/A success N/A N/A N/A N/A defer returnValue True N/A tried_domains N/A set likely_domains N/A N/A N/A tried_domains add N/A self server_name N/A event_ids N/A list N/A N/A extremities keys N/A states N/A N/A N/A defer gatherResults N/A N/A N/A N/A self state_handler resolve_state_groups room_id N/A e N/A e event_ids N/A states N/A dict N/A zip event_ids N/A N/A s N/A 1 N/A s states N/A N/A e_id _ sorted_extremeties_tuple N/A N/A likely_domains N/A get_domains_from_state N/A states N/A e_id N/A success N/A N/A try_backfill N/A dom N/A dom likely_domains N/A dom tried_domains N/A success N/A N/A N/A N/A defer returnValue True N/A N/A N/A tried_domains update likely_domains N/A N/A N/A defer returnValue False N/A N/A defer inlineCallbacks send_invite N/A N/A self target_host event N/A N/A N/A  Sends the invite to the remote server for signing.

        Invites must be signed by the invitee's server before distribution.
         N/A pdu N/A N/A N/A N/A self replication_layer send_invite destination target_host room_id N/A event room_id event_id N/A event event_id pdu event N/A N/A N/A defer returnValue pdu N/A N/A defer inlineCallbacks on_event_auth N/A N/A self event_id N/A N/A N/A auth N/A N/A N/A N/A self store get_auth_chain N/A event_id N/A event auth N/A N/A N/A N/A N/A event signatures update N/A compute_event_signature event N/A N/A self hs hostname N/A N/A N/A N/A self hs config signing_key N/A 0 N/A N/A N/A defer returnValue N/A e N/A e auth N/A N/A defer inlineCallbacks do_invite_join N/A N/A self target_hosts room_id joinee content N/A N/A N/A  Attempts to join the `joinee` to the room `room_id` via the
        server `target_host`.

        This first triggers a /make_join/ request that returns a partial
        event that we can fill out and sign. This is then sent to the
        remote server via /send_join/ which responds with the state at that
        event and the auth_chains.

        We suspend processing of any received events from this room until we
        have finished processing the join.
         N/A N/A N/A logger debug Joining %s to %s joinee room_id N/A N/A N/A N/A N/A self store clean_room_for_join room_id N/A N/A origin event N/A N/A N/A self _make_and_verify_event target_hosts room_id joinee join content N/A N/A N/A self room_queues N/A room_id N/A N/A handled_events N/A set N/A N/A N/A event N/A N/A self _sign_event event N/A N/A N/A N/A N/A target_hosts remove origin N/A N/A N/A target_hosts insert 0 origin N/A N/A N/A ValueError N/A N/A N/A ret N/A N/A N/A N/A self replication_layer send_join target_hosts event N/A origin N/A ret N/A origin N/A state N/A ret N/A state N/A auth_chain N/A ret N/A auth_chain N/A N/A N/A auth_chain sort key N/A N/A N/A e N/A N/A e depth N/A N/A N/A handled_events update N/A N/A s event_id N/A s state N/A N/A N/A handled_events update N/A N/A a event_id N/A a auth_chain N/A N/A N/A handled_events add N/A event event_id N/A N/A N/A logger debug do_invite_join auth_chain: %s auth_chain N/A N/A N/A logger debug do_invite_join state: %s state N/A N/A N/A logger debug do_invite_join event: %s event N/A N/A N/A N/A N/A N/A N/A self store store_room room_id room_id room_creator_user_id is_public False N/A N/A N/A N/A N/A N/A event_stream_id max_stream_id N/A N/A N/A self _persist_auth_tree auth_chain state event N/A N/A PreserveLoggingContext N/A N/A N/A N/A N/A self notifier on_new_room_event event event_stream_id max_stream_id extra_users N/A joinee N/A N/A N/A logger debug Finished joining %s to %s joinee room_id N/A N/A room_queue N/A N/A self room_queues N/A room_id N/A N/A N/A self room_queues N/A room_id N/A N/A p origin room_queue N/A N/A N/A N/A p event_id handled_events N/A N/A N/A N/A N/A N/A N/A self on_receive_pdu origin p N/A N/A N/A N/A N/A N/A logger exception Couldn't handle pdu N/A N/A N/A defer returnValue True N/A log_function N/A defer inlineCallbacks on_make_join_request N/A N/A self room_id user_id N/A N/A N/A  We've received a /make_join/ request, so we create a partial
        join event for the room and return that. We do *not* persist or
        process it until the other server has signed it and sent it back.
         N/A event_content N/A membership N/A Membership JOIN N/A builder N/A N/A N/A self event_builder_factory new N/A type content room_id sender state_key N/A EventTypes Member event_content room_id user_id user_id N/A N/A event context N/A N/A N/A self _create_new_client_event builder builder N/A N/A N/A N/A self auth check event auth_events N/A context current_state N/A N/A N/A defer returnValue event N/A N/A defer inlineCallbacks log_function on_send_join_request N/A N/A self origin pdu N/A N/A N/A  We have received a join event for a room. Fully process it and
        respond with the current state and auth chains.
         N/A event pdu N/A N/A N/A logger debug on_send_join_request: Got event: %s, signatures: %s N/A event event_id N/A event signatures N/A N/A N/A event internal_metadata outlier False N/A N/A context event_stream_id max_stream_id N/A N/A N/A self _handle_new_event origin event N/A N/A N/A logger debug on_send_join_request: After _handle_new_event: %s, sigs: %s N/A event event_id N/A event signatures N/A extra_users N/A N/A N/A N/A event type N/A EventTypes Member N/A N/A target_user_id N/A event state_key N/A target_user N/A N/A UserID from_string target_user_id N/A N/A N/A extra_users append target_user N/A N/A PreserveLoggingContext N/A N/A N/A N/A N/A self notifier on_new_room_event event event_stream_id max_stream_id extra_users extra_users N/A N/A N/A event type N/A EventTypes Member N/A N/A N/A N/A N/A event content N/A membership N/A Membership JOIN N/A N/A user N/A N/A UserID from_string N/A event state_key N/A N/A N/A user_joined_room N/A self distributor user N/A event room_id N/A new_pdu event N/A destinations N/A set N/A N/A k s N/A N/A N/A context current_state items N/A N/A N/A N/A N/A N/A k N/A 0 N/A EventTypes Member N/A N/A N/A N/A N/A s content N/A membership N/A Membership JOIN N/A N/A N/A N/A destinations add N/A N/A N/A UserID from_string N/A s state_key domain N/A N/A N/A N/A N/A N/A logger warn Failed to get destination from event %s N/A s event_id N/A N/A N/A destinations discard origin N/A N/A N/A logger debug on_send_join_request: Sending event: %s, signatures: %s N/A event event_id N/A event signatures N/A N/A N/A N/A self replication_layer send_pdu new_pdu destinations N/A state_ids N/A N/A e event_id N/A e N/A N/A N/A context current_state values N/A auth_chain N/A N/A N/A N/A self store get_auth_chain N/A set N/A N/A N/A event event_id state_ids N/A N/A N/A defer returnValue N/A state auth_chain N/A N/A N/A context current_state values auth_chain N/A N/A defer inlineCallbacks log_function on_invite_request N/A N/A self origin pdu N/A N/A N/A  We've got an invite event. Process and persist it. Sign it.

        Respond with the now signed event.
         N/A event pdu N/A N/A N/A event internal_metadata outlier True N/A N/A N/A N/A event signatures update N/A compute_event_signature event N/A N/A self hs hostname N/A N/A N/A N/A self hs config signing_key N/A 0 N/A context N/A N/A N/A N/A self state_handler compute_event_context event N/A N/A event_stream_id max_stream_id N/A N/A N/A N/A self store persist_event event context context N/A target_user N/A N/A UserID from_string N/A event state_key N/A N/A PreserveLoggingContext N/A N/A N/A N/A N/A self notifier on_new_room_event event event_stream_id max_stream_id extra_users N/A target_user N/A N/A N/A defer returnValue event N/A N/A defer inlineCallbacks do_remotely_reject_invite N/A N/A self target_hosts room_id user_id N/A N/A N/A N/A origin event N/A N/A N/A self _make_and_verify_event target_hosts room_id user_id leave N/A signed_event N/A N/A self _sign_event event N/A N/A N/A N/A N/A target_hosts remove origin N/A N/A N/A target_hosts insert 0 origin N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A N/A self replication_layer send_leave target_hosts signed_event N/A context N/A N/A N/A N/A self state_handler compute_event_context event N/A N/A event_stream_id max_stream_id N/A N/A N/A N/A self store persist_event event context context N/A target_user N/A N/A UserID from_string N/A event state_key N/A N/A N/A N/A self notifier on_new_room_event event event_stream_id max_stream_id extra_users N/A target_user N/A N/A N/A defer returnValue event N/A N/A defer inlineCallbacks _make_and_verify_event N/A N/A self target_hosts room_id user_id membership content N/A N/A N/A N/A N/A origin pdu N/A N/A N/A N/A self replication_layer make_membership_event target_hosts room_id user_id membership content N/A N/A N/A logger debug Got response to make_%s: %s membership pdu N/A event pdu N/A N/A N/A event type N/A EventTypes Member N/A N/A N/A event user_id user_id N/A N/A N/A event state_key user_id N/A N/A N/A event room_id room_id N/A N/A N/A defer returnValue N/A origin event N/A N/A defer inlineCallbacks _sign_event N/A N/A self event N/A N/A N/A N/A N/A event internal_metadata outlier False N/A builder N/A N/A N/A self event_builder_factory new N/A unfreeze N/A N/A event get_pdu_json N/A N/A builder event_id N/A N/A N/A self event_builder_factory create_event_id N/A N/A builder origin N/A N/A self hs hostname N/A N/A N/A hasattr event signatures N/A N/A N/A builder signatures N/A N/A N/A add_hashes_and_signatures builder N/A N/A self hs hostname N/A N/A N/A N/A self hs config signing_key N/A 0 N/A N/A N/A builder build N/A on_make_leave_request N/A N/A self room_id user_id N/A N/A N/A  We've received a /make_leave/ request, so we create a partial
        join event for the room and return that. We do *not* persist or
        process it until the other server has signed it and sent it back.
         N/A builder N/A N/A N/A self event_builder_factory new N/A type content room_id sender state_key N/A EventTypes Member N/A membership N/A Membership LEAVE room_id user_id user_id N/A N/A event context N/A N/A N/A self _create_new_client_event builder builder N/A N/A N/A N/A self auth check event auth_events N/A context current_state N/A N/A N/A defer returnValue event N/A N/A defer inlineCallbacks log_function on_send_leave_request N/A N/A self origin pdu N/A N/A N/A  We have received a leave event for a room. Fully process it. N/A event pdu N/A N/A N/A logger debug on_send_leave_request: Got event: %s, signatures: %s N/A event event_id N/A event signatures N/A N/A N/A event internal_metadata outlier False N/A N/A context event_stream_id max_stream_id N/A N/A N/A self _handle_new_event origin event N/A N/A N/A logger debug on_send_leave_request: After _handle_new_event: %s, sigs: %s N/A event event_id N/A event signatures N/A extra_users N/A N/A N/A N/A event type N/A EventTypes Member N/A N/A target_user_id N/A event state_key N/A target_user N/A N/A UserID from_string target_user_id N/A N/A N/A extra_users append target_user N/A N/A PreserveLoggingContext N/A N/A N/A N/A N/A self notifier on_new_room_event event event_stream_id max_stream_id extra_users extra_users N/A new_pdu event N/A destinations N/A set N/A N/A k s N/A N/A N/A context current_state items N/A N/A N/A N/A N/A N/A k N/A 0 N/A EventTypes Member N/A N/A N/A N/A N/A s content N/A membership N/A Membership LEAVE N/A N/A N/A N/A destinations add N/A N/A N/A UserID from_string N/A s state_key domain N/A N/A N/A N/A N/A N/A logger warn Failed to get destination from event %s N/A s event_id N/A N/A N/A destinations discard origin N/A N/A N/A logger debug on_send_leave_request: Sending event: %s, signatures: %s N/A event event_id N/A event signatures N/A N/A N/A N/A self replication_layer send_pdu new_pdu destinations N/A N/A N/A defer returnValue None N/A N/A defer inlineCallbacks log_function get_state_for_pdu N/A N/A self origin room_id event_id do_auth N/A True N/A N/A N/A N/A run_on_reactor N/A do_auth N/A N/A in_room N/A N/A N/A N/A self auth check_host_in_room room_id origin N/A N/A in_room N/A N/A N/A AuthError 403 Host not in room. N/A state_groups N/A N/A N/A N/A self store get_state_groups room_id N/A event_id N/A state_groups N/A N/A N/A _ state N/A N/A N/A N/A state_groups items pop N/A results N/A N/A N/A e type N/A e state_key e N/A e state N/A event N/A N/A N/A N/A self store get_event event_id N/A N/A event N/A N/A event is_state N/A N/A N/A replaces_state N/A event unsigned N/A N/A prev_id N/A N/A event unsigned N/A replaces_state N/A N/A prev_id N/A event event_id N/A N/A prev_event N/A N/A N/A N/A self store get_event prev_id N/A N/A results N/A N/A N/A event type N/A event state_key prev_event N/A N/A N/A results N/A N/A N/A event type N/A event state_key N/A res N/A N/A results values N/A event res N/A N/A N/A N/A N/A event signatures update N/A compute_event_signature event N/A N/A self hs hostname N/A N/A N/A N/A self hs config signing_key N/A 0 N/A N/A N/A defer returnValue res N/A N/A N/A N/A defer returnValue N/A N/A N/A defer inlineCallbacks on_backfill_request N/A N/A self origin room_id pdu_list limit N/A N/A N/A in_room N/A N/A N/A N/A self auth check_host_in_room room_id origin N/A N/A in_room N/A N/A N/A AuthError 403 Host not in room. N/A events N/A N/A N/A N/A self store get_backfill_events room_id pdu_list limit N/A events N/A N/A N/A self _filter_events_for_server origin room_id events N/A N/A N/A defer returnValue events N/A N/A defer inlineCallbacks log_function get_persisted_pdu N/A N/A self origin event_id do_auth N/A True N/A N/A  Get a PDU from the database with given origin and id.

        Returns:
            Deferred: Results in a `Pdu`.
         N/A event N/A N/A N/A N/A self store get_event event_id allow_none True allow_rejected True N/A event N/A N/A N/A N/A N/A event signatures update N/A compute_event_signature event N/A N/A self hs hostname N/A N/A N/A N/A self hs config signing_key N/A 0 N/A do_auth N/A N/A in_room N/A N/A N/A N/A self auth check_host_in_room N/A event room_id origin N/A N/A in_room N/A N/A N/A AuthError 403 Host not in room. N/A N/A N/A defer returnValue event N/A N/A N/A N/A defer returnValue None N/A N/A defer inlineCallbacks log_function get_min_depth_for_context N/A N/A self context N/A N/A N/A N/A N/A N/A self store get_min_depth context N/A log_function user_joined_room N/A N/A self user room_id N/A N/A N/A waiters N/A N/A N/A self waiting_for_join_list get N/A N/A N/A user to_string room_id N/A N/A waiters N/A N/A N/A N/A N/A N/A waiters pop callback None N/A log_function _handle_new_event N/A N/A self origin event state auth_events N/A None None N/A N/A outlier N/A N/A N/A event internal_metadata is_outlier N/A context N/A N/A N/A self _prep_event origin event state state auth_events auth_events N/A N/A N/A N/A N/A event internal_metadata is_outlier N/A N/A action_generator N/A ActionGenerator N/A self hs N/A N/A N/A N/A action_generator handle_push_actions_for_event event context self N/A N/A event_stream_id max_stream_id N/A N/A N/A N/A self store persist_event event context context is_new_state N/A outlier N/A N/A N/A defer returnValue N/A context event_stream_id max_stream_id N/A N/A defer inlineCallbacks log_function _handle_new_events N/A N/A self origin event_infos backfilled outliers N/A False False N/A N/A contexts N/A N/A N/A defer gatherResults N/A N/A N/A self _prep_event origin N/A ev_info N/A event state N/A N/A ev_info get state auth_events N/A N/A ev_info get auth_events N/A ev_info event_infos N/A N/A N/A N/A N/A self store persist_events N/A N/A N/A ev_info N/A event context N/A N/A ev_info context N/A N/A itertools izip event_infos contexts backfilled backfilled is_new_state N/A N/A outliers N/A backfilled N/A N/A defer inlineCallbacks _persist_auth_tree N/A N/A self auth_events state event N/A N/A N/A Checks the auth chain is valid (and passes auth checks) for the
        state and event. Then persists the auth chain and state atomically.
        Persists the event seperately.

        Returns:
            2-tuple of (event_stream_id, max_stream_id) from the persist_event
            call for `event`
         N/A events_to_context N/A N/A e N/A N/A itertools chain auth_events state N/A N/A ctx N/A N/A N/A N/A self state_handler compute_event_context e outlier True N/A N/A events_to_context N/A N/A e event_id ctx N/A N/A N/A e internal_metadata outlier True N/A event_map N/A N/A e event_id e N/A e auth_events N/A create_event None N/A e auth_events N/A N/A N/A N/A N/A e type N/A e state_key N/A N/A EventTypes Create N/A N/A create_event e N/A N/A e N/A N/A itertools chain auth_events state N/A event N/A N/A auth_for_e N/A N/A N/A N/A event_map N/A e_id type N/A N/A event_map N/A e_id state_key N/A event_map N/A e_id N/A N/A e_id _ N/A e auth_events N/A create_event N/A N/A N/A auth_for_e N/A N/A N/A EventTypes Create create_event N/A N/A N/A N/A N/A N/A self auth check e auth_events auth_for_e N/A N/A N/A SynapseError N/A err N/A N/A N/A N/A logger warn Rejecting %s because %s N/A e event_id N/A err msg N/A N/A e event N/A N/A N/A N/A N/A events_to_context N/A N/A e event_id rejected N/A RejectedReason AUTH_ERROR N/A N/A N/A N/A N/A self store persist_events N/A N/A e N/A events_to_context N/A N/A e event_id N/A e N/A N/A itertools chain auth_events state is_new_state False N/A new_event_context N/A N/A N/A N/A self state_handler compute_event_context event old_state state outlier False N/A N/A event_stream_id max_stream_id N/A N/A N/A N/A self store persist_event event new_event_context is_new_state True current_state state N/A N/A N/A defer returnValue N/A event_stream_id max_stream_id N/A N/A defer inlineCallbacks _prep_event N/A N/A self origin event state auth_events N/A None None N/A N/A outlier N/A N/A N/A event internal_metadata is_outlier N/A context N/A N/A N/A N/A self state_handler compute_event_context event old_state state outlier outlier N/A N/A auth_events N/A N/A auth_events N/A context current_state N/A N/A N/A N/A event type N/A EventTypes Member N/A N/A event auth_events N/A N/A N/A N/A N/A len N/A event prev_events 1 N/A N/A event depth 5 N/A N/A c N/A N/A N/A N/A self store get_event N/A N/A N/A event prev_events N/A 0 N/A 0 allow_none True N/A N/A c N/A N/A c type N/A EventTypes Create N/A N/A N/A auth_events N/A N/A N/A c type N/A c state_key c N/A N/A N/A N/A N/A N/A self do_auth origin event context auth_events auth_events N/A N/A N/A AuthError N/A e N/A N/A N/A N/A logger warn Rejecting %s because %s N/A event event_id N/A e msg N/A N/A context rejected N/A RejectedReason AUTH_ERROR N/A N/A N/A event type N/A EventTypes GuestAccess N/A N/A full_context N/A N/A N/A N/A self store get_current_state room_id N/A event room_id N/A N/A N/A N/A self maybe_kick_guest_users event full_context N/A N/A N/A defer returnValue context N/A N/A defer inlineCallbacks on_query_auth N/A N/A self origin event_id remote_auth_chain rejects missing N/A N/A N/A e remote_auth_chain N/A N/A N/A N/A N/A N/A N/A self _handle_new_event origin e N/A N/A N/A AuthError N/A N/A N/A local_auth_chain N/A N/A N/A N/A self store get_auth_chain N/A event_id N/A ret N/A N/A N/A self construct_auth_difference local_auth_chain remote_auth_chain N/A event N/A ret N/A auth_chain N/A N/A N/A N/A N/A event signatures update N/A compute_event_signature event N/A N/A self hs hostname N/A N/A N/A N/A self hs config signing_key N/A 0 N/A N/A N/A logger debug on_query_auth returning: %s ret N/A N/A N/A defer returnValue ret N/A N/A defer inlineCallbacks on_get_missing_events N/A N/A self origin room_id earliest_events latest_events limit min_depth N/A N/A N/A in_room N/A N/A N/A N/A self auth check_host_in_room room_id origin N/A N/A in_room N/A N/A N/A AuthError 403 Host not in room. N/A limit N/A min limit 20 N/A min_depth N/A max min_depth 0 N/A missing_events N/A N/A N/A N/A self store get_missing_events room_id room_id earliest_events earliest_events latest_events latest_events limit limit min_depth min_depth N/A N/A N/A defer returnValue missing_events N/A N/A defer inlineCallbacks do_auth N/A N/A self origin event context auth_events N/A N/A N/A current_state N/A set N/A N/A e event_id N/A e N/A N/A auth_events values N/A event_auth_events N/A set N/A e_id N/A N/A e_id _ N/A event auth_events N/A N/A event_auth_events current_state N/A N/A have_events N/A N/A N/A N/A self store have_events N/A event_auth_events current_state N/A N/A have_events N/A N/A N/A N/A have_events update N/A N/A e event_id N/A e N/A N/A auth_events values N/A seen_events N/A set N/A N/A have_events keys N/A missing_auth N/A N/A event_auth_events seen_events current_state N/A missing_auth N/A N/A N/A N/A logger info Missing auth: %s missing_auth N/A N/A N/A remote_auth_chain N/A N/A N/A N/A self replication_layer get_event_auth origin N/A event room_id N/A event event_id N/A seen_remotes N/A N/A N/A N/A self store have_events N/A N/A e event_id N/A e remote_auth_chain N/A e remote_auth_chain N/A N/A N/A N/A e event_id N/A N/A seen_remotes keys N/A N/A N/A N/A N/A e event_id N/A event event_id N/A N/A N/A N/A N/A auth_ids N/A e_id N/A N/A e_id _ N/A e auth_events N/A auth N/A N/A N/A e type N/A e state_key e N/A e remote_auth_chain N/A N/A N/A e event_id auth_ids N/A N/A e type N/A EventTypes Create N/A N/A N/A e internal_metadata outlier True N/A N/A N/A logger debug do_auth %s missing_auth: %s N/A event event_id N/A e event_id N/A N/A N/A N/A self _handle_new_event origin e auth_events auth N/A N/A N/A e event_id event_auth_events N/A N/A N/A auth_events N/A N/A N/A e type N/A e state_key e N/A N/A N/A AuthError N/A N/A N/A have_events N/A N/A N/A N/A self store have_events N/A e_id N/A N/A e_id _ N/A event auth_events N/A seen_events N/A set N/A N/A have_events keys N/A N/A N/A N/A N/A N/A logger exception Failed to get auth chain N/A current_state N/A set N/A N/A e event_id N/A e N/A N/A auth_events values N/A different_auth N/A event_auth_events current_state N/A N/A different_auth N/A N/A N/A N/A event internal_metadata is_outlier N/A N/A N/A N/A logger info Different auth: %s different_auth N/A different_events N/A N/A N/A N/A N/A defer gatherResults N/A N/A N/A N/A self store get_event d allow_none True allow_rejected False N/A d different_auth N/A N/A d have_events N/A N/A have_events N/A d consumeErrors True addErrback unwrapFirstError N/A different_events N/A N/A local_view N/A dict auth_events N/A remote_view N/A dict auth_events N/A N/A N/A remote_view update N/A N/A N/A d type N/A d state_key d N/A d different_events N/A N/A new_state prev_state N/A N/A N/A self state_handler resolve_events N/A N/A N/A local_view values N/A N/A remote_view values event N/A N/A N/A auth_events update new_state N/A current_state N/A set N/A N/A e event_id N/A e N/A N/A auth_events values N/A different_auth N/A event_auth_events current_state N/A N/A N/A N/A context current_state update auth_events N/A N/A context state_group None N/A N/A different_auth N/A N/A N/A N/A event internal_metadata is_outlier N/A N/A N/A N/A logger info Different auth after resolution: %s different_auth N/A do_resolution False N/A provable N/A N/A RejectedReason NOT_ANCESTOR N/A RejectedReason NOT_ANCESTOR N/A e_id different_auth N/A N/A N/A e_id have_events N/A N/A N/A N/A have_events N/A e_id provable N/A N/A do_resolution True N/A N/A do_resolution N/A N/A auth_ids N/A N/A N/A self auth compute_auth_events event N/A context current_state N/A local_auth_chain N/A N/A N/A N/A self store get_auth_chain auth_ids N/A N/A N/A result N/A N/A N/A N/A self replication_layer query_auth origin N/A event room_id N/A event event_id local_auth_chain N/A seen_remotes N/A N/A N/A N/A self store have_events N/A N/A e event_id N/A e N/A result N/A auth_chain N/A ev N/A result N/A auth_chain N/A N/A N/A N/A ev event_id N/A N/A seen_remotes keys N/A N/A N/A N/A N/A ev event_id N/A event event_id N/A N/A N/A N/A N/A auth_ids N/A e_id N/A N/A e_id _ N/A ev auth_events N/A auth N/A N/A N/A e type N/A e state_key e N/A e N/A result N/A auth_chain N/A N/A N/A e event_id auth_ids N/A N/A event type N/A EventTypes Create N/A N/A N/A ev internal_metadata outlier True N/A N/A N/A logger debug do_auth %s different_auth: %s N/A event event_id N/A e event_id N/A N/A N/A N/A self _handle_new_event origin ev auth_events auth N/A N/A N/A ev event_id event_auth_events N/A N/A N/A auth_events N/A N/A N/A ev type N/A ev state_key ev N/A N/A N/A AuthError N/A N/A N/A N/A N/A N/A N/A N/A logger exception Failed to query auth chain N/A N/A N/A N/A context current_state update auth_events N/A N/A context state_group None N/A N/A N/A N/A N/A N/A self auth check event auth_events auth_events N/A N/A N/A AuthError N/A N/A N/A N/A defer inlineCallbacks log_function construct_auth_difference N/A N/A self local_auth remote_auth N/A N/A N/A  Given a local and remote auth chain, find the differences. This
        assumes that we have already processed all events in remote_auth

        Params:
            local_auth (list)
            remote_auth (list)

        Returns:
            dict
         N/A N/A N/A logger debug construct_auth_difference Start! sort_fun N/A N/A ev N/A N/A N/A N/A N/A ev depth N/A ev event_id N/A N/A N/A N/A logger debug construct_auth_difference after sort_fun! N/A remote_list N/A list remote_auth N/A N/A N/A remote_list sort key sort_fun N/A local_list N/A list local_auth N/A N/A N/A local_list sort key sort_fun N/A local_iter N/A iter local_list N/A remote_iter N/A iter remote_list N/A N/A N/A logger debug construct_auth_difference before get_next! get_next N/A N/A it opt N/A None N/A N/A N/A N/A N/A N/A it next N/A N/A N/A N/A opt N/A N/A current_local N/A get_next local_iter N/A current_remote N/A get_next remote_iter N/A N/A N/A logger debug construct_auth_difference before while N/A missing_remotes N/A N/A missing_locals N/A N/A N/A current_local current_remote N/A N/A N/A current_remote None N/A N/A N/A N/A missing_locals append current_local N/A current_local N/A get_next local_iter N/A N/A N/A current_local None N/A N/A N/A N/A missing_remotes append current_remote N/A current_remote N/A get_next remote_iter N/A N/A N/A N/A current_local event_id N/A current_remote event_id N/A N/A current_local N/A get_next local_iter N/A current_remote N/A get_next remote_iter N/A N/A N/A N/A current_local depth N/A current_remote depth N/A N/A N/A N/A missing_locals append current_local N/A current_local N/A get_next local_iter N/A N/A N/A N/A current_local depth N/A current_remote depth N/A N/A N/A N/A missing_remotes append current_remote N/A current_remote N/A get_next remote_iter N/A N/A N/A N/A current_local event_id N/A current_remote event_id N/A N/A N/A N/A missing_locals append current_local N/A current_local N/A get_next local_iter N/A N/A N/A current_local event_id N/A current_remote event_id N/A N/A N/A N/A missing_remotes append current_remote N/A current_remote N/A get_next remote_iter N/A N/A N/A N/A logger debug construct_auth_difference after while N/A missing_remote_ids N/A N/A e event_id N/A e missing_remotes N/A base_remote_rejected N/A list missing_remotes N/A e missing_remotes N/A N/A N/A e_id _ N/A e auth_events N/A N/A N/A e_id missing_remote_ids N/A N/A N/A N/A N/A N/A base_remote_rejected remove e N/A N/A N/A ValueError N/A N/A N/A reason_map N/A N/A e base_remote_rejected N/A N/A reason N/A N/A N/A N/A self store get_rejection_reason N/A e event_id N/A N/A reason None N/A N/A N/A N/A reason_map N/A N/A e event_id reason N/A N/A reason N/A RejectedReason AUTH_ERROR N/A N/A N/A N/A N/A reason N/A RejectedReason REPLACED N/A N/A N/A N/A N/A reason N/A RejectedReason NOT_ANCESTOR N/A N/A N/A N/A N/A logger debug construct_auth_difference returning N/A N/A N/A defer returnValue N/A auth_chain rejects missing local_auth N/A N/A e event_id N/A reason proof N/A reason_map N/A N/A e event_id None N/A e base_remote_rejected N/A N/A e event_id N/A e missing_locals N/A N/A defer inlineCallbacks exchange_third_party_invite N/A N/A self sender_user_id target_user_id room_id signed N/A N/A N/A third_party_invite N/A signed signed N/A event_dict N/A type content room_id sender state_key N/A EventTypes Member N/A membership third_party_invite N/A Membership INVITE third_party_invite room_id sender_user_id target_user_id N/A N/A N/A N/A N/A self auth check_host_in_room room_id N/A N/A self hs hostname N/A N/A builder N/A N/A N/A self event_builder_factory new event_dict N/A N/A N/A N/A EventValidator validate_new builder N/A N/A event context N/A N/A N/A self _create_new_client_event builder builder N/A N/A event context N/A N/A N/A self add_display_name_to_third_party_invite event_dict event context N/A N/A N/A N/A self auth check event N/A context current_state N/A N/A N/A N/A self _check_signature event auth_events N/A context current_state N/A member_handler N/A N/A N/A N/A self hs get_handlers room_member_handler N/A N/A N/A N/A member_handler send_membership_event None event context N/A N/A destinations N/A set N/A N/A N/A N/A x split : 1 N/A -1 N/A x N/A sender_user_id room_id N/A N/A N/A N/A N/A self replication_layer forward_third_party_invite destinations room_id event_dict N/A N/A defer inlineCallbacks log_function on_exchange_third_party_invite_request N/A N/A self origin room_id event_dict N/A N/A N/A builder N/A N/A N/A self event_builder_factory new event_dict N/A N/A event context N/A N/A N/A self _create_new_client_event builder builder N/A N/A event context N/A N/A N/A self add_display_name_to_third_party_invite event_dict event context N/A N/A N/A N/A self auth check event auth_events N/A context current_state N/A N/A N/A N/A self _check_signature event auth_events N/A context current_state N/A returned_invite N/A N/A N/A self send_invite origin event N/A N/A N/A N/A event signatures update N/A returned_invite signatures N/A member_handler N/A N/A N/A N/A self hs get_handlers room_member_handler N/A N/A N/A N/A member_handler send_membership_event None event context N/A N/A defer inlineCallbacks log_function add_display_name_to_third_party_invite N/A N/A self event_dict event context N/A N/A N/A key N/A N/A EventTypes ThirdPartyInvite N/A N/A N/A N/A event content N/A third_party_invite N/A signed N/A token N/A original_invite N/A N/A N/A context current_state get key N/A N/A original_invite N/A N/A N/A N/A logger info N/A Could not find invite event for third_party_invite - discarding: %s N/A event_dict N/A N/A display_name N/A N/A original_invite content N/A display_name N/A N/A N/A N/A event_dict N/A content N/A third_party_invite N/A display_name display_name N/A builder N/A N/A N/A self event_builder_factory new event_dict N/A N/A N/A N/A EventValidator validate_new builder N/A N/A event context N/A N/A N/A self _create_new_client_event builder builder N/A N/A N/A defer returnValue N/A event context N/A N/A defer inlineCallbacks _check_signature N/A N/A self event auth_events N/A N/A N/A 
        Checks that the signature in the event is consistent with its invite.
        :param event (Event): The m.room.member event to check
        :param auth_events (dict<(event type, state_key), event>)

        :raises
            AuthError if signature didn't match any keys, or key has been
                revoked,
            SynapseError if a transient error meant a key couldn't be checked
                for revocation.
         N/A signed N/A N/A N/A event content N/A third_party_invite N/A signed N/A token N/A signed N/A token N/A invite_event N/A N/A auth_events get N/A N/A EventTypes ThirdPartyInvite token N/A N/A invite_event N/A N/A N/A AuthError 403 Could not find invite N/A last_exception None N/A public_key_object N/A N/A N/A N/A N/A self hs get_auth get_public_keys invite_event N/A N/A N/A N/A N/A server signature_block N/A N/A N/A signed N/A signatures items N/A N/A N/A key_name encoded_signature N/A N/A signature_block items N/A N/A N/A N/A N/A key_name startswith ed25519: N/A N/A N/A public_key N/A public_key_object N/A public_key N/A verify_key N/A decode_verify_key_bytes key_name N/A decode_base64 public_key N/A N/A verify_signed_json signed server verify_key N/A N/A key_validity_url public_key_object N/A N/A N/A N/A N/A self _check_key_revocation public_key N/A public_key_object N/A key_validity_url N/A N/A N/A N/A Exception N/A e N/A N/A last_exception e N/A last_exception N/A N/A defer inlineCallbacks _check_key_revocation N/A N/A self public_key url N/A N/A N/A 
        Checks whether public_key has been revoked.

        :param public_key (str): base-64 encoded public key.
        :param url (str): Key revocation URL.

        :raises
            AuthError if they key has been revoked.
            SynapseError if a transient error meant a key couldn't be checked
                for revocation.
         N/A N/A N/A response N/A N/A N/A N/A N/A N/A self hs get_simple_http_client get_json url N/A public_key public_key N/A N/A N/A Exception N/A N/A N/A SynapseError 502 Third party certificate could not be checked N/A N/A N/A valid response N/A N/A response N/A valid N/A N/A N/A AuthError 403 Third party certificate was invalid N/A N/A defer inlineCallbacks N/A