Module Expr Str Import alias Import alias Import alias ImportFrom alias identifier Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Str Str Str Str NameLoad Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assert BoolOpAnd CompareEq Call NameLoad NameLoad Num Call NameLoad ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str If NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call NameLoad Call NameLoad NameLoad Slice Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body If NameLoad body If NameLoad body Raise Call NameLoad Str If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Str If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Num Str body Raise Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore NameLoad Return TupleLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad orelse If CompareEq NameLoad Str body Raise Call NameLoad orelse If CompareEq NameLoad Str body Raise Call NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareNotIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index NameLoad SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Return orelse Assert Num BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad For NameStore NameLoad body If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num NameLoad orelse If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Continue ExceptHandler type NameLoad body Break decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad For NameStore NameLoad body Assert UnaryOpNot Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad NameLoad Break decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body TryExcept body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad handlers ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num If Call NameLoad NameLoad Str NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Raise SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body Exec NameLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad orelse Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Raise SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body If CompareIs NameLoad NameLoad body Return Str If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad NameLoad orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Raise SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num orelse If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr Call NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Str orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareGtE AttributeLoad NameLoad attr Str Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareLt AttributeLoad NameLoad attr Str body If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults kwarg body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body If CompareIs NameLoad NameLoad body Continue If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Return Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Return Call NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Assign TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd UnaryOpNot NameLoad CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad While NameLoad body While BoolOpAnd NameLoad CompareIn SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Num orelse If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Break orelse Raise Call NameLoad BinOpMod Str Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list If CompareLt AttributeLoad NameLoad attr Str body Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad Delete NameDel FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Num Assign NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareEq NameLoad SubscriptLoad NameLoad Index Num NameLoad body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad orelse If BoolOpAnd CompareEq NameLoad SubscriptLoad NameLoad Index Num UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Slice NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Continue Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr NameLoad CompareNotIn NameLoad NameLoad body Continue If UnaryOpNot NameLoad body Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Index BinOpSub NameLoad Num If CompareGtE BinOpAdd NameLoad Num Call NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad Num If BoolOpOr UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Continue Assign NameStore BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareEq NameLoad Num UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq BinOpAdd NameLoad Num NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Str If BoolOpAnd NameLoad BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num UnaryOpNot Call AttributeLoad NameLoad attr body If NameLoad body If BoolOpOr BoolOpAnd CompareEq NameLoad Num UnaryOpNot Call AttributeLoad NameLoad attr CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index BinOpSub NameLoad Num Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index BinOpSub NameLoad Num NameLoad If NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num UnaryOpNot Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index BinOpAdd NameLoad Num Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index BinOpAdd NameLoad Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr Return TupleLoad BinOpAdd Call NameLoad NameLoad NameLoad BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad While NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad body If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Return TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str AugAssignAdd NameStore Str orelse If CompareIn Str NameLoad body Raise Call NameLoad Str keyword NameLoad keyword NameLoad Return TupleLoad TupleLoad Str NameLoad NameLoad SubscriptLoad NameLoad Slice Num orelse If CompareIn NameLoad TupleLoad Str Str body If CompareNotIn Str NameLoad body Raise Call NameLoad Str keyword NameLoad keyword NameLoad Return TupleLoad TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad NameLoad NameLoad orelse If BoolOpOr Call AttributeLoad NameLoad attr Str CompareEq NameLoad Str body Raise Call NameLoad BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num keyword NameLoad keyword NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return TupleLoad TupleLoad Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Slice Num Return TupleLoad TupleLoad Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore ListLoad Assign NameStore BinOpAdd NameLoad TupleLoad Str While Num body If UnaryOpNot NameLoad body Raise Call NameLoad Str keyword NameLoad keyword NameLoad If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body Return TupleLoad BinOpAdd TupleLoad Str NameLoad Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Assign NameStore ListLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If Call AttributeLoad NameLoad attr Str body Assign NameStore TupleLoad Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore TupleLoad Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore TupleLoad Str NameLoad NameLoad NameLoad orelse Assert Num BinOpMod Str TupleLoad NameLoad NameLoad While Num body If UnaryOpNot NameLoad body Raise Call NameLoad Str keyword NameLoad keyword NameLoad If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index Num NameLoad BoolOpOr CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body Return TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore BinOpAdd TupleLoad Str NameLoad Assign NameStore ListLoad Assert Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr While Num body If UnaryOpNot NameLoad body Raise Call NameLoad Str keyword NameLoad keyword NameLoad If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body Return TupleLoad TupleLoad Str NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Num Assert Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Num Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr If CompareIn Str NameLoad body Raise Call NameLoad Str keyword NameLoad keyword NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Return TupleLoad TupleLoad Str NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Num Assert Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Num Index Num Return TupleLoad TupleLoad Str NameLoad NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num Assert Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Num Index Num If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If CompareNotIn Str NameLoad body Assign NameStore NameLoad Assign NameStore TupleLoad TupleLoad NameLoad NameLoad Dict orelse If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad TupleLoad Str Assign NameStore ListLoad While Num body If UnaryOpNot NameLoad body Raise Call NameLoad Str keyword NameLoad keyword NameLoad If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body Return TupleLoad TupleLoad Str NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults NameLoad body TryExcept body Assign TupleStore NameStore NameStore TupleStore NameStore NameStore TupleStore NameStore NameStore NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return TupleLoad AttributeLoad NameLoad attr Str If NameLoad body Return TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad orelse Return TupleLoad NameLoad NameLoad decorator_list While Num body Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Break If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad If BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Break Continue If CompareIsNot NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Str body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore NameStore NameLoad Assign NameStore ListLoad While Num body Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd UnaryOpNot NameLoad BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Break Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If BoolOpAnd NameLoad CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad NameLoad body AugAssignAdd NameStore Num orelse If BoolOpAnd NameLoad CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad NameLoad body AugAssignSub NameStore Num If UnaryOpNot NameLoad body Assign NameStore NameStore NameLoad orelse If BoolOpAnd UnaryOpNot NameLoad CompareEq NameLoad AttributeLoad NameLoad attr CompareIn NameLoad TupleLoad Str Str Str body Assign NameStore NameLoad Assign NameStore Num Assign NameStore SubscriptLoad Dict Str Str Str Str Str Str Index NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad AugAssignSub NameStore Num Assign TupleStore NameStore NameStore NameLoad AugAssignSub NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad NameLoad Assign NameStore ListLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num NameLoad If CompareLt NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults NameLoad body Import alias Import alias Import alias Import alias If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt Call NameLoad NameLoad Num body Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Dict If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If CompareNotIn Str NameLoad body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str orelse Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
A small templating language

This implements a small templating language.  This language implements
if/elif/else, for/continue/break, expressions, and blocks of Python
code.  The syntax is::

  {{any expression (function calls etc)}}
  {{any expression | filter}}
  {{for x in y}}...{{endfor}}
  {{if x}}x{{elif y}}y{{else}}z{{endif}}
  {{py:x=1}}
  {{py:
  def foo(bar):
      return 'baz'
  }}
  {{default var = default_value}}
  {{# comment}}

You use this with the ``Template`` class or the ``sub`` shortcut.
The ``Template`` class takes the template string and the name of
the template (for errors) and a default namespace.  Then (like
``string.Template``) you can call the ``tmpl.substitute(**kw)``
method to make a substitution (or ``tmpl.substitute(a_dict)``).

``sub(content, **kw)`` substitutes the template immediately.  You
can use ``__name='tmpl.html'`` to set the name of the template.

If there are syntax errors ``TemplateError`` will be raised.
 N/A re N/A sys N/A cgi urllib quote url_quote N/A os N/A tokenize cStringIO StringIO tempita._looper looper tempita.compat3 bytes basestring_ next is_unicode coerce_text N/A __all__ N/A TemplateError Template sub HTMLTemplate sub_html html bunch N/A in_re N/A N/A re compile \s+in\s+ N/A var_re N/A N/A re compile ^[a-z_][a-z0-9_]*$ N/A re I TemplateError N/A Exception N/A N/A Exception raised while parsing a template
     __init__ N/A N/A self message position name N/A None N/A N/A N/A N/A Exception __init__ self message N/A N/A self position position N/A N/A self name name N/A __str__ N/A N/A self N/A N/A N/A msg N/A N/A join N/A self args N/A N/A self position N/A N/A msg N/A %s at line %s column %s N/A msg N/A N/A self position N/A 0 N/A N/A self position N/A 1 N/A N/A self name N/A N/A msg N/A  in %s N/A self name N/A msg N/A N/A _TemplateContinue N/A Exception N/A N/A N/A _TemplateBreak N/A Exception N/A N/A N/A get_file_template N/A N/A name from_template N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname N/A from_template name name N/A N/A N/A N/A from_template __class__ from_filename path namespace N/A from_template namespace get_template N/A from_template get_template N/A Template N/A object N/A N/A default_namespace N/A start_braces end_braces looper {{ }} looper N/A default_encoding utf8 N/A default_inherit None __init__ N/A N/A self content name namespace stacklevel get_template default_inherit line_offset delimeters N/A None None None None None 0 None N/A N/A N/A self content content N/A N/A delimeters None N/A N/A delimeters N/A N/A N/A self default_namespace N/A start_braces N/A N/A self default_namespace N/A end_braces N/A N/A N/A N/A N/A len delimeters 2 N/A all N/A N/A isinstance delimeter basestring N/A delimeter delimeters N/A N/A self default_namespace N/A N/A N/A N/A self __class__ default_namespace copy N/A N/A N/A self default_namespace N/A start_braces N/A delimeters N/A 0 N/A N/A N/A self default_namespace N/A end_braces N/A delimeters N/A 1 N/A N/A self delimeters delimeters N/A N/A self _unicode N/A is_unicode content N/A N/A N/A name None N/A stacklevel None N/A N/A N/A N/A caller N/A N/A sys _getframe stacklevel N/A N/A N/A ValueError N/A N/A N/A N/A globals N/A caller f_globals N/A lineno N/A caller f_lineno N/A N/A __file__ globals N/A N/A name N/A globals N/A __file__ N/A N/A N/A N/A name endswith .pyc N/A N/A name endswith .pyo N/A N/A name N/A name N/A -1 N/A N/A N/A __name__ globals N/A N/A name N/A globals N/A __name__ N/A N/A name <string> N/A lineno N/A N/A name N/A :%s lineno N/A N/A self name name N/A N/A self _parsed N/A parse content name name line_offset line_offset delimeters N/A self delimeters N/A N/A namespace None N/A N/A namespace N/A N/A N/A self namespace namespace N/A N/A self get_template get_template N/A N/A default_inherit None N/A N/A N/A self default_inherit default_inherit N/A from_filename N/A N/A cls filename namespace encoding default_inherit get_template N/A None None None get_file_template N/A N/A f N/A open filename rb N/A c N/A N/A f read N/A N/A N/A f close N/A encoding N/A N/A c N/A N/A c decode encoding N/A N/A cls content c name filename namespace namespace default_inherit default_inherit get_template get_template N/A N/A from_filename N/A classmethod from_filename __repr__ N/A N/A self N/A N/A N/A N/A <%s %s name=%r> N/A N/A N/A self __class__ __name__ N/A N/A hex N/A id self N/A 2 N/A self name N/A substitute N/A N/A self N/A args kw N/A N/A args N/A N/A kw N/A N/A N/A TypeError You can only give positional *or* keyword arguments N/A N/A N/A len args 1 N/A N/A N/A TypeError You can only give one positional argument N/A N/A N/A hasattr N/A args N/A 0 items N/A N/A N/A TypeError N/A If you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave %r N/A N/A args N/A 0 N/A kw N/A args N/A 0 N/A ns kw N/A N/A ns N/A __template_name__ N/A self name N/A N/A self namespace N/A N/A N/A N/A ns update N/A self namespace N/A N/A result defs inherit N/A N/A self _interpret ns N/A N/A inherit N/A N/A inherit N/A self default_inherit N/A inherit N/A N/A result N/A N/A self _interpret_inherit result defs inherit ns N/A result N/A _interpret N/A N/A self ns N/A N/A N/A __traceback_hide__ True N/A parts N/A N/A defs N/A N/A N/A N/A self _interpret_codes N/A self _parsed ns out parts defs defs N/A N/A __inherit__ defs N/A N/A inherit N/A N/A defs pop __inherit__ N/A N/A inherit None N/A N/A N/A N/A join parts defs inherit N/A _interpret_inherit N/A N/A self body defs inherit_template ns N/A N/A N/A __traceback_hide__ True N/A N/A N/A self get_template N/A N/A N/A TemplateError You cannot use inheritance without passing in get_template position None name N/A self name N/A templ N/A N/A self get_template inherit_template self N/A self_ N/A TemplateObject N/A self name N/A N/A name value N/A N/A defs iteritems N/A N/A N/A setattr self_ name value N/A N/A self_ body body N/A ns N/A N/A ns copy N/A N/A ns N/A self self_ N/A N/A N/A templ substitute ns N/A _interpret_codes N/A N/A self codes ns out defs N/A N/A N/A __traceback_hide__ True N/A item codes N/A N/A N/A isinstance item basestring_ N/A N/A N/A N/A out append item N/A N/A N/A N/A self _interpret_code item ns out defs N/A _interpret_code N/A N/A self code ns out defs N/A N/A N/A __traceback_hide__ True N/A N/A name pos N/A N/A code N/A 0 N/A code N/A 1 N/A N/A name py N/A N/A N/A N/A self _exec N/A code N/A 2 ns pos N/A N/A N/A name continue N/A N/A N/A _TemplateContinue N/A N/A N/A name break N/A N/A N/A _TemplateBreak N/A N/A N/A name for N/A N/A N/A vars expr content N/A N/A code N/A 2 N/A code N/A 3 N/A code N/A 4 N/A expr N/A N/A self _eval expr ns pos N/A N/A N/A self _interpret_for vars expr content ns out defs N/A N/A N/A name cond N/A N/A parts N/A code N/A 2 N/A N/A N/A self _interpret_if parts ns out defs N/A N/A N/A name expr N/A N/A parts N/A N/A N/A code N/A 2 split | N/A base N/A N/A self _eval N/A parts N/A 0 ns pos N/A part N/A parts N/A 1 N/A N/A func N/A N/A self _eval part ns pos N/A base N/A func base N/A N/A N/A out append N/A N/A self _repr base pos N/A N/A N/A name default N/A N/A N/A var expr N/A N/A code N/A 2 N/A code N/A 3 N/A N/A var ns N/A N/A result N/A N/A self _eval expr ns pos N/A N/A ns N/A var result N/A N/A N/A name inherit N/A N/A expr N/A code N/A 2 N/A value N/A N/A self _eval expr ns pos N/A N/A defs N/A __inherit__ value N/A N/A N/A name def N/A N/A name N/A code N/A 2 N/A signature N/A code N/A 3 N/A parts N/A code N/A 4 N/A N/A ns N/A name N/A defs N/A name N/A TemplateDef self name signature body parts ns ns pos pos N/A N/A N/A name comment N/A N/A N/A N/A 0 N/A Unknown code: %r name N/A _interpret_for N/A N/A self vars expr content ns out defs N/A N/A N/A __traceback_hide__ True N/A item expr N/A N/A N/A N/A len vars 1 N/A N/A N/A ns N/A N/A vars N/A 0 item N/A N/A N/A N/A len vars N/A len item N/A N/A N/A ValueError N/A Need %i items to unpack (got %i items) N/A N/A len vars N/A len item N/A N/A name value N/A zip vars item N/A N/A N/A ns N/A name value N/A N/A N/A N/A N/A self _interpret_codes content ns out defs N/A N/A N/A _TemplateContinue N/A N/A N/A N/A _TemplateBreak N/A N/A N/A _interpret_if N/A N/A self parts ns out defs N/A N/A N/A __traceback_hide__ True N/A part parts N/A N/A N/A N/A isinstance part basestring_ N/A N/A name pos N/A N/A part N/A 0 N/A part N/A 1 N/A N/A name else N/A N/A result True N/A N/A result N/A N/A self _eval N/A part N/A 2 ns pos N/A result N/A N/A N/A N/A self _interpret_codes N/A part N/A 3 ns out defs N/A N/A _eval N/A N/A self code ns pos N/A N/A N/A __traceback_hide__ True N/A N/A N/A N/A N/A value N/A eval code N/A self default_namespace ns N/A N/A N/A SyntaxError N/A e N/A N/A N/A SyntaxError N/A invalid syntax in expression: %s code N/A value N/A N/A N/A N/A exc_info N/A N/A sys exc_info N/A e N/A exc_info N/A 1 N/A N/A getattr e args None N/A N/A arg0 N/A N/A e args N/A 0 N/A N/A arg0 N/A coerce_text e N/A N/A e args N/A N/A N/A self _add_line_info arg0 pos N/A N/A exc_info N/A 0 e N/A exc_info N/A 2 N/A _exec N/A N/A self code ns pos N/A N/A N/A __traceback_hide__ True N/A N/A N/A code N/A self default_namespace ns N/A N/A N/A N/A exc_info N/A N/A sys exc_info N/A e N/A exc_info N/A 1 N/A N/A e args N/A N/A N/A e args N/A N/A N/A self _add_line_info N/A N/A e args N/A 0 pos N/A N/A N/A e args N/A N/A N/A self _add_line_info None pos N/A N/A exc_info N/A 0 e N/A exc_info N/A 2 N/A _repr N/A N/A self value pos N/A N/A N/A __traceback_hide__ True N/A N/A N/A N/A value None N/A N/A N/A N/A self _unicode N/A N/A N/A N/A value N/A unicode value N/A N/A N/A UnicodeDecodeError N/A N/A value N/A bytes value N/A N/A N/A N/A isinstance value basestring_ N/A N/A value N/A coerce_text value N/A N/A N/A is_unicode value N/A self default_encoding N/A N/A value N/A N/A value encode N/A self default_encoding N/A N/A N/A N/A exc_info N/A N/A sys exc_info N/A e N/A exc_info N/A 1 N/A N/A e args N/A N/A N/A self _add_line_info N/A N/A e args N/A 0 pos N/A N/A exc_info N/A 0 e N/A exc_info N/A 2 N/A N/A N/A N/A self _unicode N/A isinstance value bytes N/A N/A N/A N/A self default_encoding N/A N/A N/A UnicodeDecodeError N/A Cannot decode bytes value %r into unicode (no default_encoding provided) value N/A N/A N/A value N/A N/A value decode N/A self default_encoding N/A N/A N/A UnicodeDecodeError N/A e N/A N/A N/A UnicodeDecodeError N/A e encoding N/A e object N/A e start N/A e end N/A N/A e reason N/A  in string %r value N/A N/A N/A N/A N/A self _unicode N/A is_unicode value N/A N/A N/A N/A self default_encoding N/A N/A N/A UnicodeEncodeError N/A Cannot encode unicode value %r into bytes (no default_encoding provided) value N/A value N/A N/A value encode N/A self default_encoding N/A value N/A _add_line_info N/A N/A self msg pos N/A N/A N/A msg N/A %s at line %s column %s N/A msg N/A pos N/A 0 N/A pos N/A 1 N/A N/A self name N/A N/A msg N/A  in file %s N/A self name N/A msg N/A N/A sub N/A N/A content delimeters N/A None kw N/A N/A name N/A N/A kw get __name N/A tmpl N/A Template content name name delimeters delimeters N/A N/A N/A tmpl substitute kw N/A paste_script_template_renderer N/A N/A content vars filename N/A None N/A N/A tmpl N/A Template content name filename N/A N/A N/A tmpl substitute vars N/A bunch N/A dict N/A __init__ N/A N/A self N/A kw N/A N/A N/A name value N/A N/A kw iteritems N/A N/A N/A setattr self name value N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A self N/A name value N/A __getattr__ N/A N/A self name N/A N/A N/A N/A N/A N/A self N/A name N/A N/A N/A KeyError N/A N/A N/A AttributeError name N/A __getitem__ N/A N/A self key N/A N/A N/A N/A default self N/A N/A N/A N/A N/A N/A dict __getitem__ self key N/A N/A N/A KeyError N/A N/A N/A N/A dict __getitem__ self default N/A N/A N/A N/A dict __getitem__ self key N/A __repr__ N/A N/A self N/A N/A N/A items N/A N/A k v N/A N/A k v N/A N/A self iteritems N/A N/A N/A items sort N/A N/A <%s %s> N/A N/A N/A self __class__ __name__ N/A N/A join N/A N/A %s=%r N/A k v N/A N/A k v items N/A N/A html N/A object N/A __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A __str__ N/A N/A self N/A N/A N/A N/A self value N/A __html__ N/A N/A self N/A N/A N/A N/A self value N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %r> N/A N/A N/A self __class__ __name__ N/A self value N/A N/A html_quote N/A N/A value force N/A True N/A N/A N/A N/A force N/A hasattr value __html__ N/A N/A N/A N/A value __html__ N/A N/A value None N/A N/A N/A N/A N/A isinstance value basestring_ N/A N/A value N/A coerce_text value N/A N/A N/A N/A sys version 3 N/A isinstance value bytes N/A N/A value N/A N/A cgi escape N/A N/A value decode latin1 1 N/A value N/A N/A value encode latin1 N/A N/A value N/A N/A cgi escape value 1 N/A N/A N/A sys version 3 N/A N/A N/A is_unicode value N/A N/A value N/A N/A value encode ascii xmlcharrefreplace N/A value N/A url N/A N/A v N/A N/A N/A v N/A coerce_text v N/A N/A is_unicode v N/A N/A v N/A N/A v encode utf8 N/A N/A url_quote v N/A attr N/A N/A N/A kw N/A N/A kw N/A list N/A N/A kw iteritems N/A N/A N/A kw sort N/A parts N/A N/A N/A name value kw N/A N/A N/A value None N/A N/A N/A N/A N/A name endswith _ N/A N/A name N/A name N/A -1 N/A N/A N/A parts append N/A %s="%s" N/A N/A html_quote name N/A html_quote value N/A N/A html N/A N/A join parts N/A HTMLTemplate N/A Template N/A N/A default_namespace N/A N/A N/A Template default_namespace copy N/A N/A N/A default_namespace update N/A dict html html attr attr url url html_quote html_quote _repr N/A N/A self value pos N/A N/A N/A N/A hasattr value __html__ N/A N/A value N/A N/A value __html__ N/A quote False N/A N/A quote True N/A plain N/A N/A Template _repr self value pos N/A quote N/A N/A N/A html_quote plain N/A N/A plain N/A N/A sub_html N/A N/A content N/A kw N/A N/A name N/A N/A kw get __name N/A tmpl N/A HTMLTemplate content name name N/A N/A N/A tmpl substitute kw N/A TemplateDef N/A object N/A __init__ N/A N/A self template func_name func_signature body ns pos bound_self N/A None N/A N/A N/A self _template template N/A N/A self _func_name func_name N/A N/A self _func_signature func_signature N/A N/A self _body body N/A N/A self _ns ns N/A N/A self _pos pos N/A N/A self _bound_self bound_self N/A __repr__ N/A N/A self N/A N/A N/A N/A <tempita function %s(%s) at %s:%s> N/A N/A self _func_name N/A self _func_signature N/A N/A self _template name N/A self _pos N/A __str__ N/A N/A self N/A N/A N/A N/A self N/A __call__ N/A N/A self N/A args kw N/A N/A values N/A N/A self _parse_signature args kw N/A ns N/A N/A N/A self _ns copy N/A N/A N/A ns update values N/A N/A N/A self _bound_self None N/A N/A N/A ns N/A self N/A self _bound_self N/A out N/A N/A subdefs N/A N/A N/A N/A N/A self _template _interpret_codes N/A self _body ns out subdefs N/A N/A N/A join out N/A __get__ N/A N/A self obj type N/A None N/A N/A N/A obj None N/A N/A self N/A N/A N/A self __class__ N/A self _template N/A self _func_name N/A self _func_signature N/A self _body N/A self _ns N/A self _pos bound_self obj N/A _parse_signature N/A N/A self args kw N/A N/A N/A values N/A N/A N/A sig_args var_args var_kw defaults N/A self _func_signature N/A extra_kw N/A N/A N/A name value N/A N/A kw iteritems N/A N/A N/A N/A var_kw N/A name sig_args N/A N/A N/A TypeError N/A Unexpected argument %s name N/A N/A name sig_args N/A N/A N/A values N/A sig_args value N/A N/A N/A extra_kw N/A name value N/A args N/A list args N/A sig_args N/A list sig_args N/A args N/A N/A N/A sig_args N/A N/A sig_args N/A 0 values N/A N/A N/A N/A sig_args pop 0 N/A sig_args N/A N/A name N/A N/A sig_args pop 0 N/A N/A values N/A name N/A N/A args pop 0 N/A N/A var_args N/A N/A N/A values N/A var_args N/A tuple args N/A N/A N/A N/A TypeError N/A Extra position arguments: %s N/A N/A ,  join N/A N/A repr v N/A v args N/A N/A name value_expr N/A N/A defaults iteritems N/A N/A N/A name values N/A N/A N/A values N/A name N/A N/A N/A self _template _eval value_expr N/A self _ns N/A self _pos N/A name sig_args N/A N/A N/A name values N/A N/A N/A TypeError N/A Missing argument: %s name N/A var_kw N/A N/A N/A values N/A var_kw extra_kw N/A values N/A N/A TemplateObject N/A object N/A __init__ N/A N/A self name N/A N/A N/A N/A self __name name N/A N/A self get N/A TemplateObjectGetter self N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %s> N/A N/A N/A self __class__ __name__ N/A self __name N/A N/A TemplateObjectGetter N/A object N/A __init__ N/A N/A self template_obj N/A N/A N/A N/A self __template_obj template_obj N/A __getattr__ N/A N/A self attr N/A N/A N/A N/A getattr N/A self __template_obj attr Empty N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s around %r> N/A N/A N/A self __class__ __name__ N/A self __template_obj N/A N/A _Empty N/A object N/A __call__ N/A N/A self N/A args kw N/A N/A self N/A __str__ N/A N/A self N/A N/A N/A N/A __repr__ N/A N/A self N/A N/A N/A Empty N/A __unicode__ N/A N/A self N/A N/A N/A N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A N/A __bool__ N/A N/A self N/A N/A N/A False N/A N/A N/A N/A sys version 3 N/A N/A __nonzero__ __bool__ N/A N/A Empty N/A _Empty N/A _Empty lex N/A N/A s name trim_whitespace line_offset delimeters N/A None True 0 None N/A N/A 
    Lex a string into chunks:

        >>> lex('hey')
        ['hey']
        >>> lex('hey {{you}}')
        ['hey ', ('you', (1, 7))]
        >>> lex('hey {{')
        Traceback (most recent call last):
            ...
        TemplateError: No }} to finish last expression at line 1 column 7
        >>> lex('hey }}')
        Traceback (most recent call last):
            ...
        TemplateError: }} outside expression at line 1 column 7
        >>> lex('hey {{ {{')
        Traceback (most recent call last):
            ...
        TemplateError: {{ inside expression at line 1 column 10

     N/A N/A delimeters None N/A N/A delimeters N/A N/A N/A Template default_namespace N/A start_braces N/A N/A Template default_namespace N/A end_braces N/A in_expr False N/A chunks N/A N/A last 0 N/A last_pos N/A 1 1 N/A token_re N/A N/A re compile N/A %s|%s N/A N/A N/A re escape N/A delimeters N/A 0 N/A N/A re escape N/A delimeters N/A 1 N/A match N/A N/A token_re finditer s N/A N/A expr N/A N/A match group 0 N/A pos N/A find_position s N/A N/A match end line_offset N/A N/A N/A expr N/A delimeters N/A 0 in_expr N/A N/A N/A TemplateError N/A %s inside expression N/A delimeters N/A 0 position pos name name N/A N/A N/A N/A expr N/A delimeters N/A 1 N/A in_expr N/A N/A N/A TemplateError N/A %s outside expression N/A delimeters N/A 1 position pos name name N/A N/A expr N/A delimeters N/A 0 N/A N/A part N/A s N/A last N/A N/A match start N/A part N/A N/A N/A N/A chunks append part N/A in_expr True N/A N/A N/A N/A chunks append N/A N/A s N/A last N/A N/A match start last_pos N/A in_expr False N/A last N/A N/A match end N/A last_pos pos N/A in_expr N/A N/A N/A TemplateError N/A No %s to finish last expression N/A delimeters N/A 1 name name position last_pos N/A part N/A s N/A last N/A part N/A N/A N/A N/A chunks append part N/A trim_whitespace N/A N/A chunks N/A trim_lex chunks N/A chunks N/A N/A statement_re N/A N/A re compile ^(?:if |elif |for |def |inherit |default |py:) N/A single_statements N/A else endif endfor enddef continue break N/A trail_whitespace_re N/A N/A re compile \n\r?[\t ]*$ N/A lead_whitespace_re N/A N/A re compile ^[\t ]*\n trim_lex N/A N/A tokens N/A N/A N/A 
    Takes a lexed set of tokens, and removes whitespace when there is
    a directive on a line by itself:

       >>> tokens = lex('{{if x}}\nx\n{{endif}}\ny', trim_whitespace=False)
       >>> tokens
       [('if x', (1, 3)), '\nx\n', ('endif', (3, 3)), '\ny']
       >>> trim_lex(tokens)
       [('if x', (1, 3)), 'x\n', ('endif', (3, 3)), 'y']
     N/A last_trim None N/A i N/A range N/A len tokens N/A N/A current N/A tokens N/A i N/A N/A isinstance N/A tokens N/A i basestring_ N/A N/A N/A item N/A current N/A 0 N/A N/A N/A N/A N/A statement_re search item N/A item single_statements N/A N/A N/A N/A i N/A N/A prev N/A N/A prev N/A tokens N/A N/A i 1 N/A N/A N/A i 1 N/A len tokens N/A N/A next_chunk N/A N/A next_chunk N/A tokens N/A N/A i 1 N/A N/A N/A N/A isinstance next_chunk basestring_ N/A N/A isinstance prev basestring_ N/A N/A N/A prev_ok N/A N/A prev N/A N/A trail_whitespace_re search prev N/A N/A N/A i 1 N/A N/A N/A prev strip N/A N/A prev_ok True N/A N/A N/A last_trim None N/A N/A last_trim 2 i N/A N/A N/A prev strip N/A N/A prev_ok last N/A N/A prev_ok N/A N/A next_chunk N/A N/A lead_whitespace_re search next_chunk N/A N/A i N/A N/A len tokens 2 N/A N/A N/A next_chunk strip N/A N/A prev N/A N/A N/A N/A N/A i 1 N/A N/A N/A prev strip N/A prev_ok last N/A N/A N/A tokens N/A N/A i 1 N/A N/A m N/A N/A trail_whitespace_re search prev N/A prev N/A prev N/A N/A N/A N/A m start 1 N/A N/A tokens N/A N/A i 1 prev N/A next_chunk N/A N/A last_trim i N/A N/A N/A i N/A N/A len tokens 2 N/A N/A N/A next_chunk strip N/A N/A N/A tokens N/A N/A i 1 N/A N/A m N/A N/A lead_whitespace_re search next_chunk N/A next_chunk N/A next_chunk N/A N/A N/A m end N/A N/A tokens N/A N/A i 1 next_chunk N/A tokens N/A find_position N/A N/A string index line_offset N/A N/A N/A Given a string and index, return (line, column) N/A leading N/A N/A N/A string N/A index splitlines N/A N/A N/A N/A len leading line_offset N/A N/A len N/A leading N/A -1 1 N/A parse N/A N/A s name line_offset delimeters N/A None 0 None N/A N/A 
    Parses a string into a kind of AST

        >>> parse('{{x}}')
        [('expr', (1, 3), 'x')]
        >>> parse('foo')
        ['foo']
        >>> parse('{{if x}}test{{endif}}')
        [('cond', (1, 3), ('if', (1, 3), 'x', ['test']))]
        >>> parse('series->{{for x in y}}x={{x}}{{endfor}}')
        ['series->', ('for', (1, 11), ('x',), 'y', ['x=', ('expr', (1, 27), 'x')])]
        >>> parse('{{for x, y in z:}}{{continue}}{{endfor}}')
        [('for', (1, 3), ('x', 'y'), 'z', [('continue', (1, 21))])]
        >>> parse('{{py:x=1}}')
        [('py', (1, 3), 'x=1')]
        >>> parse('{{if x}}a{{elif y}}b{{else}}c{{endif}}')
        [('cond', (1, 3), ('if', (1, 3), 'x', ['a']), ('elif', (1, 12), 'y', ['b']), ('else', (1, 23), None, ['c']))]

    Some exceptions::

        >>> parse('{{continue}}')
        Traceback (most recent call last):
            ...
        TemplateError: continue outside of for loop at line 1 column 3
        >>> parse('{{if x}}foo')
        Traceback (most recent call last):
            ...
        TemplateError: No {{endif}} at line 1 column 3
        >>> parse('{{else}}')
        Traceback (most recent call last):
            ...
        TemplateError: else outside of an if block at line 1 column 3
        >>> parse('{{if x}}{{for x in y}}{{endif}}{{endfor}}')
        Traceback (most recent call last):
            ...
        TemplateError: Unexpected endif at line 1 column 25
        >>> parse('{{if}}{{endif}}')
        Traceback (most recent call last):
            ...
        TemplateError: if with no expression at line 1 column 3
        >>> parse('{{for x y}}{{endfor}}')
        Traceback (most recent call last):
            ...
        TemplateError: Bad for (no "in") in 'x y' at line 1 column 3
        >>> parse('{{py:x=1\ny=2}}')
        Traceback (most recent call last):
            ...
        TemplateError: Multi-line py blocks must start with a newline at line 1 column 3
     N/A N/A delimeters None N/A N/A delimeters N/A N/A N/A Template default_namespace N/A start_braces N/A N/A Template default_namespace N/A end_braces N/A tokens N/A lex s name name line_offset line_offset delimeters delimeters N/A result N/A N/A tokens N/A N/A N/A next_chunk tokens N/A parse_expr tokens name N/A N/A N/A result append next_chunk N/A result N/A parse_expr N/A N/A tokens name context N/A N/A N/A N/A N/A isinstance N/A tokens N/A 0 basestring_ N/A N/A N/A N/A tokens N/A 0 N/A tokens N/A 1 N/A N/A expr pos N/A tokens N/A 0 N/A expr N/A N/A expr strip N/A N/A N/A expr startswith py: N/A N/A expr N/A N/A N/A expr N/A 3 lstrip N/A N/A N/A N/A expr startswith N/A N/A expr startswith N/A N/A expr N/A N/A expr lstrip N/A N/A expr N/A N/A expr N/A N/A expr replace N/A expr N/A N/A expr replace N/A expr N/A N/A N/A expr N/A N/A N/A TemplateError Multi-line py blocks must start with a newline position pos name name N/A N/A N/A py pos expr N/A tokens N/A 1 N/A N/A N/A expr N/A continue break N/A N/A N/A for context N/A N/A N/A TemplateError continue outside of for loop position pos name name N/A N/A N/A expr pos N/A tokens N/A 1 N/A N/A N/A N/A expr startswith if  N/A N/A N/A parse_cond tokens name context N/A N/A N/A N/A N/A expr startswith elif  N/A expr else N/A N/A N/A TemplateError N/A %s outside of an if block N/A N/A N/A expr split N/A 0 position pos name name N/A N/A N/A expr N/A if elif for N/A N/A N/A TemplateError N/A %s with no expression expr position pos name name N/A N/A N/A expr N/A endif endfor enddef N/A N/A N/A TemplateError N/A Unexpected %s expr position pos name name N/A N/A N/A N/A expr startswith for  N/A N/A N/A parse_for tokens name context N/A N/A N/A N/A expr startswith default  N/A N/A N/A parse_default tokens name context N/A N/A N/A N/A expr startswith inherit  N/A N/A N/A parse_inherit tokens name context N/A N/A N/A N/A expr startswith def  N/A N/A N/A parse_def tokens name context N/A N/A N/A N/A expr startswith # N/A N/A N/A N/A comment pos N/A N/A tokens N/A 0 N/A 0 N/A tokens N/A 1 N/A N/A N/A expr pos N/A N/A tokens N/A 0 N/A 0 N/A tokens N/A 1 N/A parse_cond N/A N/A tokens name context N/A N/A N/A start N/A N/A tokens N/A 0 N/A 1 N/A pieces N/A N/A context N/A context N/A if N/A 1 N/A N/A N/A tokens N/A N/A N/A TemplateError Missing {{endif}} position start name name N/A N/A N/A isinstance N/A tokens N/A 0 tuple N/A N/A N/A tokens N/A 0 N/A 0 endif N/A N/A N/A N/A N/A cond start N/A tuple pieces N/A tokens N/A 1 N/A N/A next_chunk tokens N/A parse_one_cond tokens name context N/A N/A N/A pieces append next_chunk N/A parse_one_cond N/A N/A tokens name context N/A N/A N/A N/A N/A first pos tokens N/A N/A tokens N/A 0 N/A tokens N/A 1 N/A content N/A N/A N/A N/A first endswith : N/A N/A first N/A first N/A -1 N/A N/A N/A first startswith if  N/A N/A part N/A if pos N/A N/A N/A first N/A 3 lstrip content N/A N/A N/A N/A first startswith elif  N/A N/A part N/A elif pos N/A N/A N/A first N/A 5 lstrip content N/A N/A N/A first else N/A N/A part N/A else pos None content N/A N/A 0 N/A Unexpected token %r at %s N/A first pos N/A 1 N/A N/A N/A tokens N/A N/A N/A TemplateError No {{endif}} position pos name name N/A N/A N/A isinstance N/A tokens N/A 0 tuple N/A N/A N/A N/A tokens N/A 0 N/A 0 endif N/A N/A N/A N/A tokens N/A 0 N/A 0 startswith elif  N/A N/A N/A tokens N/A 0 N/A 0 else N/A N/A N/A part tokens N/A N/A next_chunk tokens N/A parse_expr tokens name context N/A N/A N/A content append next_chunk N/A parse_for N/A N/A tokens name context N/A N/A N/A N/A first pos N/A tokens N/A 0 N/A tokens N/A tokens N/A 1 N/A context N/A N/A for context N/A content N/A N/A N/A N/A first startswith for  N/A N/A N/A first endswith : N/A N/A first N/A first N/A -1 N/A first N/A N/A N/A first N/A 3 strip N/A match N/A N/A in_re search first N/A N/A match N/A N/A N/A TemplateError N/A Bad for (no "in") in %r first position pos name name N/A vars N/A first N/A N/A N/A match start N/A N/A ( vars N/A N/A N/A TemplateError N/A You cannot have () in the variable section of a for loop (%r) vars position pos name name N/A vars N/A tuple N/A N/A N/A v strip N/A v N/A N/A N/A first N/A N/A N/A match start split , N/A N/A v strip N/A expr N/A first N/A N/A N/A match end N/A 1 N/A N/A N/A tokens N/A N/A N/A TemplateError No {{endfor}} position pos name name N/A N/A N/A isinstance N/A tokens N/A 0 tuple N/A N/A N/A tokens N/A 0 N/A 0 endfor N/A N/A N/A N/A for pos vars expr content N/A tokens N/A 1 N/A N/A next_chunk tokens N/A parse_expr tokens name context N/A N/A N/A content append next_chunk N/A parse_default N/A N/A tokens name context N/A N/A N/A N/A first pos N/A tokens N/A 0 N/A N/A N/A first startswith default  N/A first N/A N/A N/A first split None 1 N/A 1 N/A parts N/A N/A first split = 1 N/A N/A N/A len parts 1 N/A N/A N/A TemplateError N/A Expression must be {{default var=value}}; no = found in %r first position pos name name N/A var N/A N/A N/A parts N/A 0 strip N/A N/A , var N/A N/A N/A TemplateError {{default x, y = ...}} is not supported position pos name name N/A N/A N/A N/A var_re search var N/A N/A N/A TemplateError N/A Not a valid variable name for {{default}}: %r var position pos name name N/A expr N/A N/A N/A parts N/A 1 strip N/A N/A N/A default pos var expr N/A tokens N/A 1 N/A parse_inherit N/A N/A tokens name context N/A N/A N/A N/A first pos N/A tokens N/A 0 N/A N/A N/A first startswith inherit  N/A expr N/A N/A N/A first split None 1 N/A 1 N/A N/A N/A inherit pos expr N/A tokens N/A 1 N/A parse_def N/A N/A tokens name context N/A N/A N/A N/A first start N/A tokens N/A 0 N/A tokens N/A tokens N/A 1 N/A N/A N/A first startswith def  N/A first N/A N/A N/A first split None 1 N/A 1 N/A N/A N/A first endswith : N/A N/A first N/A first N/A -1 N/A N/A ( first N/A N/A func_name first N/A sig N/A N/A None None N/A N/A N/A N/A N/A N/A first endswith ) N/A N/A N/A TemplateError N/A Function definition doesn't end with ): %s first position start name name N/A N/A first N/A first N/A -1 N/A N/A func_name sig_text N/A N/A first split ( 1 N/A sig N/A parse_signature sig_text name start N/A context N/A context N/A def N/A content N/A N/A 1 N/A N/A N/A tokens N/A N/A N/A TemplateError Missing {{enddef}} position start name name N/A N/A N/A isinstance N/A tokens N/A 0 tuple N/A N/A N/A tokens N/A 0 N/A 0 enddef N/A N/A N/A N/A def start func_name sig content N/A tokens N/A 1 N/A N/A next_chunk tokens N/A parse_expr tokens name context N/A N/A N/A content append next_chunk N/A parse_signature N/A N/A sig_text name pos N/A N/A N/A tokens N/A N/A tokenize generate_tokens N/A N/A StringIO sig_text readline N/A sig_args N/A N/A var_arg None N/A var_kw None N/A defaults N/A get_token N/A N/A pos N/A False N/A N/A N/A N/A N/A tok_type tok_string N/A srow scol N/A erow ecol line N/A next tokens N/A N/A N/A StopIteration N/A N/A N/A N/A tokenize ENDMARKER N/A pos N/A N/A N/A tok_type tok_string N/A srow scol N/A erow ecol N/A N/A N/A tok_type tok_string N/A N/A 1 N/A N/A var_arg_type None N/A N/A tok_type tok_string N/A get_token N/A N/A tok_type N/A tokenize ENDMARKER N/A N/A N/A N/A N/A tok_type N/A tokenize OP N/A N/A tok_string * N/A tok_string ** N/A N/A var_arg_type tok_string N/A N/A tok_type tok_string N/A get_token N/A N/A tok_type N/A tokenize NAME N/A N/A N/A TemplateError N/A Invalid signature: (%s) sig_text position pos name name N/A var_name tok_string N/A N/A tok_type tok_string N/A get_token N/A N/A N/A tok_type N/A tokenize ENDMARKER N/A N/A tok_type N/A tokenize OP N/A tok_string , N/A N/A N/A var_arg_type * N/A N/A var_arg var_name N/A N/A N/A var_arg_type ** N/A N/A var_kw var_name N/A N/A N/A N/A sig_args append var_name N/A N/A tok_type N/A tokenize ENDMARKER N/A N/A N/A N/A N/A var_arg_type None N/A N/A N/A TemplateError N/A Invalid signature: (%s) sig_text position pos name name N/A N/A N/A tok_type N/A tokenize OP N/A tok_string = N/A N/A nest_type None N/A unnest_type None N/A nest_count 0 N/A start_pos end_pos None N/A parts N/A N/A 1 N/A N/A N/A tok_type tok_string s e N/A get_token True N/A N/A start_pos None N/A N/A start_pos s N/A end_pos e N/A N/A N/A tok_type N/A tokenize ENDMARKER nest_count N/A N/A N/A TemplateError N/A Invalid signature: (%s) sig_text position pos name name N/A N/A N/A nest_count N/A N/A tok_type N/A tokenize ENDMARKER N/A N/A tok_type N/A tokenize OP N/A tok_string , N/A N/A default_expr N/A isolate_expression sig_text start_pos end_pos N/A N/A defaults N/A var_name default_expr N/A N/A N/A sig_args append var_name N/A N/A N/A N/A parts append N/A tok_type tok_string N/A N/A nest_count N/A tok_type N/A tokenize OP N/A tok_string nest_type N/A N/A nest_count 1 N/A N/A N/A nest_count N/A tok_type N/A tokenize OP N/A tok_string unnest_type N/A N/A nest_count 1 N/A N/A nest_count N/A N/A nest_type unnest_type None N/A N/A N/A N/A nest_count N/A tok_type N/A tokenize OP N/A tok_string N/A ( [ { N/A N/A nest_type tok_string N/A nest_count 1 N/A unnest_type N/A N/A ( [ { ) ] } N/A nest_type N/A N/A sig_args var_arg var_kw defaults N/A isolate_expression N/A N/A string start_pos end_pos N/A N/A N/A N/A srow scol start_pos N/A srow 1 N/A N/A erow ecol end_pos N/A erow 1 N/A lines N/A N/A string splitlines True N/A N/A srow erow N/A N/A N/A N/A lines N/A srow N/A scol ecol N/A parts N/A N/A N/A lines N/A srow N/A scol N/A N/A N/A parts extend N/A lines N/A N/A srow 1 erow N/A N/A erow N/A len lines N/A N/A N/A N/A parts append N/A N/A lines N/A erow N/A ecol N/A N/A N/A join parts N/A N/A _fill_command_usage %prog [OPTIONS] TEMPLATE arg=value

Use py:arg=value to set a Python value; otherwise all values are
strings.
 fill_command N/A N/A args N/A None N/A N/A sys N/A optparse N/A pkg_resources N/A os N/A N/A args None N/A N/A args N/A N/A sys argv N/A 1 N/A dist N/A N/A pkg_resources get_distribution Paste N/A parser N/A N/A optparse OptionParser version N/A coerce_text dist usage _fill_command_usage N/A N/A N/A parser add_option -o --output dest output metavar FILENAME help File to write output to (default stdout) N/A N/A N/A parser add_option --html dest use_html action store_true help Use HTML style filling (including automatic HTML quoting) N/A N/A N/A parser add_option --env dest use_env action store_true help Put the environment in as top-level variables N/A N/A options args N/A N/A parser parse_args args N/A N/A N/A len args 1 N/A N/A You must give a template filename N/A N/A N/A sys exit 2 N/A template_name N/A args N/A 0 N/A args N/A args N/A 1 N/A vars N/A N/A N/A options use_env N/A N/A N/A N/A vars update N/A os environ N/A value args N/A N/A N/A = value N/A N/A N/A Bad argument: %r value N/A N/A N/A sys exit 2 N/A N/A name value N/A N/A value split = 1 N/A N/A N/A name startswith py: N/A N/A name N/A name N/A 3 N/A value N/A eval value N/A N/A vars N/A name value N/A N/A template_name - N/A N/A template_content N/A N/A N/A sys stdin read N/A template_name <stdin> N/A N/A f N/A open template_name rb N/A template_content N/A N/A f read N/A N/A N/A f close N/A N/A options use_html N/A N/A TemplateClass HTMLTemplate N/A N/A TemplateClass Template N/A template N/A TemplateClass template_content name template_name N/A result N/A N/A template substitute vars N/A N/A options output N/A N/A f N/A open N/A options output wb N/A N/A N/A f write result N/A N/A N/A f close N/A N/A N/A N/A N/A sys stdout write result N/A N/A N/A __name__ __main__ N/A N/A N/A fill_command