Module Expr Str Assign NameStore Str Import alias identifier Import alias FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn Str NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIn Call NameLoad NameLoad ListLoad NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Break Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd NameLoad BoolOpOr CompareIs NameLoad NameLoad CompareLt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareLtE Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Num orelse Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults ListLoad Str body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults ListLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad Str Str Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return CompareNotIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body If CompareLtE Call NameLoad NameLoad Num body Assign NameStore Str Assign NameStore NameLoad While CompareIn NameLoad NameLoad body AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad While BoolOpAnd CompareGt NameLoad Num NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareGtE NameLoad NameLoad CompareEq NameLoad SubscriptLoad NameLoad Slice BinOpSub NameLoad NameLoad NameLoad body AugAssignSub NameStore NameLoad Assign NameStore NameLoad orelse If CompareLt SubscriptLoad NameLoad Index BinOpSub NameLoad Num Str body AugAssignSub NameStore Num Assign NameStore NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore ListLoad Str Str Str Str If UnaryOpNot NameLoad body AugAssignAdd NameStore ListLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad If CompareIn NameLoad Call AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Continue Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad Str attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Str ListLoad Str Str Str Str Str keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Str body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad If NameLoad body If CompareIn Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body Assign NameStore Call NameLoad NameLoad orelse AugAssignAdd NameStore Call NameLoad NameLoad If CompareIn Str SubscriptLoad NameLoad Slice NameLoad body If NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr NameLoad Str NameLoad SubscriptLoad NameLoad Slice NameLoad orelse If CompareIn Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore BinOpAdd BinOpAdd Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr NameLoad Str NameLoad SubscriptLoad NameLoad Slice NameLoad orelse If BoolOpOr NameLoad NameLoad body If NameLoad body Assign NameStore Str Assign NameStore Str orelse Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr keyword NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad keyword NameLoad If CompareIn AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return ListLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad ListLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Str ListLoad Str Str Str Str Str keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str NameLoad Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Str body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call AttributeLoad SubscriptLoad NameLoad Index Num attr UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpMod Str TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Str ListLoad Str Str Str Str Str orelse Assign NameStore Call NameLoad NameLoad NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad If NameLoad body If CompareIn Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body Assign NameStore Call NameLoad NameLoad orelse AugAssignAdd NameStore Call NameLoad NameLoad If CompareIn Str SubscriptLoad NameLoad Slice NameLoad body If NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr NameLoad Str NameLoad SubscriptLoad NameLoad Slice NameLoad orelse If CompareIn Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str NameLoad Str NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Return Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Str Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str NameLoad Str NameLoad Str NameLoad Str If NameLoad body Assign NameStore BinOpAdd Str NameLoad orelse If NameLoad body Assign NameStore BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Str While CompareIn NameLoad NameLoad body AugAssignAdd NameStore Str Assign NameStore Str While CompareIn NameLoad NameLoad body AugAssignAdd NameStore Str Assign NameStore Str While CompareIn NameLoad NameLoad body AugAssignAdd NameStore Str Assign NameStore ListLoad Assign NameStore Dict Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Dict Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad While CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call NameLoad Call AttributeLoad NameLoad attr Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call NameLoad Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Assign NameStore Num If NameLoad body Assign NameStore Dict Assign NameStore Num For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad AugAssignAdd NameStore Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call NameLoad Call AttributeLoad NameLoad attr Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call NameLoad Call AttributeLoad NameLoad attr Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call NameLoad Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareEq NameLoad Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str If CompareEq NameLoad ListLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str Str body Return ListLoad Str Str If CompareEq NameLoad Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str body Return ListLoad Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str body Return ListLoad Str Str Str If CompareEq NameLoad Str body Return ListLoad Str Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str If CompareEq NameLoad Str body Return ListLoad Str Str Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str body Return ListLoad Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str body Return ListLoad Str If CompareEq NameLoad ListLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str body Return ListLoad Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str Str Str body Return ListLoad Str Str Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str body Return ListLoad Str Str Str Str If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str body Return ListLoad Str Str Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str Str Str If CompareEq NameLoad Str body Return ListLoad Str Str Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str Str Str If CompareEq NameLoad Str body Return ListLoad Str Str Str Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str If CompareEq NameLoad Str body Return ListLoad Str Str If CompareIn NameLoad ListLoad Str Str body Return ListLoad Str Str Str Str Str Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr orelse Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq Call NameLoad NameLoad NameLoad body Return NameLoad If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad NameLoad body If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str orelse If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list
N/A N/A 
Functions for manipulating wiki-text.

Unless otherwise noted, all functions take a unicode string as the argument
and return a unicode string.

 N/A __version__ $Id$ N/A wikipedia pywikibot N/A re unescape N/A N/A s N/A N/A N/A Replace escaped HTML-special characters by their originals N/A N/A & s N/A N/A s N/A s N/A N/A s replace &lt; < N/A s N/A N/A s replace &gt; > N/A s N/A N/A s replace &apos; ' N/A s N/A N/A s replace &quot; " N/A s N/A N/A s replace &amp; & N/A s N/A replaceExcept N/A N/A text old new exceptions caseInsensitive allowoverlap marker site N/A False False None N/A N/A 
    Return text with 'old' replaced by 'new', ignoring specified types of text.

    Skips occurences of 'old' within exceptions; e.g., within nowiki tags or
    HTML comments. If caseInsensitive is true, then use case insensitive
    regex matching. If allowoverlap is true, overlapping occurences are all
    replaced (watch out when using this, it might lead to infinite loops!).

    Parameters:
        text            - a unicode string
        old             - a compiled regular expression
        new             - a unicode string (which can contain regular
                          expression references), or a function which takes
                          a match object as parameter. See parameter repl of
                          re.sub().
        exceptions      - a list of strings which signal what to leave out,
                          e.g. ['math', 'table', 'template']
        caseInsensitive - a boolean
        marker          - a string that will be added to the last replacement;
                          if nothing is changed, it is added at the end

     N/A N/A site None N/A N/A site N/A N/A pywikibot getSite N/A exceptionRegexes N/A comment header pre source ref startspace table template hyperlink gallery link interwiki N/A N/A re compile (?s)<!--.*?--> N/A N/A re compile \r\n=+.+=+ *\r\n N/A N/A re compile (?ism)<pre>.*?</pre> N/A N/A re compile (?is)<source .*?</source> N/A N/A re compile (?ism)<ref[ >].*?</ref> N/A N/A re compile (?m)^ (.*?)$ N/A N/A re compile (?ims)^{\|.*?^\|}|<table>.*?</table> N/A N/A re compile (?s){{(({{.*?}})?.*?)*}} N/A compileLinkR N/A N/A re compile (?is)<gallery.*?>.*?</gallery> N/A N/A re compile \[\[[^\]\|]*(\|[^\]]*)?\]\] N/A N/A re compile N/A (?i)\[\[:?(%s)\s?:[^\]]*\]\][\s]* N/A N/A | join N/A N/A N/A site validLanguageLinks N/A N/A N/A N/A site family obsolete keys N/A N/A N/A type old N/A str unicode N/A N/A caseInsensitive N/A N/A old N/A N/A re compile old N/A N/A re IGNORECASE N/A re UNICODE N/A N/A old N/A N/A re compile old N/A dontTouchRegexes N/A N/A exc exceptions N/A N/A N/A N/A isinstance exc str N/A isinstance exc unicode N/A N/A N/A exc exceptionRegexes N/A N/A N/A N/A dontTouchRegexes append N/A exceptionRegexes N/A exc N/A N/A N/A N/A dontTouchRegexes append N/A N/A re compile N/A (?is)<%s>.*?</%s> N/A exc exc N/A N/A exc source N/A N/A N/A N/A dontTouchRegexes append N/A N/A re compile (?is)<syntaxhighlight .*?</syntaxhighlight> N/A N/A N/A N/A dontTouchRegexes append exc N/A index 0 N/A markerpos N/A len text N/A True N/A N/A match N/A N/A old search text index N/A N/A match N/A N/A N/A nextExceptionMatch None N/A dontTouchR dontTouchRegexes N/A N/A excMatch N/A N/A dontTouchR search text index N/A N/A excMatch N/A N/A nextExceptionMatch None N/A N/A N/A excMatch start N/A N/A nextExceptionMatch start N/A N/A nextExceptionMatch excMatch N/A N/A N/A nextExceptionMatch None N/A N/A N/A nextExceptionMatch start N/A N/A match start N/A N/A index N/A N/A nextExceptionMatch end N/A N/A N/A callable new N/A N/A replacement N/A new match N/A N/A new N/A N/A new replace \n N/A replacement new N/A groupR N/A N/A re compile \\(?P<number>\d+)|\\g<(?P<name>.+?)> N/A True N/A N/A groupMatch N/A N/A groupR search replacement N/A N/A groupMatch N/A N/A N/A groupID N/A N/A N/A groupMatch group name N/A int N/A N/A groupMatch group number N/A replacement N/A N/A N/A replacement N/A N/A N/A groupMatch start N/A N/A match group groupID N/A replacement N/A N/A N/A groupMatch end N/A text N/A N/A N/A text N/A N/A N/A match start replacement N/A text N/A N/A N/A match end N/A allowoverlap N/A N/A index N/A N/A N/A match start 1 N/A N/A index N/A N/A N/A match start N/A len replacement N/A markerpos N/A N/A N/A match start N/A len replacement N/A text N/A N/A N/A text N/A markerpos marker N/A text N/A markerpos N/A text N/A removeDisabledParts N/A N/A text tags N/A N/A * N/A N/A 
    Return text without portions where wiki markup is disabled

    Parts that can/will be removed are --
    * HTML comments
    * nowiki tags
    * pre tags
    * includeonly tags

    The exact set of parts which should be removed can be passed as the
    'parts' parameter, which defaults to all.
     N/A regexes N/A comments includeonly nowiki pre source syntaxhighlight <!--.*?--> <includeonly>.*?</includeonly> <nowiki>.*?</nowiki> <pre>.*?</pre> <source .*?</source> <syntaxhighlight .*?</syntaxhighlight> N/A N/A * tags N/A N/A tags N/A N/A regexes keys N/A tags N/A set tags N/A N/A source tags N/A N/A N/A N/A tags add syntaxhighlight N/A toRemoveR N/A N/A re compile N/A N/A | join N/A N/A regexes N/A tag N/A tag tags N/A N/A re IGNORECASE N/A re DOTALL N/A N/A N/A toRemoveR sub text N/A isDisabled N/A N/A text index tags N/A N/A * N/A N/A 
    Return True if text[index] is disabled, e.g. by a comment or by nowiki tags.

    For the tags parameter, see removeDisabledParts() above.
     N/A marker N/A findmarker text @@ @ N/A text N/A N/A N/A text N/A index marker N/A text N/A index N/A text N/A removeDisabledParts text tags N/A N/A marker text N/A findmarker N/A N/A text startwith append N/A @ @ N/A N/A N/A N/A len append 0 N/A N/A append @ N/A mymarker startwith N/A N/A mymarker text N/A N/A mymarker append N/A mymarker N/A expandmarker N/A N/A text marker separator N/A N/A N/A separator N/A N/A firstinmarker N/A N/A text find marker N/A firstinseparator firstinmarker N/A lenseparator N/A len separator N/A striploopcontinue True N/A N/A N/A firstinseparator 0 striploopcontinue N/A N/A striploopcontinue False N/A N/A N/A firstinseparator lenseparator N/A separator N/A text N/A N/A firstinseparator lenseparator firstinseparator N/A N/A firstinseparator lenseparator N/A striploopcontinue True N/A N/A N/A N/A text N/A N/A firstinseparator 1 N/A N/A firstinseparator 1 N/A striploopcontinue True N/A marker N/A N/A text N/A firstinseparator firstinmarker marker N/A marker N/A getLanguageLinks N/A N/A text insite pageLink template_subpage N/A None [[]] False N/A N/A 
    Return a dict of interlanguage links found in text.

    Dict uses language codes as keys and Page objects as values.
    Do not call this routine directly, use Page.interwiki() method
    instead.

     N/A N/A insite None N/A N/A insite N/A N/A pywikibot getSite N/A result N/A N/A tags N/A comments nowiki pre source N/A N/A template_subpage N/A N/A tags N/A includeonly N/A text N/A removeDisabledParts text tags N/A interwikiR N/A N/A re compile \[\[([a-zA-Z\-]+)\s?:([^\[\]\n]*)\]\] N/A N/A lang pagetitle N/A N/A interwikiR findall text N/A N/A lang N/A N/A lang lower N/A N/A lang N/A N/A insite family obsolete N/A N/A lang N/A N/A N/A insite family obsolete N/A lang N/A N/A lang N/A N/A insite validLanguageLinks N/A N/A N/A | pagetitle N/A N/A pagetitle N/A pagetitle N/A N/A N/A pagetitle index | N/A site N/A N/A insite getSite code lang N/A N/A N/A N/A result N/A site N/A N/A pywikibot Page site pagetitle insite insite N/A N/A N/A N/A pywikibot InvalidTitle N/A N/A N/A N/A pywikibot output N/A [getLanguageLinks] Text contains invalid interwiki link [[%s:%s]]. N/A lang pagetitle N/A N/A result N/A removeLanguageLinks N/A N/A text site marker N/A None N/A N/A Return text with all interlanguage links removed.

    If a link to an unknown language is encountered, a warning is printed.
    If a marker is defined, that string is placed at the location of the
    last occurence of an interwiki link (at the end if there are no
    interwiki links).

     N/A N/A site None N/A N/A site N/A N/A pywikibot getSite N/A N/A N/A N/A site validLanguageLinks N/A N/A text N/A languages N/A N/A | join N/A N/A N/A site validLanguageLinks N/A N/A N/A N/A site family obsolete keys N/A interwikiR N/A N/A re compile N/A \[\[(%s)\s?:[^\]]*\]\][\s]* languages N/A re IGNORECASE N/A text N/A replaceExcept text interwikiR N/A nowiki comment math pre source marker marker N/A N/A N/A text strip N/A removeLanguageLinksAndSeparator N/A N/A text site marker separator N/A None N/A N/A 
    Return text with all interlanguage links, plus any preceeding whitespace
    and separateor occurrences removed.

    If a link to an unknown language is encountered, a warning is printed.
    If a marker is defined, that string is placed at the location of the
    last occurence of an interwiki link (at the end if there are no
    interwiki links).

     N/A separator N/A N/A mymarker N/A findmarker text @L@ N/A newtext N/A removeLanguageLinks text site mymarker N/A mymarker N/A expandmarker newtext mymarker separator N/A N/A N/A newtext replace mymarker marker N/A N/A N/A removeLanguageLinks text site marker N/A replaceLanguageLinks N/A N/A oldtext new site addOnly template template_subpage N/A None False False False N/A N/A Replace interlanguage links in the text with a new set of links.

    'new' should be a dict with the Site objects as keys, and Page or Link
    objects as values (i.e., just like the dict returned by getLanguageLinks
    function).

     N/A marker N/A findmarker oldtext @@ N/A N/A site None N/A N/A site N/A N/A pywikibot getSite N/A separator N/A N/A site family interwiki_text_separator N/A cseparator N/A N/A site family category_text_separator N/A separatorstripped N/A N/A separator strip N/A cseparatorstripped N/A N/A cseparator strip N/A addOnly N/A N/A s2 oldtext N/A N/A s2 N/A removeLanguageLinksAndSeparator oldtext site site marker marker separator separatorstripped N/A s N/A interwikiFormat new insite site N/A s N/A N/A N/A N/A N/A site language N/A N/A site family interwiki_attop N/A N/A newtext N/A N/A s separator N/A N/A N/A N/A s2 replace marker strip N/A N/A firstafter N/A N/A s2 find marker N/A N/A firstafter 0 N/A N/A firstafter N/A len s2 N/A N/A firstafter N/A len marker N/A N/A </noinclude> N/A s2 N/A firstafter N/A N/A separatorstripped N/A N/A s N/A separator s N/A newtext N/A N/A N/A N/A N/A s2 N/A firstafter replace marker s N/A s2 N/A firstafter N/A N/A N/A N/A N/A site language N/A N/A site family categories_last N/A N/A cats N/A getCategoryLinks s2 site site N/A s2 N/A N/A N/A removeCategoryLinksAndSeparator N/A N/A N/A N/A s2 replace marker cseparatorstripped strip site separator s N/A newtext N/A replaceCategoryLinks s2 cats site site addOnly True N/A N/A N/A N/A N/A site family name wikitravel N/A N/A s N/A N/A separator s separator N/A newtext N/A N/A N/A N/A N/A s2 N/A firstafter replace marker s N/A s2 N/A firstafter N/A N/A N/A template template_subpage N/A N/A template_subpage N/A N/A includeOn <includeonly> N/A includeOff </includeonly> N/A N/A includeOn <noinclude> N/A includeOff </noinclude> N/A separator N/A parts N/A N/A s2 split includeOff N/A lastpart N/A parts N/A -1 N/A N/A N/A re match N/A \s*%s marker lastpart N/A N/A regexp N/A N/A re compile N/A %s\s*%s N/A includeOff marker N/A newtext N/A N/A regexp sub N/A s includeOff s2 N/A N/A newtext N/A N/A N/A N/A N/A N/A s2 replace marker strip separator N/A %s
%s%s
 N/A includeOn s includeOff N/A N/A newtext N/A N/A N/A N/A N/A N/A s2 replace marker strip separator s N/A N/A newtext N/A N/A s2 replace marker N/A newtext N/A interwikiFormat N/A N/A links insite N/A None N/A N/A Convert interwiki link dict into a wikitext string.

    'links' should be a dict with the Site objects as keys, and Page
    or Link objects as values.

    Return a unicode string that is formatted for inclusion in insite
    (defaulting to the current site).
     N/A N/A insite None N/A N/A insite N/A N/A pywikibot getSite N/A N/A links N/A N/A N/A ar N/A interwikiSort N/A N/A links keys insite N/A s N/A N/A site ar N/A N/A N/A N/A link N/A N/A N/A N/A N/A links N/A site aslink forceInterwiki True replace [[: [[ N/A N/A N/A s append link N/A N/A N/A AttributeError N/A N/A N/A N/A s append N/A N/A N/A getSite site linkto N/A links N/A site othersite insite N/A N/A N/A insite lang N/A N/A insite family interwiki_on_one_line N/A N/A sep N/A N/A sep N/A s N/A N/A N/A sep join s N/A s N/A interwikiSort N/A N/A sites insite N/A None N/A N/A N/A insite None N/A N/A insite N/A N/A pywikibot getSite N/A N/A sites N/A N/A N/A N/A N/A N/A sites sort N/A putfirst N/A N/A insite interwiki_putfirst N/A putfirst N/A N/A firstsites N/A N/A code putfirst N/A N/A N/A code N/A N/A insite family obsolete N/A N/A code N/A N/A N/A insite family obsolete N/A code N/A N/A code N/A N/A insite validLanguageLinks N/A N/A site N/A N/A insite getSite code code N/A N/A site sites N/A N/A N/A sites N/A N/A N/A sites index site N/A firstsites N/A firstsites N/A site N/A sites N/A firstsites sites N/A N/A N/A insite interwiki_putfirst_doubled sites N/A N/A sites N/A N/A N/A insite interwiki_putfirst_doubled sites sites N/A sites N/A getCategoryLinks N/A N/A text site N/A N/A N/A catlib N/A Return a list of category links found in text.

    List contains Category objects.
    Do not call this routine directly, use Page.categories() instead.

     N/A result N/A N/A text N/A removeDisabledParts text N/A catNamespace N/A N/A | join N/A N/A site category_namespaces N/A R N/A N/A re compile N/A \[\[\s*(?P<namespace>%s)\s*:\s*(?P<catName>.+?)(?:\|(?P<sortKey>.+?))?\s*\]\] catNamespace N/A re I N/A match N/A N/A R finditer text N/A N/A cat N/A N/A catlib Category site N/A %s:%s N/A N/A N/A match group namespace N/A N/A match group catName sortKey N/A N/A match group sortKey N/A N/A N/A result append cat N/A result N/A removeCategoryLinks N/A N/A text site marker N/A N/A N/A Return text with all category links removed.

    Put the string marker after the last replacement (at the end of the text
    if there is no replacement).

     N/A catNamespace N/A N/A | join N/A N/A site category_namespaces N/A categoryR N/A N/A re compile N/A \[\[\s*(%s)\s*:.*?\]\]\s* catNamespace N/A re I N/A text N/A replaceExcept text categoryR N/A nowiki comment math pre source marker marker N/A marker N/A N/A text N/A N/A re sub N/A \s*%s N/A N/A re escape marker N/A marker N/A N/A text strip N/A N/A N/A text strip N/A removeCategoryLinksAndSeparator N/A N/A text site marker separator N/A None N/A N/A 
    Return text with all category links, plus any preceeding whitespace
    and separateor occurrences removed.

    Put the string marker after the last replacement (at the end of the text
    if there is no replacement).

     N/A separator N/A N/A mymarker N/A findmarker text @C@ N/A newtext N/A removeCategoryLinks text site mymarker N/A mymarker N/A expandmarker newtext mymarker separator N/A N/A N/A newtext replace mymarker marker N/A N/A N/A removeCategoryLinks text site marker N/A replaceCategoryInPlace N/A N/A oldtext oldcat newcat site N/A None N/A N/A Replace the category oldcat with the category newcat and return
       the modified text.

     N/A N/A site None N/A N/A site N/A N/A pywikibot getSite N/A catNamespace N/A N/A | join N/A N/A site category_namespaces N/A title N/A N/A oldcat titleWithoutNamespace N/A N/A title N/A N/A N/A title N/A N/A re escape title N/A N/A N/A N/A N/A title N/A 0 isalpha N/A N/A site nocapitalize N/A N/A title N/A N/A [%s%s] N/A N/A N/A N/A title N/A 0 upper N/A N/A N/A title N/A 0 lower N/A title N/A 1 N/A title N/A N/A N/A N/A title replace \  [ _]+ replace \_ [ _]+ N/A categoryR N/A N/A re compile N/A \[\[\s*(%s)\s*:\s*%s\s*((?:\|[^]]+)?\]\]) N/A catNamespace title N/A re I N/A N/A newcat None N/A N/A text N/A replaceExcept oldtext categoryR N/A nowiki comment math pre source N/A N/A text N/A replaceExcept oldtext categoryR N/A [[%s:%s\2 N/A N/A N/A site namespace 14 N/A N/A newcat titleWithoutNamespace N/A nowiki comment math pre source N/A text N/A replaceCategoryLinks N/A N/A oldtext new site addOnly N/A None False N/A N/A 
    Replace the category links given in the wikitext given
    in oldtext by the new links given in new.

    'new' should be a list of Category objects.

    If addOnly is True, the old category won't be deleted and the
    category(s) given will be added (and so they won't replace anything).

     N/A marker N/A findmarker oldtext @@ N/A N/A site None N/A N/A site N/A N/A pywikibot getSite N/A N/A N/A N/A N/A site sitename wikipedia:de N/A {{Personendaten oldtext N/A N/A N/A Error The PyWikipediaBot is no longer allowed to touch categories on the German
Wikipedia on pages that contain the Personendaten template because of the
non-standard placement of that template.
See http://de.wikipedia.org/wiki/Hilfe_Diskussion:Personendaten/Archiv/bis_2006#Position_der_Personendaten_am_.22Artikelende.22 N/A separator N/A N/A site family category_text_separator N/A iseparator N/A N/A site family interwiki_text_separator N/A separatorstripped N/A N/A separator strip N/A iseparatorstripped N/A N/A iseparator strip N/A addOnly N/A N/A s2 oldtext N/A N/A s2 N/A removeCategoryLinksAndSeparator oldtext site site marker marker separator separatorstripped N/A s N/A categoryFormat new insite site N/A s N/A N/A N/A N/A N/A site language N/A N/A site family category_attop N/A N/A newtext N/A N/A s separator s2 N/A N/A firstafter N/A N/A s2 find marker N/A N/A firstafter 0 N/A N/A firstafter N/A len s2 N/A N/A firstafter N/A len marker N/A N/A </noinclude> N/A s2 N/A firstafter N/A N/A separatorstripped N/A N/A s N/A separator s N/A newtext N/A N/A N/A N/A N/A s2 N/A firstafter replace marker s N/A s2 N/A firstafter N/A N/A N/A N/A N/A site language N/A N/A site family categories_last N/A N/A newtext N/A N/A N/A N/A N/A N/A s2 replace marker strip separator s N/A N/A interwiki N/A getLanguageLinks s2 N/A s2 N/A N/A N/A removeLanguageLinksAndSeparator N/A N/A s2 replace marker site iseparatorstripped separator s N/A newtext N/A replaceLanguageLinks s2 interwiki site site addOnly True N/A N/A newtext N/A N/A s2 replace marker N/A N/A N/A newtext strip N/A categoryFormat N/A N/A categories insite N/A None N/A N/A Return a string containing links to all categories in a list.

    'categories' should be a list of Category objects.

    The string is formatted for inclusion in insite.

     N/A N/A categories N/A N/A N/A N/A insite None N/A N/A insite N/A N/A pywikibot getSite N/A catLinks N/A N/A N/A category aslink noInterwiki True N/A category categories N/A N/A N/A insite category_on_one_line N/A N/A sep N/A N/A sep N/A N/A N/A N/A sep join catLinks N/A compileLinkR N/A N/A withoutBracketed onlyBracketed N/A False False N/A N/A Return a regex that matches external links. N/A notAtEnd \]\s\.:;,<>"\| N/A notInside \]\s<>" N/A regex N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A (?P<url>http[s]?://[^ notInside ]*?[^ notAtEnd ](?=[ notAtEnd ]*'')|http[s]?://[^ notInside ]*[^ notAtEnd ]) N/A withoutBracketed N/A N/A regex N/A (?<!\[) regex N/A N/A onlyBracketed N/A N/A regex N/A \[ regex N/A linkR N/A N/A re compile regex N/A linkR N/A extract_templates_and_params N/A N/A text get_redirect N/A False N/A N/A Return list of template calls found in text.

    Return value is a list of tuples. There is one tuple for each use of a
    template in the page, with the template title as the first entry and a
    dict of parameters as the second entry.  Parameters are indexed by
    strings; as in MediaWiki, an unnamed parameter is given a parameter name
    with an integer value corresponding to its position among the unnnamed
    parameters, and if this results multiple parameters with the same name
    only the last value provided will be returned.

     N/A thistxt N/A removeDisabledParts text N/A marker @@ N/A N/A marker thistxt N/A N/A marker @ N/A marker2 ## N/A N/A marker2 thistxt N/A N/A marker2 # N/A marker3 %% N/A N/A marker2 thistxt N/A N/A marker3 % N/A result N/A N/A inside N/A N/A count 0 N/A Rtemplate N/A N/A re compile {{(msg:)?(?P<name>[^{\|]+?)(\|(?P<params>[^{]+?))?}} N/A Rmath N/A N/A re compile <math>[^<]+</math> N/A Rmarker N/A N/A re compile N/A %s(\d+)%s N/A marker marker N/A Rmarker2 N/A N/A re compile N/A %s(\d+)%s N/A marker2 marker2 N/A Rmarker3 N/A N/A re compile N/A %s(\d+)%s N/A marker3 marker3 N/A maths N/A N/A count 0 N/A m N/A N/A Rmath finditer thistxt N/A N/A count 1 N/A text N/A N/A m group N/A thistxt N/A N/A thistxt replace text N/A %s%d%s N/A marker3 count marker3 N/A N/A maths N/A count text N/A N/A N/A N/A Rtemplate search thistxt None N/A N/A m N/A N/A Rtemplate finditer thistxt N/A N/A count 1 N/A text N/A N/A m group N/A thistxt N/A N/A thistxt replace text N/A %s%d%s N/A marker count marker N/A m2 N/A N/A Rmarker finditer text N/A N/A text N/A N/A text replace N/A N/A m2 group N/A inside N/A N/A int N/A N/A m2 group 1 N/A m2 N/A N/A Rmarker3 finditer text N/A N/A text N/A N/A text replace N/A N/A m2 group N/A maths N/A N/A int N/A N/A m2 group 1 N/A N/A inside N/A count text N/A name N/A N/A N/A N/A m group name strip N/A m2 N/A N/A N/A Rmarker search name N/A N/A Rmath search name N/A N/A m2 None N/A N/A N/A paramString N/A N/A m group params N/A params N/A N/A numbered_param 1 N/A paramString N/A N/A links N/A N/A count2 0 N/A m2 N/A N/A N/A pywikibot link_regex finditer paramString N/A N/A count2 1 N/A text N/A N/A m2 group 0 N/A paramString N/A N/A paramString replace text N/A %s%d%s N/A marker2 count2 marker2 N/A N/A links N/A count2 text N/A markedParams N/A N/A paramString split | N/A param markedParams N/A N/A N/A = param N/A N/A N/A param_name param_val N/A N/A param split = 1 N/A N/A param_name N/A unicode numbered_param N/A param_val param N/A numbered_param 1 N/A m2 N/A N/A Rmarker finditer param_val N/A N/A param_val N/A N/A param_val replace N/A N/A m2 group N/A inside N/A N/A int N/A N/A m2 group 1 N/A m2 N/A N/A Rmarker2 finditer param_val N/A N/A param_val N/A N/A param_val replace N/A N/A m2 group N/A links N/A N/A int N/A N/A m2 group 1 N/A m2 N/A N/A Rmarker3 finditer param_val N/A N/A param_val N/A N/A param_val replace N/A N/A m2 group N/A maths N/A N/A int N/A N/A m2 group 1 N/A N/A params N/A N/A N/A param_name strip N/A N/A param_val strip N/A N/A N/A result append N/A name params N/A result N/A _altlang N/A N/A code N/A N/A N/A Define fallback languages for particular languages.

    If no translation is available to a specified language, translate() will
    try each of the specified fallback languages, in order, until it finds
    one with a translation, or '_default' as a last resort.

     N/A N/A code N/A aa om N/A N/A N/A am N/A N/A code N/A arc arz N/A N/A N/A ar N/A N/A code kab N/A N/A N/A ar fr N/A N/A code N/A cu mk N/A N/A N/A bg sr sh N/A N/A code N/A cs sk N/A N/A N/A cs sk N/A N/A code N/A bar ksh pdc N/A N/A N/A de N/A N/A code N/A als lb N/A N/A N/A de fr N/A N/A code nds N/A N/A N/A nds-nl de N/A N/A code N/A dsb hsb N/A N/A N/A hsb dsb de N/A N/A code rm N/A N/A N/A de it N/A N/A code stq N/A N/A N/A fy de N/A N/A code pnt N/A N/A N/A el N/A N/A code N/A io nov N/A N/A N/A eo N/A N/A code N/A an ast ay ca ext lad nah nv qu N/A N/A N/A es N/A N/A code N/A gl gn N/A N/A N/A es pt N/A N/A code N/A eu N/A N/A N/A es fr N/A N/A code N/A bcl cbk-zam ceb ilo pag pam tl war N/A N/A N/A es tl N/A N/A code fiu-vro N/A N/A N/A et N/A N/A code N/A glk mzn N/A N/A N/A ar N/A N/A code N/A bm br ht kab kg ln mg nrm oc pcd rw sg ty wa N/A N/A N/A fr N/A N/A code co N/A N/A N/A fr it N/A N/A code N/A bh pi sa N/A N/A N/A hi N/A N/A code N/A ne new N/A N/A N/A ne new hi N/A N/A code N/A ace bug id jv ms su N/A N/A N/A id ms jv N/A N/A code map-bms N/A N/A N/A jv id ms N/A N/A code N/A ik iu N/A N/A N/A iu kl N/A N/A code kl N/A N/A N/A iu da no N/A N/A code N/A eml fur lij lmo nap pms roa-tara sc scn vec N/A N/A N/A it N/A N/A code frp N/A N/A N/A it fr N/A N/A code N/A bat-smg ltg N/A N/A N/A lt N/A N/A code N/A fy li pap srn vls zea N/A N/A N/A nl N/A N/A code N/A nds-nl N/A N/A N/A nds nl N/A N/A code N/A csb szl N/A N/A N/A pl N/A N/A code N/A fab mwl tet N/A N/A N/A pt N/A N/A code N/A mo roa-rup N/A N/A N/A ro N/A N/A code N/A ab av ba bxr ce cv kk ky lbe mdf mhr myv os sah tg tt udm uk xal N/A N/A N/A ru N/A N/A code N/A be be-x-old N/A N/A N/A be be-x-old ru N/A N/A code kaa N/A N/A N/A uz ru N/A N/A code N/A bs hr sh sr N/A N/A N/A sh hr bs sr N/A N/A code N/A diq ku N/A N/A N/A ku tr N/A N/A code ckb N/A N/A N/A ku ar N/A N/A code N/A minnan zh zh-classical zh-min-nan zh-tw zh-hans zh-hant N/A N/A N/A zh zh-tw zh-cn zh-classical N/A N/A code N/A cdo gan hak ii wuu za zh-cdo zh-classical zh-cn zh-yue N/A N/A N/A zh zh-cn zh-tw zh-classical N/A N/A code N/A da sv N/A N/A N/A da no nb sv nn N/A N/A code N/A fo is N/A N/A N/A da no nb nn sv N/A N/A code nn N/A N/A N/A no nb sv da N/A N/A code N/A nb no N/A N/A N/A no nb da nn sv N/A N/A code se N/A N/A N/A sv no nb nn fi N/A N/A code N/A bi tpi N/A N/A N/A bi tpi N/A N/A code yi N/A N/A N/A he de N/A N/A code N/A ia ie N/A N/A N/A ia la it fr es N/A N/A N/A translate N/A N/A code xdict N/A N/A N/A Return the most appropriate translation from a translation dict.

    Given a language code and a dictionary, returns the dictionary's value for
    key 'code' if this key exists; otherwise tries to return a value for an
    alternative language that is most applicable to use on the Wikipedia in
    language 'code'.

    The language itself is always checked first, then languages that
    have been defined to be alternatives, and finally English. If none of
    the options gives result, we just take the first language in the
    list.

     N/A N/A hasattr code lang N/A N/A code N/A code lang N/A N/A wikipedia xdict N/A N/A N/A N/A pywikibot default_family xdict N/A N/A xdict N/A xdict N/A N/A pywikibot default_family N/A N/A xdict N/A xdict N/A wikipedia N/A N/A N/A type xdict dict N/A N/A xdict N/A N/A code xdict N/A N/A N/A xdict N/A code N/A alt N/A _altlang code N/A N/A N/A alt xdict N/A N/A N/A xdict N/A alt N/A N/A _default xdict N/A N/A N/A xdict N/A _default N/A N/A N/A en xdict N/A N/A N/A xdict N/A en N/A N/A N/A N/A xdict values N/A 0 N/A