Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str keyword Call NameLoad keyword NameLoad keyword NameLoad keyword ListLoad Str Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str keyword Str keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str BinOpMult Str Num Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpOr CompareEq AttributeLoad NameLoad attr Str UnaryOpNot AttributeLoad NameLoad attr body Pass orelse If CompareEq AttributeLoad NameLoad attr Str body Print NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad TupleLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str If BoolOpAnd UnaryOpNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num Str orelse If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str If NameLoad body Assign SubscriptStore NameLoad Index Str BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad If UnaryOpNot Call NameLoad Str body Assign SubscriptStore NameLoad Index Str BinOpMod Str TupleLoad Call NameLoad Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Return Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad BoolOpAnd CompareIs NameLoad NameLoad BoolOpOr NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr UnaryOpNot NameLoad CompareIs NameLoad NameLoad body Assign NameStore IfExp NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str If NameLoad body Assign NameStore IfExp UnaryOpNot NameLoad NameLoad BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Index Num If BoolOpAnd CompareGtE NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad TupleLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str NameLoad Str For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body If CompareEq NameLoad Str body Return TupleLoad NameLoad NameLoad orelse If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num AugAssignAdd NameStore Str orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad Str AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Str Return TupleLoad Call NameLoad Num BinOpMod NameLoad NameLoad keyword NameLoad NameLoad orelse If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Index Num If BoolOpAnd CompareGt NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad TupleLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str NameLoad Str For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body If CompareEq NameLoad Str body Break orelse If CompareIn Str NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return Call NameLoad Num BinOpMod Str NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body Expr Str Global identifier Global identifier If CompareIs NameLoad NameLoad body Global identifier Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Str orelse If CompareIsNot NameLoad NameLoad body Assign NameStore Str orelse If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad Str NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Return Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Str Str Assign NameStore Call NameLoad keyword NameLoad TryExcept body Exec BinOpAdd NameLoad Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpMod Str NameLoad Call AttributeLoad NameLoad attr Raise NameLoad Assign NameStore Call NameLoad NameLoad For NameStore TupleLoad Str Str Str body If CompareIn NameLoad NameLoad body For NameStore SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad NameLoad For NameStore TupleLoad Str Str Str Str Str Str Str Str Str body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str For NameStore AttributeLoad NameLoad attr body If Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body For NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body If CompareIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If Call NameLoad Call NameLoad Str NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If UnaryOpNot CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpMod Str NameLoad If UnaryOpNot CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpMod Str NameLoad If CompareLt Call AttributeLoad NameLoad attr Str Num body Assign NameStore BinOpMod Str SubscriptLoad NameLoad Slice Num If CompareLt Call AttributeLoad NameLoad attr Str Num body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareLt NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad NameLoad Slice Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad NameLoad Slice Num Return TupleLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad BoolOpOr NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad orelse If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call NameLoad If AttributeLoad NameLoad attr body If Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad If CompareNotEq NameLoad Str body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn Str NameLoad body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call NameLoad AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call NameLoad If Call NameLoad Call NameLoad Str NameLoad body Assign NameStore Call NameLoad Str NameLoad Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd Call NameLoad Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Assign NameStore Call NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore NameLoad If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse Assign NameStore NameLoad If BoolOpAnd NameLoad CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore NameLoad If BoolOpAnd CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd NameLoad AttributeLoad NameLoad attr body If NameLoad body Expr Call NameLoad NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str BoolOpOr BoolOpAnd NameLoad BinOpAdd Str NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Raise Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num keyword Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num If CompareGt Call NameLoad NameLoad Num body If NameLoad body Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Str NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str BoolOpOr BoolOpAnd NameLoad BinOpAdd Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Num BinOpMod AttributeLoad NameLoad attr Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr GeneratorExp TupleLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num If CompareEq Call AttributeLoad NameLoad attr Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str If UnaryOpNot NameLoad body Raise Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Num If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad orelse Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Str If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str orelse Assign AttributeStore NameLoad attr Call NameLoad ListLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Expr Call NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body Return NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Num If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign SubscriptStore NameLoad Index Num BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr SubscriptLoad NameLoad Index Num orelse Assign SubscriptStore NameLoad Index Num BinOpMod Str SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad Str attr BinOpAdd ListLoad Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad Expr Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareLt NameLoad Num body Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body If NameLoad body Return Call NameLoad NameLoad NameLoad keyword NameLoad Return Call NameLoad NameLoad If NameLoad body Assign TupleStore AttributeStore AttributeLoad NameLoad attr attr AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Assert CompareGtE Call NameLoad NameLoad Num Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Return Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr NameLoad If CompareEq SubscriptLoad NameLoad Index Num Str body AugAssignAdd NameStore Str orelse Assign NameStore NameLoad If NameLoad body AugAssignAdd NameStore BinOpAdd Str NameLoad Return NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If NameLoad body Return NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Str body AugAssignAdd NameStore BinOpMod Str SubscriptLoad NameLoad Index Str If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If NameLoad body Return AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareGt NameLoad Num AttributeLoad NameLoad attr body Assign NameStore Call NameLoad TupleLoad BinOpMod Str TupleLoad NameLoad NameLoad BinOpMod Str NameLoad BinOpMod Str NameLoad Str For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If CompareEq NameLoad Str body Break orelse If CompareIn Str NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd BinOpAdd NameLoad Str BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str BinOpAdd Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str BoolOpOr BoolOpAnd AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign AttributeStore NameLoad attr Call NameLoad BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Str Str If CompareIn Str AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr IfExp CompareEq AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore Call NameLoad NameLoad If CompareGt NameLoad Call NameLoad AttributeLoad NameLoad attr body Return For NameStore Call NameLoad NameLoad body If CompareNotEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Return Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse If CompareIn TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr orelse If CompareIn TupleLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr orelse If BoolOpAnd AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Num BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Str keyword BinOpMod Str AttributeLoad NameLoad attr If BoolOpAnd CompareNotIn AttributeLoad NameLoad attr NameLoad BoolOpOr CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Num BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Str keyword BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareNotIn AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareIn AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot NameLoad BoolOpAnd AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Str orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Num BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr Str body Return TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore NameLoad orelse If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore BoolOpOr NameLoad CompareIn NameLoad TupleLoad Str Str Str UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Raise Call NameLoad Num BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot NameLoad BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad Str Expr Call AttributeLoad NameLoad attr BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Num BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Num BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad body Raise Call NameLoad Num BinOpMod AttributeLoad AttributeLoad NameLoad attr attr Str keyword BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr GeneratorExp TupleLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad IfExp AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd Str Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Str IfExp AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num body Return Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str Str Return Call AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIn NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str 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 AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BoolOpAnd NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr BoolOpAnd NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore BoolOpAnd NameLoad AttributeLoad NameLoad attr If BoolOpAnd NameLoad AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse 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 Expr Str If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore BoolOpOr BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore ListLoad AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot NameLoad CompareIn AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot NameLoad CompareIn AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If BoolOpOr CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If BoolOpOr CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If CompareIn AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If BoolOpAnd CompareNotEq AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Return NameLoad Return BoolOpOr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Return AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr Str CompareIn Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr UnaryOpNot NameLoad CompareNotIn NameLoad NameLoad body Return NameLoad Return Call NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list
N/A N/A 
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)

gluon.rewrite parses incoming URLs and formats outgoing URLs for gluon.html.URL.

In addition, it rewrites both incoming and outgoing URLs based on the (optional) user-supplied routes.py,
which also allows for rewriting of certain error messages.

routes.py supports two styles of URL rewriting, depending on whether 'routers' is defined.
Refer to router.example.py and routes.example.py for additional documentation.

 N/A os N/A re N/A logging N/A traceback N/A threading N/A urllib gluon.storage Storage List gluon.http HTTP gluon.fileutils abspath read_file gluon.settings global_settings N/A isdir N/A N/A os path isdir N/A isfile N/A N/A os path isfile N/A exists N/A N/A os path exists N/A pjoin N/A N/A os path join N/A logger N/A N/A logging getLogger web2py.rewrite N/A THREAD_LOCAL N/A N/A threading local N/A regex_at N/A N/A re compile (?<!\\)\$[a-zA-Z]\w* N/A regex_anything N/A N/A re compile (?<!\\)\$anything N/A regex_redirect N/A N/A re compile (\d+)->(.*) N/A regex_full_url N/A N/A re compile ^(?P<scheme>http|https|HTTP|HTTPS)\://(?P<host>[^/]*)(?P<uri>.*) N/A regex_version N/A N/A re compile ^(_[\d]+\.[\d]+\.[\d]+)$ N/A regex_url N/A N/A re compile ^/((?P<a>\w+)(/(?P<c>\w+)(/(?P<z>(?P<f>\w+)(\.(?P<e>[\w.]+))?(?P<s>.*)))?)?)?$ N/A regex_args N/A N/A re compile [^\w/.@=-] _router_default N/A N/A N/A N/A N/A return new copy of default base router N/A router N/A Storage default_application init applications ALL default_controller default controllers DEFAULT default_function index functions N/A dict default_language None languages None root_static N/A favicon.ico robots.txt map_static None domains None exclusive_domain False map_hyphen False acfe_match \w+$ file_match ([-+=@$%\w]|(?<=[-+=@$%\w])[./])*$ args_match ([\w@ -]|(?<=[\w@ -])[.=])*$ N/A router N/A _params_default N/A N/A app N/A None N/A N/A return new copy of default parameters N/A p N/A Storage N/A N/A p name N/A app BASE N/A N/A p default_application N/A app init N/A N/A p default_controller default N/A N/A p default_function index N/A N/A p routes_app N/A N/A N/A p routes_in N/A N/A N/A p routes_out N/A N/A N/A p routes_onerror N/A N/A N/A p routes_apps_raw N/A N/A N/A p error_handler None N/A N/A p error_message <html><body><h1>%s</h1></body></html> N/A N/A p error_message_ticket N/A N/A <html><body><h1>Internal error</h1>Ticket issued: <a href="/admin/default/ticket/%(ticket)s" target="_blank">%(ticket)s</a></body><!-- this is junk text else IE does not display the page:  N/A x 512  //--></html> N/A N/A p routers None N/A N/A p logging off N/A p N/A N/A params_apps N/A dict N/A params N/A _params_default app None N/A N/A THREAD_LOCAL routes params N/A routers None log_rewrite N/A N/A string N/A N/A N/A Log rewrite activity under control of routes.py N/A N/A N/A params logging debug N/A N/A N/A N/A logger debug string N/A N/A N/A N/A N/A params logging off N/A N/A params logging N/A N/A N/A N/A N/A N/A params logging print N/A N/A string N/A N/A N/A N/A params logging info N/A N/A N/A N/A logger info string N/A N/A N/A N/A params logging warning N/A N/A N/A N/A logger warning string N/A N/A N/A N/A params logging error N/A N/A N/A N/A logger error string N/A N/A N/A N/A params logging critical N/A N/A N/A N/A logger critical string N/A N/A N/A N/A logger debug string N/A N/A ROUTER_KEYS N/A set N/A default_application applications default_controller controllers default_function functions default_language languages domain domains root_static path_prefix exclusive_domain map_hyphen map_static acfe_match file_match args_match N/A ROUTER_BASE_KEYS N/A set N/A applications default_application domains path_prefix fixup_missing_path_info N/A N/A environ N/A N/A N/A eget N/A environ get N/A path_info N/A eget PATH_INFO N/A request_uri N/A eget REQUEST_URI N/A N/A N/A path_info request_uri N/A N/A items N/A N/A request_uri split ? N/A path_info N/A environ N/A PATH_INFO N/A items N/A 0 N/A N/A environ N/A QUERY_STRING N/A N/A N/A len items 1 N/A items N/A 1 N/A N/A N/A request_uri N/A N/A query_string N/A eget QUERY_STRING N/A query_string N/A N/A N/A environ N/A REQUEST_URI N/A %s?%s N/A path_info query_string N/A N/A N/A environ N/A REQUEST_URI path_info N/A N/A N/A eget HTTP_HOST N/A N/A N/A environ N/A HTTP_HOST N/A %s:%s N/A N/A eget SERVER_NAME N/A eget SERVER_PORT N/A url_in N/A N/A request environ N/A N/A N/A parse and rewrite incoming URL N/A routers N/A N/A N/A map_url_in request environ N/A N/A regex_url_in request environ N/A url_out N/A N/A request environ application controller function args other scheme host port N/A N/A N/A assemble and rewrite outgoing URL N/A routers N/A N/A acf N/A map_url_out request environ application controller function args other scheme host port N/A url N/A %s%s N/A acf other N/A N/A url N/A /%s/%s/%s%s N/A application controller function other N/A url N/A regex_filter_out url environ N/A N/A N/A host True N/A N/A host None N/A scheme N/A port None N/A N/A host N/A N/A request env http_host N/A N/A N/A scheme N/A scheme True N/A N/A scheme N/A request N/A N/A N/A N/A N/A request env get wsgi_url_scheme http lower http N/A host N/A N/A host_port N/A N/A port host N/A N/A N/A N/A host split : 1 N/A 0 N/A :%s port N/A url N/A %s://%s%s N/A scheme host_port url N/A url N/A try_rewrite_on_error N/A N/A http_response request environ ticket N/A None N/A N/A 
    called from main.wsgibase to rewrite the http response.
     N/A status N/A int N/A N/A N/A N/A str N/A http_response status split N/A 0 N/A N/A N/A status 399 N/A N/A THREAD_LOCAL routes routes_onerror N/A N/A keys N/A set N/A N/A %s/%s N/A N/A request application status N/A %s/* N/A request application N/A */%s status */* N/A N/A key uri N/A N/A THREAD_LOCAL routes routes_onerror N/A N/A N/A key keys N/A N/A N/A uri ! N/A N/A N/A http_response environ N/A N/A N/A ? uri N/A N/A N/A path_info query_string N/A N/A uri split ? 1 N/A query_string & N/A N/A N/A path_info query_string N/A uri N/A query_string N/A code=%s&ticket=%s&requested_uri=%s&request_url=%s N/A status ticket N/A N/A urllib quote_plus N/A N/A request env request_uri N/A request url N/A N/A N/A N/A uri startswith http:// N/A N/A uri startswith https:// N/A N/A url N/A N/A path_info ? query_string N/A message You are being redirected <a href="%s">here</a> N/A N/A N/A HTTP 303 N/A message url Location url environ N/A N/A N/A N/A N/A environ get __ROUTES_ONERROR__ False N/A N/A N/A environ N/A __ROUTES_ONERROR__ True N/A path_info N/A / N/A N/A path_info lstrip / N/A N/A environ N/A PATH_INFO path_info N/A N/A environ N/A QUERY_STRING query_string N/A N/A environ N/A WEB2PY_STATUS_CODE status N/A N/A None environ N/A N/A http_response environ N/A try_redirect_on_error N/A N/A http_object request ticket N/A None N/A N/A called from main.wsgibase to rewrite the http response N/A status N/A int N/A N/A N/A N/A str N/A http_object status split N/A 0 N/A N/A N/A status 399 N/A N/A THREAD_LOCAL routes routes_onerror N/A N/A keys N/A set N/A N/A %s/%s N/A N/A request application status N/A %s/* N/A request application N/A */%s status */* N/A N/A key redir N/A N/A THREAD_LOCAL routes routes_onerror N/A N/A N/A key keys N/A N/A N/A redir ! N/A N/A N/A N/A N/A ? redir N/A N/A url N/A %s&code=%s&ticket=%s&requested_uri=%s&request_url=%s N/A redir status ticket N/A N/A urllib quote_plus N/A N/A request env request_uri N/A request url N/A N/A url N/A %s?code=%s&ticket=%s&requested_uri=%s&request_url=%s N/A redir status ticket N/A N/A urllib quote_plus N/A N/A request env request_uri N/A request url N/A N/A HTTP 303 N/A You are being redirected <a href="%s">here</a> url Location url N/A http_object N/A load N/A N/A routes app data rdict N/A routes.py None None None N/A N/A 
    load: read (if file) and parse routes
    store results in params
    (called from main.py at web2py initialization time)
    If data is present, it's used instead of the routes.py contents.
    If rdict is present, it must be a dict to be used for routers (unit test)
     N/A params N/A routers N/A N/A app None N/A N/A params_apps N/A params_apps N/A dict N/A params N/A _params_default app None N/A N/A THREAD_LOCAL routes params N/A routers None N/A N/A isinstance rdict dict N/A N/A symbols N/A dict routers rdict N/A path rdict N/A N/A N/A data None N/A N/A path routes N/A N/A N/A app None N/A N/A path N/A abspath routes N/A N/A path N/A abspath applications app routes N/A N/A N/A exists path N/A N/A N/A data N/A N/A N/A read_file path replace N/A symbols N/A dict app app N/A N/A N/A N/A data symbols N/A N/A N/A SyntaxError N/A e N/A N/A N/A N/A logger error N/A N/A %s has a syntax error and will not be loaded
 path N/A N/A traceback format_exc N/A e N/A p N/A _params_default app N/A sym N/A routes_app routes_in routes_out N/A N/A N/A sym symbols N/A N/A items N/A symbols N/A sym N/A N/A N/A N/A N/A p N/A sym append N/A compile_regex items N/A sym N/A routes_onerror routes_apps_raw error_handler error_message error_message_ticket default_application default_controller default_function logging N/A N/A N/A sym symbols N/A N/A N/A p N/A sym N/A symbols N/A sym N/A N/A routers symbols N/A N/A N/A p routers N/A Storage N/A symbols N/A routers N/A key N/A p routers N/A N/A N/A isinstance N/A N/A p routers N/A key dict N/A N/A N/A N/A p routers N/A key N/A Storage N/A N/A p routers N/A key N/A N/A app None N/A N/A params p N/A N/A THREAD_LOCAL routes params N/A routers N/A params routers N/A N/A isinstance routers dict N/A N/A routers N/A Storage routers N/A N/A routers None N/A N/A router N/A _router_default N/A N/A routers BASE N/A N/A N/A N/A router update N/A routers BASE N/A N/A routers BASE router N/A all_apps N/A N/A apppath N/A abspath applications N/A appname N/A N/A os listdir apppath N/A N/A N/A N/A N/A N/A appname startswith . N/A isdir N/A abspath apppath appname N/A isdir N/A abspath apppath appname controllers N/A N/A N/A N/A all_apps append appname N/A routers N/A N/A router N/A Storage N/A routers BASE N/A N/A appname routers N/A N/A key N/A N/A N/A routers N/A appname keys N/A N/A N/A key ROUTER_BASE_KEYS N/A N/A N/A SyntaxError N/A BASE-only key '%s' in router '%s' N/A key appname N/A N/A N/A router update N/A routers N/A appname N/A N/A routers N/A appname router N/A N/A exists N/A abspath applications appname routes N/A N/A N/A load routes appname N/A routers N/A N/A N/A load_routers all_apps N/A N/A N/A params_apps N/A app p N/A N/A routers N/A p routers N/A N/A N/A app N/A p routers N/A N/A N/A N/A N/A routers N/A app update N/A N/A p routers N/A app N/A N/A log_rewrite N/A URL rewrite is on. configuration in %s path N/A compile_regex N/A N/A k v env N/A None N/A N/A 
    Preprocess and compile the regular expressions in routes_app/in/out
    The resulting regex will match a pattern of the form:

        [remote address]:[protocol]://[host]:[method] [path]

    We allow abbreviated regexes on input; here we try to complete them.
     N/A k0 k N/A N/A N/A N/A k N/A 0 ^ N/A N/A k N/A ^%s k N/A N/A N/A N/A k N/A -1 $ N/A N/A k N/A %s$ k N/A N/A N/A N/A k find : 0 N/A N/A k N/A ^.*?:https?://[^:/]+:[a-z]+ %s N/A k N/A 1 N/A N/A N/A N/A k find :// 0 N/A N/A i N/A N/A k find :/ N/A N/A i 0 N/A N/A N/A SyntaxError N/A routes pattern syntax error: path needs leading '/' [%s] k0 N/A k N/A %s:https?://[^:/]+:[a-z]+ %s N/A N/A k N/A i N/A k N/A N/A i 1 N/A item N/A N/A regex_anything findall k N/A N/A k N/A N/A k replace item (?P<anything>.*) N/A item N/A N/A regex_at findall k N/A N/A k N/A N/A k replace item N/A (?P<%s>\w+) N/A item N/A 1 N/A item N/A N/A regex_at findall v N/A N/A v N/A N/A v replace item N/A \g<%s> N/A item N/A 1 N/A N/A N/A N/A re compile k N/A re DOTALL v N/A env N/A N/A load_routers N/A N/A all_apps N/A N/A N/A load-time post-processing of routers N/A app routers N/A N/A N/A app all_apps N/A N/A N/A N/A all_apps append app N/A router N/A Storage N/A routers BASE N/A N/A app BASE N/A N/A keys N/A N/A N/A set N/A routers N/A app intersection ROUTER_BASE_KEYS N/A keys N/A N/A N/A SyntaxError N/A BASE-only key(s) %s in router '%s' N/A N/A tuple keys app N/A N/A N/A router update N/A routers N/A app N/A N/A routers N/A app router N/A router N/A routers N/A app N/A keys N/A N/A N/A set router difference ROUTER_KEYS N/A keys N/A N/A N/A SyntaxError N/A unknown key(s) %s in router '%s' N/A N/A tuple keys app N/A N/A N/A router controllers N/A N/A N/A router controllers N/A set N/A N/A N/A N/A isinstance N/A router controllers str N/A N/A N/A router controllers N/A set N/A router controllers N/A N/A router languages N/A N/A N/A router languages N/A set N/A router languages N/A N/A N/A router languages N/A set N/A N/A router functions N/A N/A N/A isinstance N/A router functions N/A set tuple list N/A N/A functions N/A set N/A router functions N/A N/A isinstance N/A router default_function str N/A N/A N/A N/A functions add N/A router default_function N/A N/A router functions N/A N/A router default_controller functions N/A controller N/A router functions N/A N/A N/A N/A router functions N/A controller N/A set N/A N/A router functions N/A controller N/A N/A N/A router functions N/A dict N/A N/A app BASE N/A N/A base_only ROUTER_BASE_KEYS N/A N/A N/A N/A router pop base_only None N/A N/A domain router N/A N/A N/A N/A N/A routers BASE domains N/A N/A router domain app N/A N/A N/A isinstance N/A router controllers str N/A N/A router controllers DEFAULT N/A N/A N/A router controllers N/A set N/A N/A isdir N/A abspath applications app N/A N/A cpath N/A abspath applications app controllers N/A cname N/A N/A os listdir cpath N/A N/A N/A N/A isfile N/A abspath cpath cname N/A N/A cname endswith .py N/A N/A N/A N/A N/A router controllers add N/A cname N/A -3 N/A N/A router controllers N/A N/A N/A N/A N/A router controllers add static N/A N/A N/A N/A router controllers add N/A router default_controller N/A N/A N/A isinstance N/A N/A routers BASE applications str N/A N/A N/A routers BASE applications ALL N/A N/A N/A N/A routers BASE applications N/A list all_apps N/A N/A N/A routers BASE applications N/A N/A N/A N/A routers BASE applications N/A set N/A N/A routers BASE applications N/A N/A N/A N/A routers BASE applications N/A set N/A app N/A N/A routers keys N/A N/A router N/A routers N/A app N/A N/A router name app N/A N/A router _acfe_match N/A N/A re compile N/A router acfe_match N/A N/A router _file_match N/A N/A re compile N/A router file_match N/A N/A router args_match N/A N/A N/A router _args_match N/A N/A re compile N/A router args_match N/A N/A router path_prefix N/A N/A N/A isinstance N/A router path_prefix str N/A N/A N/A router path_prefix N/A N/A N/A N/A N/A router path_prefix strip / split / N/A domains N/A dict N/A N/A N/A routers BASE domains N/A N/A N/A d a N/A N/A N/A N/A routers BASE domains iteritems N/A N/A N/A domain app N/A N/A N/A d strip : N/A N/A a strip / N/A N/A : domain N/A N/A N/A domain port N/A N/A domain split : N/A N/A port None N/A N/A / app N/A N/A N/A app ctlr N/A N/A app split / 1 N/A N/A ctlr None N/A N/A ctlr N/A / ctlr N/A N/A N/A ctlr fcn N/A N/A ctlr split / N/A N/A fcn None N/A N/A N/A app all_apps N/A app routers N/A N/A N/A SyntaxError N/A unknown app '%s' in domains app N/A N/A domains N/A N/A domain port N/A app ctlr fcn N/A N/A N/A routers BASE domains domains N/A regex_uri N/A N/A e regexes tag default N/A None N/A N/A filter incoming URI against a list of regexes N/A path N/A e N/A PATH_INFO N/A host N/A N/A N/A N/A e get HTTP_HOST N/A N/A e get SERVER_NAME localhost lower N/A i N/A N/A host find : N/A N/A i 0 N/A N/A host N/A host N/A i N/A key N/A %s:%s://%s:%s %s N/A N/A N/A e get REMOTE_ADDR localhost N/A N/A N/A N/A e get wsgi.url_scheme http lower host N/A N/A N/A N/A e get REQUEST_METHOD get lower path N/A N/A regex value custom_env regexes N/A N/A N/A N/A regex match key N/A N/A N/A N/A e update custom_env N/A rewritten N/A N/A regex sub value key N/A N/A log_rewrite N/A %s: [%s] [%s] -> %s N/A tag key value rewritten N/A rewritten N/A N/A log_rewrite N/A %s: [%s] -> %s (not rewritten) N/A tag key default N/A default N/A regex_select N/A N/A env app request N/A None None None N/A N/A 
    select a set of regex rewrite params for the current request
     N/A app N/A N/A N/A THREAD_LOCAL routes N/A N/A params_apps get app params N/A N/A N/A env N/A params routes_app N/A N/A routers N/A N/A N/A map_url_in request env app True N/A N/A app N/A regex_uri env N/A params routes_app routes_app N/A N/A THREAD_LOCAL routes N/A N/A params_apps get app params N/A N/A N/A THREAD_LOCAL routes params N/A N/A log_rewrite N/A select routing parameters: %s N/A N/A THREAD_LOCAL routes name N/A app N/A regex_filter_in N/A N/A e N/A N/A N/A regex rewrite incoming URL N/A routes N/A THREAD_LOCAL routes N/A query N/A N/A e get QUERY_STRING None N/A N/A e N/A WEB2PY_ORIGINAL_URI N/A N/A e N/A PATH_INFO N/A N/A query N/A ? query N/A N/A routes routes_in N/A N/A path N/A regex_uri e N/A routes routes_in routes_in N/A e N/A PATH_INFO N/A rmatch N/A N/A regex_redirect match path N/A rmatch N/A N/A N/A HTTP N/A int N/A N/A rmatch group 1 location N/A N/A rmatch group 2 N/A items N/A N/A path split ? 1 N/A N/A e N/A PATH_INFO N/A items N/A 0 N/A N/A N/A len items 1 N/A N/A query N/A N/A query N/A N/A N/A items N/A 1 & query N/A N/A query N/A items N/A 1 N/A N/A e N/A QUERY_STRING query N/A N/A e N/A REQUEST_URI N/A N/A e N/A PATH_INFO N/A N/A query N/A ? query N/A e N/A sluggify N/A N/A key N/A N/A N/A N/A N/A N/A N/A key lower replace . _ N/A invalid_url N/A N/A routes N/A N/A N/A N/A HTTP 400 N/A N/A routes error_message invalid request web2py_error invalid path N/A regex_url_in N/A N/A request environ N/A N/A N/A rewrite and parse incoming URL N/A N/A regex_select env environ request request N/A routes N/A THREAD_LOCAL routes N/A N/A routes routes_in N/A N/A environ N/A regex_filter_in environ N/A N/A N/A N/A request env update N/A N/A N/A N/A N/A N/A k lower replace . _ v N/A N/A k v N/A N/A environ iteritems N/A path N/A N/A N/A urllib unquote N/A N/A request env path_info / N/A path N/A N/A path replace \ / N/A N/A N/A N/A path endswith / N/A N/A len path 1 N/A N/A path N/A path N/A -1 N/A match N/A N/A regex_url match path N/A N/A match N/A N/A N/A invalid_url routes N/A N/A request raw_args N/A N/A N/A match group s N/A N/A N/A N/A request raw_args startswith / N/A N/A N/A request raw_args N/A N/A request raw_args N/A 1 N/A N/A N/A N/A match group c static N/A N/A application N/A N/A match group a N/A N/A version filename N/A None N/A N/A N/A N/A match group z replace _ N/A N/A filename N/A N/A N/A HTTP 404 N/A items N/A N/A filename split / 1 N/A N/A N/A regex_version match N/A items N/A 0 N/A N/A N/A version filename items N/A static_folder N/A pjoin N/A N/A request env applications_parent applications application static N/A static_file N/A N/A N/A os path abspath N/A pjoin static_folder filename N/A N/A N/A N/A static_file startswith static_folder N/A N/A N/A invalid_url routes N/A N/A static_file version environ N/A N/A N/A request application N/A N/A N/A match group a N/A routes default_application N/A N/A request controller N/A N/A N/A match group c N/A routes default_controller N/A N/A request function N/A N/A N/A match group f N/A routes default_function N/A N/A request raw_extension N/A N/A match group e N/A N/A request extension N/A N/A request raw_extension html N/A N/A N/A request application N/A routes routes_apps_raw N/A N/A N/A request args None N/A N/A N/A request raw_args N/A N/A args N/A N/A regex_args sub _ N/A request raw_args N/A N/A request args N/A List N/A N/A args split / N/A N/A N/A request args N/A List N/A N/A N/A None None environ N/A regex_filter_out N/A N/A url e N/A None N/A N/A regex rewrite outgoing URL N/A N/A N/A hasattr THREAD_LOCAL routes N/A N/A N/A regex_select N/A routes N/A THREAD_LOCAL routes N/A routers N/A N/A url N/A N/A routes routes_out N/A N/A items N/A N/A url split ? 1 N/A e N/A N/A host N/A N/A N/A N/A e get http_host localhost lower N/A i N/A N/A host find : N/A N/A i 0 N/A N/A host N/A host N/A i N/A N/A items N/A 0 N/A %s:%s://%s:%s %s N/A N/A N/A e get remote_addr N/A N/A N/A N/A e get wsgi_url_scheme http lower host N/A N/A N/A N/A e get request_method get lower N/A items N/A 0 N/A N/A N/A items N/A 0 N/A :http://localhost:get %s N/A items N/A 0 N/A N/A regex value tmp N/A routes routes_out N/A N/A N/A N/A regex match N/A items N/A 0 N/A N/A rewritten N/A N/A ? join N/A N/A N/A N/A regex sub value N/A items N/A 0 N/A items N/A 1 N/A N/A log_rewrite N/A routes_out: [%s] -> %s N/A url rewritten N/A rewritten N/A N/A log_rewrite N/A routes_out: [%s] not rewritten url N/A url N/A filter_url N/A N/A url method remote out app lang domain env scheme host port N/A get 0.0.0.0 False False None N/A None None False None None None N/A N/A 
    doctest/unittest interface to regex_filter_in() and regex_filter_out()
     N/A match N/A N/A regex_full_url match url N/A urlscheme N/A N/A N/A N/A match group scheme lower N/A urlhost N/A N/A N/A N/A match group host lower N/A uri N/A N/A match group uri N/A k N/A N/A uri find ? N/A N/A k 0 N/A N/A k N/A len uri N/A N/A isinstance domain str N/A N/A domain N/A domain None N/A N/A path_info query_string N/A N/A uri N/A k N/A uri N/A N/A k 1 N/A path_info N/A N/A urllib unquote path_info N/A e N/A REMOTE_ADDR REQUEST_METHOD wsgi.url_scheme HTTP_HOST REQUEST_URI PATH_INFO QUERY_STRING remote_addr request_method wsgi_url_scheme http_host remote method urlscheme urlhost uri path_info query_string remote method urlscheme urlhost N/A request N/A Storage N/A N/A e N/A applications_parent N/A global_settings applications_parent N/A N/A request env N/A Storage e N/A N/A request uri_language lang N/A app N/A N/A routers N/A N/A N/A map_url_in request e app True N/A N/A regex_select e N/A out N/A N/A N/A N/A N/A request env domain_application N/A N/A request env domain_controller domain N/A items N/A N/A N/A N/A path_info lstrip / split / N/A N/A N/A items N/A -1 N/A N/A N/A N/A items pop N/A N/A N/A len items 3 at least /a/c/f is required N/A a N/A N/A items pop 0 N/A c N/A N/A items pop 0 N/A f N/A N/A items pop 0 N/A N/A routers N/A N/A N/A regex_filter_out uri e N/A acf N/A map_url_out request None a c f items None scheme host port N/A items N/A N/A url N/A %s/%s N/A acf N/A N/A / join items N/A N/A N/A items N/A -1 N/A N/A url / N/A N/A url acf N/A query_string N/A N/A url N/A ? query_string N/A url N/A N/A static version e N/A url_in request e N/A static N/A N/A static N/A result N/A /%s/%s/%s N/A N/A request application N/A request controller N/A request function N/A N/A N/A request extension N/A N/A request extension html N/A N/A result N/A .%s N/A request extension N/A N/A request args N/A N/A result N/A  %s N/A request args N/A N/A e N/A QUERY_STRING N/A N/A result N/A  ?%s N/A e N/A QUERY_STRING N/A N/A request uri_language N/A N/A result N/A  (%s) N/A request uri_language N/A env N/A N/A N/A request env N/A result N/A filter_err N/A N/A status application ticket N/A app tkt N/A N/A doctest/unittest interface to routes_onerror N/A routes N/A THREAD_LOCAL routes N/A N/A N/A status 399 N/A routes routes_onerror N/A N/A keys N/A set N/A N/A %s/%s N/A application status N/A %s/* application N/A */%s status */* N/A N/A key redir N/A routes routes_onerror N/A N/A N/A key keys N/A N/A N/A redir ! N/A N/A N/A N/A N/A ? redir N/A N/A url N/A N/A redir & N/A code=%s&ticket=%s N/A status ticket N/A N/A url N/A N/A redir ? N/A code=%s&ticket=%s N/A status ticket N/A url N/A status N/A MapUrlIn N/A object N/A N/A logic for mapping incoming URLs __init__ N/A N/A self request env N/A None None N/A N/A initialize a map-in object N/A N/A self request request N/A N/A self env env N/A N/A self router None N/A N/A self application None N/A N/A self language None N/A N/A self controller None N/A N/A self function None N/A N/A self extension html N/A N/A self controllers N/A set N/A N/A self functions N/A dict N/A N/A self languages N/A set N/A N/A self default_language None N/A N/A self map_hyphen False N/A N/A self exclusive_domain False N/A path N/A N/A self env N/A PATH_INFO N/A N/A self query N/A N/A N/A self env get QUERY_STRING None N/A path N/A N/A path lstrip / N/A N/A N/A self env N/A PATH_INFO N/A / path N/A N/A N/A self env N/A WEB2PY_ORIGINAL_URI N/A N/A N/A self env N/A PATH_INFO N/A N/A N/A self query N/A ? N/A self query N/A N/A N/A path endswith / N/A N/A path N/A path N/A -1 N/A N/A self args N/A List N/A N/A path N/A N/A path split / N/A N/A N/A self remote_addr N/A N/A N/A self env get REMOTE_ADDR localhost N/A N/A self scheme N/A N/A N/A N/A N/A self env get wsgi.url_scheme http lower N/A N/A self method N/A N/A N/A N/A N/A self env get REQUEST_METHOD get lower N/A N/A N/A self host N/A self port N/A N/A N/A N/A self env get HTTP_HOST None N/A N/A N/A self host N/A N/A N/A N/A self host N/A self port N/A N/A N/A N/A self env get SERVER_NAME N/A N/A N/A self env get SERVER_PORT N/A N/A N/A self host N/A N/A N/A N/A self host N/A self port N/A localhost 80 N/A N/A : N/A self host N/A N/A N/A N/A self host N/A self port N/A N/A N/A self host rsplit : 1 N/A N/A N/A self port N/A N/A N/A self port N/A N/A N/A self scheme https 443 80 N/A map_prefix N/A N/A self N/A N/A N/A strip path prefix, if present in its entirety N/A prefix N/A N/A routers BASE path_prefix N/A prefix N/A N/A prefixlen N/A len prefix N/A N/A prefixlen N/A len N/A self args N/A N/A N/A i N/A xrange prefixlen N/A N/A N/A N/A prefix N/A i N/A N/A self args N/A i N/A N/A N/A N/A self args N/A List N/A N/A self args N/A prefixlen N/A map_app N/A N/A self N/A N/A N/A determine application name N/A base N/A routers BASE N/A N/A self domain_application None N/A N/A self domain_controller None N/A N/A self domain_function None N/A arg0 N/A self harg0 N/A N/A N/A N/A base exclusive_domain N/A base applications N/A arg0 N/A base applications N/A N/A N/A self application arg0 N/A N/A N/A N/A N/A base exclusive_domain arg0 N/A N/A base applications N/A N/A N/A self application arg0 N/A N/A N/A N/A N/A self host N/A self port N/A base domains N/A N/A N/A N/A self application N/A self domain_controller N/A self domain_function N/A N/A base domains N/A N/A N/A self host N/A self port N/A N/A N/A self env N/A domain_application N/A self application N/A N/A N/A self env N/A domain_controller N/A self domain_controller N/A N/A N/A self env N/A domain_function N/A self domain_function N/A N/A N/A N/A N/A self host None N/A base domains N/A N/A N/A N/A self application N/A self domain_controller N/A self domain_function N/A N/A base domains N/A N/A N/A self host None N/A N/A N/A self env N/A domain_application N/A self application N/A N/A N/A self env N/A domain_controller N/A self domain_controller N/A N/A N/A self env N/A domain_function N/A self domain_function N/A N/A N/A N/A base applications N/A arg0 N/A base applications N/A N/A N/A self application arg0 N/A N/A N/A arg0 N/A N/A base applications N/A N/A N/A self application arg0 N/A N/A N/A self application N/A N/A base default_application N/A N/A N/A self pop_arg_if N/A N/A self application arg0 N/A N/A N/A N/A N/A base _acfe_match match N/A self application N/A N/A N/A HTTP 400 N/A N/A N/A THREAD_LOCAL routes error_message invalid request web2py_error N/A invalid application: '%s' N/A self application N/A N/A N/A N/A self application routers N/A N/A N/A self application N/A N/A THREAD_LOCAL routes default_application N/A N/A self application welcome N/A N/A N/A HTTP 400 N/A N/A N/A THREAD_LOCAL routes error_message invalid request web2py_error N/A unknown application: '%s' N/A self application N/A N/A log_rewrite N/A select application=%s N/A self application N/A N/A N/A self request application N/A self application N/A N/A N/A self application routers N/A N/A N/A self router N/A routers BASE N/A N/A N/A self router N/A routers N/A N/A self application N/A N/A self controllers N/A N/A self router controllers N/A N/A self default_controller N/A N/A self domain_controller N/A N/A self router default_controller N/A N/A self functions N/A N/A self router functions N/A N/A self languages N/A N/A self router languages N/A N/A self default_language N/A N/A self router default_language N/A N/A self map_hyphen N/A N/A self router map_hyphen N/A N/A self exclusive_domain N/A N/A self router exclusive_domain N/A N/A self _acfe_match N/A N/A self router _acfe_match N/A N/A self file_match N/A N/A self router file_match N/A N/A self _file_match N/A N/A self router _file_match N/A N/A self _args_match N/A N/A self router _args_match N/A map_root_static N/A N/A self N/A N/A N/A 
        handle root-static files (no hyphen mapping)

        a root-static file is one whose incoming URL expects it to be at the root,
        typically robots.txt & favicon.ico
         N/A N/A N/A N/A len N/A self args 1 N/A N/A self arg0 N/A N/A self router root_static N/A N/A N/A self controller N/A N/A self request controller static N/A root_static_file N/A pjoin N/A N/A N/A self request env applications_parent applications N/A self application N/A self controller N/A self arg0 N/A N/A log_rewrite N/A route: root static=%s root_static_file N/A N/A root_static_file None N/A N/A None None N/A map_language N/A N/A self N/A N/A N/A handle language (no hyphen mapping) N/A arg0 N/A self arg0 N/A N/A arg0 N/A self languages N/A arg0 N/A self languages N/A N/A N/A self language arg0 N/A N/A N/A self language N/A self default_language N/A N/A self language N/A N/A N/A log_rewrite N/A route: language=%s N/A self language N/A N/A N/A self pop_arg_if N/A N/A self language arg0 N/A arg0 N/A self arg0 N/A map_controller N/A N/A self N/A N/A N/A identify controller N/A arg0 N/A self harg0 N/A N/A N/A arg0 N/A N/A self controllers N/A arg0 N/A self controllers N/A N/A N/A self controller N/A N/A self default_controller N/A N/A N/A self controller arg0 N/A N/A N/A self pop_arg_if N/A arg0 N/A self controller N/A N/A log_rewrite N/A route: controller=%s N/A self controller N/A N/A N/A N/A N/A N/A self router _acfe_match match N/A self controller N/A N/A N/A HTTP 400 N/A N/A N/A THREAD_LOCAL routes error_message invalid request web2py_error invalid controller N/A map_static N/A N/A self N/A N/A N/A 
        handle static files
        file_match but no hyphen mapping
         N/A N/A N/A self controller static N/A N/A N/A None None N/A version N/A N/A regex_version match N/A N/A self args 0 N/A N/A N/A self args version N/A N/A file N/A N/A / join N/A N/A self args N/A 1 N/A N/A file N/A N/A / join N/A self args N/A N/A N/A len N/A self args 0 N/A N/A bad_static True N/A N/A N/A / N/A self file_match N/A N/A bad_static N/A N/A N/A N/A N/A self router _file_match match file N/A N/A bad_static False N/A name N/A self args N/A N/A bad_static N/A bad_static N/A name N/A . .. N/A N/A N/A N/A N/A self router _file_match match name N/A bad_static N/A N/A N/A log_rewrite N/A bad static path=%s file N/A N/A HTTP 400 N/A N/A N/A THREAD_LOCAL routes error_message invalid request web2py_error invalid static file N/A N/A self language N/A N/A static_file N/A pjoin N/A N/A N/A self request env applications_parent applications N/A self application static N/A self language file N/A N/A N/A N/A self language N/A N/A isfile static_file N/A N/A static_file N/A pjoin N/A N/A N/A self request env applications_parent applications N/A self application static file N/A N/A self extension None N/A N/A log_rewrite N/A route: static=%s static_file N/A N/A static_file version N/A map_function N/A N/A self N/A N/A N/A handle function.extension N/A arg0 N/A self harg0 N/A functions N/A N/A N/A self functions get N/A self controller N/A set N/A N/A isinstance N/A N/A self router default_function dict N/A N/A default_function N/A N/A N/A N/A self router default_function get N/A self controller None N/A N/A default_function N/A N/A self router default_function N/A default_function N/A N/A self domain_function default_function N/A N/A N/A arg0 N/A functions N/A arg0 functions N/A N/A N/A self function N/A default_function N/A N/A N/A self pop_arg_if N/A arg0 N/A N/A self function arg0 N/A N/A func_ext N/A N/A arg0 split . N/A N/A N/A len func_ext 1 N/A N/A N/A self function N/A func_ext N/A 0 N/A N/A self extension N/A func_ext N/A -1 N/A N/A N/A self function arg0 N/A N/A N/A self pop_arg_if True N/A N/A log_rewrite N/A route: function.ext=%s.%s N/A N/A self function N/A self extension N/A N/A N/A N/A N/A N/A self router _acfe_match match N/A self function N/A N/A N/A HTTP 400 N/A N/A N/A THREAD_LOCAL routes error_message invalid request web2py_error invalid function N/A N/A N/A self extension N/A N/A N/A N/A N/A self router _acfe_match match N/A self extension N/A N/A N/A HTTP 400 N/A N/A N/A THREAD_LOCAL routes error_message invalid request web2py_error invalid extension N/A validate_args N/A N/A self N/A N/A N/A 
        check args against validation pattern
         N/A arg N/A self args N/A N/A N/A N/A N/A N/A N/A self router _args_match match arg N/A N/A N/A HTTP 400 N/A N/A N/A THREAD_LOCAL routes error_message invalid request web2py_error N/A invalid arg <%s> arg N/A sluggify N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self request env update N/A N/A N/A N/A N/A N/A k lower replace . _ v N/A N/A k v N/A N/A N/A self env iteritems N/A update_request N/A N/A self N/A N/A N/A 
        update request from self
        build env.request_uri
        make lower-case versions of http headers in env
         N/A N/A N/A self request application N/A self application N/A N/A N/A self request controller N/A self controller N/A N/A N/A self request function N/A self function N/A N/A N/A self request extension N/A self extension N/A N/A N/A self request args N/A self args N/A N/A self language N/A N/A N/A N/A self request uri_language N/A self language N/A uri N/A /%s/%s N/A N/A self controller N/A self function N/A app N/A self application N/A N/A self map_hyphen N/A N/A uri N/A N/A uri replace _ - N/A app N/A N/A app replace _ - N/A N/A N/A self extension N/A N/A self extension html N/A N/A uri N/A . N/A self extension N/A N/A self language N/A N/A uri N/A /%s%s N/A N/A self language uri N/A uri N/A /%s%s%s%s N/A app uri N/A N/A self args N/A N/A urllib quote N/A / N/A N/A / join N/A N/A str x N/A x N/A self args N/A N/A self query N/A ? N/A self query N/A N/A N/A self env N/A REQUEST_URI uri N/A N/A N/A self sluggify N/A arg0 N/A N/A self N/A N/A N/A return first arg N/A N/A N/A self args 0 N/A property harg0 N/A N/A self N/A N/A N/A return first arg with optional hyphen mapping N/A N/A N/A self map_hyphen N/A N/A self args 0 N/A N/A N/A N/A N/A N/A self args 0 replace - _ N/A N/A N/A self args 0 N/A property pop_arg_if N/A N/A self dopop N/A N/A N/A conditionally remove first arg and return new first arg N/A dopop N/A N/A N/A N/A N/A self args pop 0 N/A N/A MapUrlOut N/A object N/A N/A logic for mapping outgoing URLs __init__ N/A N/A self request env application controller function args other scheme host port N/A N/A N/A initialize a map-out object N/A N/A self default_application N/A N/A routers BASE default_application N/A N/A application routers N/A N/A N/A self router N/A routers N/A application N/A N/A N/A self router N/A routers BASE N/A N/A self request request N/A N/A self env env N/A N/A self application application N/A N/A self controller controller N/A N/A self is_static N/A N/A controller static N/A N/A controller startswith static/ N/A N/A self function function N/A N/A self args args N/A N/A self other other N/A N/A self scheme scheme N/A N/A self host host N/A N/A self port port N/A N/A self applications N/A N/A routers BASE applications N/A N/A self controllers N/A N/A self router controllers N/A N/A self functions N/A N/A N/A N/A self router functions get N/A self controller N/A set N/A N/A self languages N/A N/A self router languages N/A N/A self default_language N/A N/A self router default_language N/A N/A self exclusive_domain N/A N/A self router exclusive_domain N/A N/A self map_hyphen N/A N/A self router map_hyphen N/A N/A self map_static N/A N/A self router map_static N/A N/A self path_prefix N/A N/A routers BASE path_prefix N/A N/A self domain_application N/A request N/A N/A N/A self request env domain_application N/A N/A self domain_controller N/A request N/A N/A N/A self request env domain_controller N/A N/A isinstance N/A N/A self router default_function dict N/A N/A N/A self default_function N/A N/A N/A N/A self router default_function get N/A self controller None N/A N/A N/A self default_function N/A N/A self router default_function N/A N/A N/A N/A self router exclusive_domain N/A self domain_application N/A N/A self domain_application N/A self application N/A N/A self host N/A N/A N/A SyntaxError cross-domain conflict: must specify host N/A lang N/A request N/A request uri_language N/A N/A lang N/A self languages N/A lang N/A self languages N/A N/A N/A self language lang N/A N/A N/A self language None N/A N/A self omit_application False N/A N/A self omit_language False N/A N/A self omit_controller False N/A N/A self omit_function False N/A omit_lang N/A N/A self N/A N/A N/A omit language if possible N/A N/A N/A N/A self language N/A N/A self language N/A self default_language N/A N/A N/A self omit_language True N/A omit_acf N/A N/A self N/A N/A N/A omit what we can of a/c/f N/A router N/A self router N/A N/A N/A N/A self args N/A N/A self function N/A self default_function N/A N/A N/A self omit_function True N/A N/A N/A self controller N/A router default_controller N/A N/A N/A self omit_controller True N/A N/A N/A self application N/A self default_application N/A N/A N/A self omit_application True N/A default_application N/A N/A self domain_application N/A self default_application N/A N/A N/A self application default_application N/A N/A N/A self omit_application True N/A default_controller N/A N/A N/A N/A self application N/A self domain_application N/A self domain_controller N/A router default_controller N/A N/A N/A self controller default_controller N/A N/A N/A self omit_controller True N/A N/A N/A self functions N/A N/A self function N/A self functions N/A N/A self function N/A self default_function N/A N/A N/A self omit_function True N/A N/A self exclusive_domain N/A N/A applications N/A N/A self domain_application N/A N/A applications N/A self applications N/A N/A self omit_language N/A N/A N/A N/A applications N/A N/A self controller applications N/A N/A N/A self omit_application False N/A N/A self omit_application N/A N/A N/A N/A applications N/A N/A self function applications N/A N/A N/A self omit_controller False N/A N/A N/A N/A self controllers N/A N/A self function N/A self controllers N/A N/A N/A self omit_controller False N/A N/A self args N/A N/A N/A N/A N/A N/A self args N/A 0 N/A self functions N/A N/A N/A self args N/A 0 N/A self controllers N/A N/A N/A self args N/A 0 applications N/A N/A N/A self omit_function False N/A N/A self omit_controller N/A N/A N/A N/A N/A self function N/A self controllers N/A N/A self function applications N/A N/A N/A self omit_controller False N/A N/A self omit_application N/A N/A N/A N/A self controller applications N/A N/A N/A self omit_application False N/A N/A self is_static N/A N/A N/A N/A self map_static N/A N/A N/A self omit_application False N/A N/A self language N/A N/A N/A self omit_language False N/A N/A self omit_controller False N/A N/A self omit_function False N/A build_acf N/A N/A self N/A N/A N/A build acf from components N/A acf N/A N/A self map_hyphen N/A N/A N/A self application N/A N/A N/A self application replace _ - N/A N/A self controller N/A N/A N/A self controller replace _ - N/A N/A N/A N/A self controller static N/A N/A N/A N/A self controller startswith static/ N/A N/A N/A self function N/A N/A N/A self function replace _ - N/A N/A N/A self omit_application N/A N/A acf N/A / N/A self application N/A N/A N/A self is_static N/A N/A self map_static False N/A N/A self omit_language N/A N/A acf N/A N/A N/A / N/A self controller / N/A self language N/A N/A N/A N/A self omit_language N/A N/A acf N/A / N/A self language N/A N/A N/A self omit_controller N/A N/A acf N/A / N/A self controller N/A N/A N/A self omit_function N/A N/A acf N/A / N/A self function N/A N/A self path_prefix N/A N/A acf N/A N/A / N/A N/A / join N/A self path_prefix acf N/A N/A self args N/A N/A acf N/A N/A acf / N/A acf N/A N/A self N/A N/A N/A convert components to /app/lang/controller/function N/A N/A routers N/A N/A None N/A N/A N/A self omit_lang N/A N/A N/A self omit_acf N/A N/A N/A self build_acf N/A N/A map_url_in N/A N/A request env app N/A False N/A N/A route incoming URL N/A N/A THREAD_LOCAL routes params N/A map N/A MapUrlIn request request env env N/A N/A N/A map sluggify N/A N/A N/A map map_prefix N/A N/A N/A map map_app N/A N/A params routes_app N/A N/A N/A THREAD_LOCAL routes N/A N/A params_apps get app params N/A app N/A N/A N/A map application N/A N/A root_static_file version N/A N/A map map_root_static N/A root_static_file N/A N/A N/A N/A map update_request N/A N/A root_static_file version N/A map env N/A N/A N/A map languages N/A N/A map map_static False N/A N/A map arg0 static N/A N/A N/A map args 1 N/A map languages N/A N/A N/A N/A map map_controller N/A N/A N/A map map_language N/A N/A N/A N/A map map_language N/A N/A N/A map map_controller N/A N/A static_file version N/A N/A map map_static N/A static_file N/A N/A N/A N/A map update_request N/A N/A static_file version N/A map env N/A N/A N/A map map_function N/A N/A N/A map validate_args N/A N/A N/A map update_request N/A N/A None None N/A map env N/A map_url_out N/A N/A request env application controller function args other scheme host port N/A N/A N/A 
    supply /a/c/f (or /a/lang/c/f) portion of outgoing url

    The basic rule is that we can only make transformations
    that map_url_in can reverse.

    Suppose that the incoming arguments are a,c,f,args,lang
    and that the router defaults are da, dc, df, dl.

    We can perform these transformations trivially if args=[] and lang=None or dl:

    /da/dc/df => /
    /a/dc/df => /a
    /a/c/df => /a/c

    We would also like to be able to strip the default application or application/controller
    from URLs with function/args present, thus:

        /da/c/f/args  => /c/f/args
        /da/dc/f/args => /f/args

    We use [applications] and [controllers] and {functions} to suppress ambiguous omissions.

    We assume that language names do not collide with a/c/f names.
     N/A map N/A MapUrlOut request env application controller function args other scheme host port N/A N/A N/A map acf N/A get_effective_router N/A N/A appname N/A N/A N/A return a private copy of the effective router for the specified application N/A N/A N/A routers N/A appname routers N/A N/A None N/A N/A Storage N/A routers N/A appname N/A