Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call NameLoad keyword NameLoad keyword ListLoad NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Return Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad keyword ListLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad ListLoad Str attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad keyword ListLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad Call NameLoad ListLoad Str attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call NameLoad Str body With Call NameLoad keyword ListLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword ListLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore BoolOpOr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr AttributeLoad NameLoad attr TupleLoad body For NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict FunctionDef arguments args defaults vararg kwarg body For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list With Call NameLoad Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Str With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore Call NameLoad NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str With Call AttributeLoad NameLoad attr NameStore body With Call NameLoad Str body With Call AttributeLoad NameLoad attr NameLoad Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr ListLoad Dict Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad ListLoad Str NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Dict Str Dict Str NameLoad Assign NameStore Dict Str Dict Str Dict Str NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call NameLoad AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call NameLoad AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call NameLoad Dict Str Dict Str Dict Str NameLoad body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body With Call NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpMult AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpMult AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad ListLoad Str Str Str BinOpMod Str NameLoad Str Str Str BinOpMod Str NameLoad Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Str FunctionDef arguments args defaults vararg kwarg body Raise Call NameLoad Str decorator_list TryFinally body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr With Call NameLoad Str body Assign NameStore Call NameLoad Expr Call NameLoad Str NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return IfExp NameLoad ListLoad Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Str Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Str keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Str keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad keyword ListLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call NameLoad Str body Assign NameStore Call NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str With Call NameLoad Str body Assign NameStore Call NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str With Call NameLoad Str body Assign NameStore Call NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Test the runner base class MRJobRunner N/A datetime N/A getpass N/A os N/A os.path N/A shutil N/A signal N/A stat N/A sys N/A tarfile N/A tempfile io BytesIO subprocess CalledProcessError mrjob.hadoop HadoopJobRunner mrjob.inline InlineMRJobRunner mrjob.job MRJob mrjob.local LocalMRJobRunner mrjob.py2 PY2 mrjob.py2 StringIO mrjob.runner MRJobRunner mrjob.tools.emr.audit_usage _JOB_KEY_RE mrjob.util log_to_stream mrjob.util tar_and_gzip tests.mr_os_walk_job MROSWalkJob tests.mr_two_step_job MRTwoStepJob tests.mr_word_count MRWordCount tests.py2 TestCase tests.py2 patch tests.quiet no_handlers_for_logger tests.sandbox EmptyMrjobConfTestCase tests.sandbox SandboxedTestCase tests.sandbox mrjob_conf_patcher WithStatementTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self local_tmp_dir None N/A tearDown N/A N/A self N/A N/A N/A N/A self local_tmp_dir N/A N/A N/A N/A shutil rmtree N/A self local_tmp_dir N/A N/A self local_tmp_dir None N/A _test_cleanup_after_with_statement N/A N/A self mode should_exist N/A N/A N/A N/A InlineMRJobRunner cleanup mode conf_paths N/A runner N/A N/A N/A self local_tmp_dir N/A N/A runner _get_local_tmp_dir N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A self local_tmp_dir N/A N/A N/A self assertEqual N/A N/A N/A os path exists N/A self local_tmp_dir should_exist N/A N/A should_exist N/A N/A N/A self local_tmp_dir None N/A test_cleanup_all N/A N/A self N/A N/A N/A N/A N/A self _test_cleanup_after_with_statement N/A ALL False N/A test_cleanup_tmp N/A N/A self N/A N/A N/A N/A N/A self _test_cleanup_after_with_statement N/A TMP False N/A test_cleanup_local_tmp N/A N/A self N/A N/A N/A N/A N/A self _test_cleanup_after_with_statement N/A LOCAL_TMP False N/A test_cleanup_cloud_tmp N/A N/A self N/A N/A N/A N/A N/A self _test_cleanup_after_with_statement N/A CLOUD_TMP True N/A test_cleanup_none N/A N/A self N/A N/A N/A N/A N/A self _test_cleanup_after_with_statement N/A NONE True N/A test_cleanup_error N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A self _test_cleanup_after_with_statement N/A NONE ALL True N/A N/A N/A self assertRaises ValueError N/A self _test_cleanup_after_with_statement N/A GARBAGE True N/A test_double_none_okay N/A N/A self N/A N/A N/A N/A N/A self _test_cleanup_after_with_statement N/A NONE NONE True N/A N/A TestJobName N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self blank_out_environment N/A N/A N/A self monkey_patch_getuser N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self restore_getuser N/A N/A N/A self restore_environment N/A blank_out_environment N/A N/A self N/A N/A N/A N/A self _old_environ N/A N/A N/A os environ copy N/A N/A N/A N/A os environ clear N/A restore_environment N/A N/A self N/A N/A N/A N/A N/A N/A os environ clear N/A N/A N/A N/A os environ update N/A self _old_environ N/A monkey_patch_getuser N/A N/A self N/A N/A N/A N/A self _real_getuser N/A getpass getuser N/A N/A self getuser_should_fail False fake_getuser N/A N/A N/A N/A N/A N/A self getuser_should_fail N/A N/A N/A Exception fake getuser() was instructed to fail N/A N/A N/A N/A self _real_getuser N/A N/A N/A getpass getuser fake_getuser N/A restore_getuser N/A N/A self N/A N/A N/A N/A getpass getuser N/A self _real_getuser N/A test_empty N/A N/A self N/A N/A N/A runner N/A InlineMRJobRunner conf_paths N/A N/A match N/A N/A _JOB_KEY_RE match N/A N/A runner get_job_key N/A N/A N/A self assertEqual N/A N/A match group 1 no_script N/A N/A N/A self assertEqual N/A N/A match group 2 N/A N/A getpass getuser N/A test_empty_no_user N/A N/A self N/A N/A N/A N/A self getuser_should_fail True N/A runner N/A InlineMRJobRunner conf_paths N/A N/A match N/A N/A _JOB_KEY_RE match N/A N/A runner get_job_key N/A N/A N/A self assertEqual N/A N/A match group 1 no_script N/A N/A N/A self assertEqual N/A N/A match group 2 no_user N/A test_auto_label N/A N/A self N/A N/A N/A runner N/A N/A N/A MRTwoStepJob N/A --no-conf make_runner N/A match N/A N/A _JOB_KEY_RE match N/A N/A runner get_job_key N/A N/A N/A self assertEqual N/A N/A match group 1 mr_two_step_job N/A N/A N/A self assertEqual N/A N/A match group 2 N/A N/A getpass getuser N/A test_auto_owner N/A N/A self N/A N/A N/A N/A N/A os environ N/A USER mcp N/A runner N/A InlineMRJobRunner conf_paths N/A N/A match N/A N/A _JOB_KEY_RE match N/A N/A runner get_job_key N/A N/A N/A self assertEqual N/A N/A match group 1 no_script N/A N/A N/A self assertEqual N/A N/A match group 2 mcp N/A test_auto_everything N/A N/A self N/A N/A N/A test_start N/A N/A N/A datetime datetime utcnow N/A N/A N/A os environ N/A USER mcp N/A runner N/A N/A N/A MRTwoStepJob N/A --no-conf make_runner N/A match N/A N/A _JOB_KEY_RE match N/A N/A runner get_job_key N/A N/A N/A self assertEqual N/A N/A match group 1 mr_two_step_job N/A N/A N/A self assertEqual N/A N/A match group 2 mcp N/A job_start N/A N/A N/A datetime datetime strptime N/A N/A N/A match group 3 N/A N/A match group 4 %Y%m%d%H%M%S N/A job_start N/A N/A job_start replace microsecond N/A int N/A N/A match group 5 N/A N/A N/A self assertGreaterEqual job_start test_start N/A N/A N/A self assertLessEqual N/A job_start test_start N/A N/A datetime timedelta seconds 5 N/A test_owner_and_label_switches N/A N/A self N/A N/A N/A runner_opts N/A --no-conf --owner=ads --label=ads_chain N/A runner N/A N/A N/A MRTwoStepJob runner_opts make_runner N/A match N/A N/A _JOB_KEY_RE match N/A N/A runner get_job_key N/A N/A N/A self assertEqual N/A N/A match group 1 ads_chain N/A N/A N/A self assertEqual N/A N/A match group 2 ads N/A test_owner_and_label_kwargs N/A N/A self N/A N/A N/A runner N/A InlineMRJobRunner conf_paths N/A owner ads label ads_chain N/A match N/A N/A _JOB_KEY_RE match N/A N/A runner get_job_key N/A N/A N/A self assertEqual N/A N/A match group 1 ads_chain N/A N/A N/A self assertEqual N/A N/A match group 2 ads N/A N/A CreateMrjobTarGzTestCase N/A TestCase N/A test_create_mrjob_tar_gz N/A N/A self N/A N/A N/A N/A no_handlers_for_logger mrjob.runner N/A N/A N/A InlineMRJobRunner conf_paths N/A runner N/A N/A mrjob_tar_gz_path N/A N/A runner _create_mrjob_tar_gz N/A mrjob_tar_gz N/A N/A tarfile open mrjob_tar_gz_path N/A contents N/A N/A mrjob_tar_gz getnames N/A path contents N/A N/A N/A N/A self assertEqual N/A path N/A 6 mrjob/ N/A N/A N/A self assertIn mrjob/job.py contents N/A N/A TestStreamingOutput N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self make_tmp_dir N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self rm_tmp_dir N/A make_tmp_dir N/A N/A self N/A N/A N/A N/A self tmp_dir N/A N/A tempfile mkdtemp prefix _streamingtest N/A rm_tmp_dir N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self tmp_dir N/A test_stream_output N/A N/A self N/A N/A N/A a_dir_path N/A N/A N/A os path join N/A self tmp_dir a N/A b_dir_path N/A N/A N/A os path join N/A self tmp_dir b N/A l_dir_path N/A N/A N/A os path join N/A self tmp_dir _logs N/A N/A N/A os mkdir a_dir_path N/A N/A N/A os mkdir b_dir_path N/A N/A N/A os mkdir l_dir_path N/A a_file_path N/A N/A N/A os path join a_dir_path part-00000 N/A b_file_path N/A N/A N/A os path join b_dir_path part-00001 N/A c_file_path N/A N/A N/A os path join N/A self tmp_dir part-00002 N/A x_file_path N/A N/A N/A os path join l_dir_path log.xml N/A y_file_path N/A N/A N/A os path join N/A self tmp_dir _SUCCESS N/A N/A open a_file_path w f N/A N/A N/A N/A f write A N/A N/A open b_file_path w f N/A N/A N/A N/A f write B N/A N/A open c_file_path w f N/A N/A N/A N/A f write C N/A N/A open x_file_path w f N/A N/A N/A N/A f write <XML XML XML/> N/A N/A open y_file_path w f N/A N/A N/A N/A f write I win N/A runner N/A InlineMRJobRunner conf_paths N/A output_dir N/A self tmp_dir N/A N/A N/A self assertEqual N/A sorted N/A N/A runner stream_output N/A A B C N/A N/A TestInvokeSort N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self make_tmp_dir_and_set_up_files N/A N/A N/A self save_environment N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self restore_environment N/A N/A N/A self rm_tmp_dir N/A make_tmp_dir_and_set_up_files N/A N/A self N/A N/A N/A N/A self tmp_dir N/A N/A tempfile mkdtemp N/A N/A self a N/A N/A N/A os path join N/A self tmp_dir a N/A N/A open N/A self a w a N/A N/A N/A N/A a write A
 N/A N/A N/A a write apple
 N/A N/A N/A a write alligator
 N/A N/A self b N/A N/A N/A os path join N/A self tmp_dir b N/A N/A open N/A self b w b N/A N/A N/A N/A b write B
 N/A N/A N/A b write banana
 N/A N/A N/A b write ball
 N/A N/A self out N/A N/A N/A os path join N/A self tmp_dir out N/A rm_tmp_dir N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self tmp_dir N/A save_environment N/A N/A self N/A N/A N/A N/A self _old_environ N/A N/A N/A os environ copy N/A restore_environment N/A N/A self N/A N/A N/A N/A N/A N/A os environ clear N/A N/A N/A N/A os environ update N/A self _old_environ N/A find_real_sort_bin N/A N/A self N/A N/A N/A path N/A N/A N/A N/A N/A N/A os environ get PATH split N/A os pathsep N/A N/A N/A sort_path N/A N/A N/A N/A os path join path sort N/A N/A N/A os path join path sort.exe N/A N/A N/A N/A N/A os path exists sort_path N/A N/A N/A N/A N/A os path abspath sort_path N/A N/A Exception Can't find sort binary! N/A use_alternate_sort N/A N/A self script_contents N/A N/A N/A sort_bin N/A N/A N/A os path join N/A self tmp_dir sort N/A N/A open sort_bin w f N/A N/A N/A N/A f write N/A #!%s
 N/A sys executable N/A N/A N/A f write script_contents N/A N/A N/A os chmod sort_bin N/A N/A stat S_IREAD N/A stat S_IEXEC N/A N/A N/A os environ N/A PATH N/A self tmp_dir N/A use_simulated_windows_sort N/A N/A self N/A N/A N/A script_contents N/A import os
from subprocess import check_call
import sys

if len(sys.argv) > 2:
    print >> sys.stderr, 'Input file specified two times.'
    sys.exit(1)

real_sort_bin = %r

check_call([real_sort_bin] + sys.argv[1:])
 N/A N/A self find_real_sort_bin N/A N/A N/A self use_alternate_sort script_contents N/A use_bad_sort N/A N/A self N/A N/A N/A script_contents import sys

print >> sys.stderr, 'Sorting is for chumps!'
sys.exit(13)
 N/A N/A N/A self use_alternate_sort script_contents N/A environment_variable_checks N/A N/A self runner environment_check_list N/A N/A N/A environment_vars N/A check_call_se N/A N/A N/A args kwargs N/A N/A key N/A N/A N/A kwargs N/A env keys N/A N/A N/A environment_vars N/A key N/A N/A kwargs N/A env N/A key N/A N/A N/A patch mrjob.runner.check_call side_effect check_call_se N/A N/A N/A N/A runner _invoke_sort N/A N/A self a N/A self out N/A key environment_check_list N/A N/A N/A N/A self assertEqual N/A N/A environment_vars get key None N/A N/A runner _opts N/A local_tmp_dir N/A test_no_files N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A N/A N/A N/A self assertRaises ValueError N/A runner _invoke_sort N/A N/A self out N/A test_one_file N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A N/A N/A N/A self addCleanup N/A runner cleanup N/A N/A N/A runner _invoke_sort N/A N/A self a N/A self out N/A N/A open N/A self out out_f N/A N/A N/A N/A self assertEqual N/A list out_f N/A A
 alligator
 apple
 N/A test_two_files N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A N/A N/A N/A self addCleanup N/A runner cleanup N/A N/A N/A runner _invoke_sort N/A N/A self a N/A self b N/A self out N/A N/A open N/A self out out_f N/A N/A N/A N/A self assertEqual N/A list out_f N/A A
 B
 alligator
 apple
 ball
 banana
 N/A test_windows_sort_on_one_file N/A N/A self N/A N/A N/A N/A N/A self use_simulated_windows_sort N/A N/A N/A self test_one_file N/A test_windows_sort_on_two_files N/A N/A self N/A N/A N/A N/A N/A self use_simulated_windows_sort N/A N/A N/A self test_two_files N/A test_bad_sort N/A N/A self N/A N/A N/A N/A N/A self use_bad_sort N/A runner N/A MRJobRunner conf_paths N/A N/A N/A N/A self addCleanup N/A runner cleanup N/A N/A no_handlers_for_logger N/A N/A N/A N/A self assertRaises N/A CalledProcessError IOError N/A runner _invoke_sort N/A N/A self a N/A self b N/A self out N/A test_environment_variables_non_windows N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A N/A N/A N/A self addCleanup N/A runner cleanup N/A N/A N/A self environment_variable_checks runner N/A TEMP TMPDIR N/A test_environment_variables_windows N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A N/A N/A N/A self addCleanup N/A runner cleanup N/A N/A runner _sort_is_windows_sort True N/A N/A N/A self environment_variable_checks runner N/A TMP N/A N/A HadoopArgsForStepTestCase N/A EmptyMrjobConfTestCase N/A test_empty N/A N/A self N/A N/A N/A job N/A MRWordCount N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _hadoop_args_for_step 0 N/A N/A test_cmdenv N/A N/A self N/A N/A N/A job N/A MRWordCount N/A --cmdenv FOO=bar --cmdenv BAZ=qux --cmdenv BAX=Arnold N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _hadoop_args_for_step 0 N/A -cmdenv BAX=Arnold -cmdenv BAZ=qux -cmdenv FOO=bar N/A test_hadoop_input_format N/A N/A self N/A N/A N/A input_format org.apache.hadoop.mapred.SequenceFileInputFormat N/A job1 N/A MRWordCount N/A N/A job1 HADOOP_INPUT_FORMAT input_format N/A N/A N/A job1 make_runner runner1 N/A N/A N/A N/A self assertEqual N/A N/A runner1 _hadoop_args_for_step 0 N/A -inputformat input_format N/A job2 N/A MRTwoStepJob N/A N/A job2 HADOOP_INPUT_FORMAT input_format N/A N/A N/A job2 make_runner runner2 N/A N/A N/A N/A self assertEqual N/A N/A runner2 _hadoop_args_for_step 0 N/A -inputformat input_format N/A N/A N/A self assertEqual N/A N/A runner2 _hadoop_args_for_step 1 N/A N/A test_hadoop_output_format N/A N/A self N/A N/A N/A output_format org.apache.hadoop.mapred.SequenceFileOutputFormat N/A job1 N/A MRWordCount N/A N/A job1 HADOOP_OUTPUT_FORMAT output_format N/A N/A N/A job1 make_runner runner1 N/A N/A N/A N/A self assertEqual N/A N/A runner1 _hadoop_args_for_step 0 N/A -outputformat output_format N/A job2 N/A MRTwoStepJob N/A N/A job2 HADOOP_OUTPUT_FORMAT output_format N/A N/A N/A job2 make_runner runner2 N/A N/A N/A N/A self assertEqual N/A N/A runner2 _hadoop_args_for_step 0 N/A N/A N/A N/A self assertEqual N/A N/A runner2 _hadoop_args_for_step 1 N/A -outputformat output_format N/A test_jobconf N/A N/A self N/A N/A N/A jobconf_args N/A --jobconf FOO=bar --jobconf BAZ=qux --jobconf BAX=Arnold N/A job N/A MRWordCount jobconf_args N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _hadoop_args_for_step 0 N/A -D BAX=Arnold -D BAZ=qux -D FOO=bar N/A test_empty_jobconf_values N/A N/A self N/A N/A N/A job N/A MRWordCount N/A N/A job JOBCONF N/A foo bar None N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _hadoop_args_for_step 0 N/A -D foo= N/A test_configuration_translation N/A N/A self N/A N/A N/A job N/A MRWordCount N/A --jobconf mapred.jobtracker.maxtasks.per.job=1 N/A N/A N/A job make_runner runner N/A N/A N/A no_handlers_for_logger mrjob.runner N/A N/A N/A N/A patch object runner get_hadoop_version return_value 2.7.1 N/A N/A N/A N/A self assertEqual N/A N/A runner _hadoop_args_for_step 0 N/A -D mapred.jobtracker.maxtasks.per.job=1 -D mapreduce.jobtracker.maxtasks.perjob=1 N/A test_jobconf_from_step N/A N/A self N/A N/A N/A jobconf N/A FOO BAZ bar qux N/A runner N/A LocalMRJobRunner jobconf jobconf N/A N/A runner _steps N/A N/A jobconf N/A BAZ BAX quux Arnold N/A N/A N/A self assertEqual N/A N/A runner _hadoop_args_for_step 0 N/A -D BAX=Arnold -D BAZ=quux -D FOO=bar N/A test_partitioner N/A N/A self N/A N/A N/A partitioner org.apache.hadoop.mapreduce.Partitioner N/A job N/A MRWordCount N/A --partitioner partitioner N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _hadoop_args_for_step 0 N/A -partitioner partitioner N/A N/A StrictProtocolsInConfTestCase N/A TestCase N/A N/A STRICT_MRJOB_CONF N/A runners N/A inline N/A strict_protocols True N/A LOOSE_MRJOB_CONF N/A runners N/A inline N/A strict_protocols False test_default N/A N/A self N/A N/A N/A job N/A MRJob N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _opts N/A strict_protocols True N/A test_strict_mrjob_conf N/A N/A self N/A N/A N/A job N/A MRJob N/A N/A mrjob_conf_patcher N/A self STRICT_MRJOB_CONF N/A N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _opts N/A strict_protocols True N/A test_loose_mrjob_conf N/A N/A self N/A N/A N/A job N/A MRJob N/A N/A mrjob_conf_patcher N/A self LOOSE_MRJOB_CONF N/A N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertEqual N/A N/A runner _opts N/A strict_protocols False N/A N/A CheckInputPathsTestCase N/A TestCase N/A test_check_input_paths_enabled_by_default N/A N/A self N/A N/A N/A job N/A MRWordCount N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertTrue N/A N/A runner _opts N/A check_input_paths N/A test_check_input_paths_disabled N/A N/A self N/A N/A N/A job N/A MRWordCount N/A --no-check-input-paths N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertFalse N/A N/A runner _opts N/A check_input_paths N/A test_can_disable_check_input_paths_in_config N/A N/A self N/A N/A N/A job N/A MRWordCount N/A N/A mrjob_conf_patcher N/A runners N/A inline N/A check_input_paths False N/A N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertFalse N/A N/A runner _opts N/A check_input_paths N/A N/A SetupTestCase N/A SandboxedTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super SetupTestCase self setUp N/A N/A N/A os mkdir N/A N/A N/A os path join N/A self tmp_dir foo N/A N/A self foo_py N/A N/A N/A os path join N/A self tmp_dir foo foo.py N/A N/A open N/A self foo_py w foo_py N/A N/A N/A N/A foo_py write import os.path
from os.path import getsize as _real_getsize
os.path.getsize = lambda p: _real_getsize(p) * 2 N/A N/A self foo_sh N/A N/A N/A os path join N/A self tmp_dir foo foo.sh N/A N/A open N/A self foo_sh w foo_sh N/A N/A N/A N/A foo_sh write #!/bin/sh
touch foo.sh-made-this
 N/A N/A N/A os chmod N/A self foo_sh N/A stat S_IRWXU N/A N/A self foo_tar_gz N/A N/A N/A os path join N/A self tmp_dir foo.tar.gz N/A N/A tar_and_gzip N/A N/A N/A os path join N/A self tmp_dir foo N/A self foo_tar_gz N/A N/A self foo_py_size N/A N/A N/A os path getsize N/A self foo_py N/A N/A self foo_sh_size N/A N/A N/A os path getsize N/A self foo_sh N/A N/A self foo_tar_gz_size N/A N/A N/A os path getsize N/A self foo_tar_gz N/A test_file_upload N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --file N/A self foo_sh --file N/A N/A self foo_sh #bar.sh N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertEqual N/A N/A path_to_size get ./foo.sh N/A self foo_sh_size N/A N/A N/A self assertEqual N/A N/A path_to_size get ./bar.sh N/A self foo_sh_size N/A test_archive_upload N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --archive N/A self foo_tar_gz --archive N/A N/A self foo_tar_gz #foo N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A no_handlers_for_logger mrjob.local N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertEqual N/A N/A path_to_size get ./foo.tar.gz/foo.py N/A self foo_py_size N/A N/A N/A self assertEqual N/A N/A path_to_size get ./foo/foo.py N/A self foo_py_size N/A test_deprecated_python_archive_option N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --python-archive N/A self foo_tar_gz N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertEqual N/A N/A path_to_size get ./foo.tar.gz/foo.py N/A N/A self foo_py_size 2 N/A test_deprecated_setup_cmd_option N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --setup-cmd touch bar N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertIn ./bar path_to_size N/A test_deprecated_setup_script_option N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --setup-script N/A self foo_sh N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertEqual N/A N/A path_to_size get ./foo.sh N/A self foo_sh_size N/A N/A N/A self assertIn ./foo.sh-made-this path_to_size N/A test_python_archive N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --setup N/A export PYTHONPATH=%s#/:$PYTHONPATH N/A self foo_tar_gz N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertEqual N/A N/A path_to_size get ./foo.tar.gz/foo.py N/A N/A self foo_py_size 2 N/A test_setup_command N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --setup touch bar N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertIn ./bar path_to_size N/A test_setup_script N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --setup N/A N/A self foo_sh # N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertEqual N/A N/A path_to_size get ./foo.sh N/A self foo_sh_size N/A N/A N/A self assertIn ./foo.sh-made-this path_to_size N/A test_bad_setup_command N/A N/A self N/A N/A N/A bar_path N/A N/A N/A os path join N/A self tmp_dir bar N/A baz_path N/A N/A N/A os path join N/A self tmp_dir baz N/A job N/A MROSWalkJob N/A -r local --setup N/A touch %s bar_path --setup false --setup N/A touch %s baz_path --cleanup-on-failure=ALL N/A N/A N/A job sandbox N/A N/A N/A job make_runner r N/A N/A N/A N/A self assertRaises Exception N/A r run N/A N/A N/A self assertTrue N/A N/A N/A os path exists bar_path N/A N/A N/A self assertFalse N/A N/A N/A os path exists baz_path N/A test_stdin_bypasses_wrapper_script N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --setup cat > stdin.txt N/A N/A N/A job sandbox stdin N/A BytesIO some input
 alarm_handler N/A N/A N/A args kwargs N/A N/A N/A Exception Setup script stalled on stdin N/A N/A N/A N/A N/A self _old_alarm_handler N/A N/A signal signal N/A signal SIGALRM alarm_handler N/A N/A N/A signal alarm 10 N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A path_to_size N/A dict N/A N/A N/A job parse_output_line line N/A line N/A N/A r stream_output N/A N/A N/A self assertEqual N/A N/A path_to_size get ./stdin.txt 0 N/A N/A N/A self assertEqual N/A N/A path_to_size get None some input N/A N/A N/A N/A signal alarm 0 N/A N/A N/A signal signal N/A signal SIGALRM N/A self _old_alarm_handler N/A test_wrapper_script_only_writes_to_stderr N/A N/A self N/A N/A N/A job N/A MROSWalkJob N/A -r local --setup echo stray output N/A N/A N/A job sandbox N/A N/A no_handlers_for_logger mrjob.local N/A N/A stderr N/A StringIO N/A N/A log_to_stream mrjob.local stderr debug True N/A N/A N/A job make_runner r N/A N/A N/A N/A r run N/A output N/A N/A join N/A N/A r stream_output N/A N/A N/A self assertIn stray output N/A N/A stderr getvalue N/A N/A N/A self assertNotIn stray output output N/A N/A ClosedRunnerTestCase N/A EmptyMrjobConfTestCase N/A test_job_closed_on_cleanup N/A N/A self N/A N/A N/A job N/A MRWordCount N/A N/A N/A job make_runner runner N/A N/A N/A N/A self assertFalse N/A runner _closed N/A N/A N/A self assertTrue N/A runner _closed N/A N/A InterpreterTestCase N/A TestCase N/A default_python_bin N/A N/A self N/A N/A N/A N/A PY2 N/A python N/A python3 N/A test_default N/A N/A self N/A N/A N/A runner N/A MRJobRunner N/A N/A N/A self assertEqual N/A N/A runner _interpreter N/A N/A self default_python_bin N/A N/A N/A self assertEqual N/A N/A runner _interpreter steps True N/A N/A sys executable N/A test_python_bin N/A N/A self N/A N/A N/A runner N/A MRJobRunner python_bin N/A python -v N/A N/A N/A self assertEqual N/A N/A runner _interpreter N/A python -v N/A N/A N/A self assertEqual N/A N/A runner _interpreter steps True N/A N/A sys executable N/A test_steps_python_bin N/A N/A self N/A N/A N/A runner N/A MRJobRunner steps_python_bin N/A python -v N/A N/A N/A self assertEqual N/A N/A runner _interpreter N/A N/A self default_python_bin N/A N/A N/A self assertEqual N/A N/A runner _interpreter steps True N/A python -v N/A test_interpreter N/A N/A self N/A N/A N/A runner N/A MRJobRunner interpreter N/A ruby N/A N/A N/A self assertEqual N/A N/A runner _interpreter N/A ruby N/A N/A N/A self assertEqual N/A N/A runner _interpreter steps True N/A ruby N/A test_steps_interpreter N/A N/A self N/A N/A N/A runner N/A MRJobRunner interpreter N/A ruby -v steps_interpreter N/A ruby N/A N/A N/A self assertEqual N/A N/A runner _interpreter N/A ruby -v N/A N/A N/A self assertEqual N/A N/A runner _interpreter steps True N/A ruby N/A test_interpreter_overrides_python_bin N/A N/A self N/A N/A N/A runner N/A MRJobRunner interpreter N/A ruby python_bin N/A python -v N/A N/A N/A self assertEqual N/A N/A runner _interpreter N/A ruby N/A N/A N/A self assertEqual N/A N/A runner _interpreter steps True N/A ruby N/A test_interpreter_overrides_steps_python_bin N/A N/A self N/A N/A N/A runner N/A MRJobRunner interpreter N/A ruby steps_python_bin N/A python -v N/A N/A N/A self assertEqual N/A N/A runner _interpreter N/A ruby N/A N/A N/A self assertEqual N/A N/A runner _interpreter steps True N/A ruby N/A N/A BootstrapMRJobTestCase N/A TestCase N/A test_default N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A N/A N/A N/A self assertEqual N/A N/A runner _bootstrap_mrjob True N/A test_no_bootstrap_mrjob N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A bootstrap_mrjob False N/A N/A N/A self assertEqual N/A N/A runner _bootstrap_mrjob False N/A test_interpreter N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A interpreter N/A ruby N/A N/A N/A self assertEqual N/A N/A runner _bootstrap_mrjob False N/A test_bootstrap_mrjob_overrides_interpreter N/A N/A self N/A N/A N/A runner N/A MRJobRunner conf_paths N/A interpreter N/A ruby bootstrap_mrjob True N/A N/A N/A self assertEqual N/A N/A runner _bootstrap_mrjob True N/A N/A FSPassthroughTestCase N/A TestCase N/A test_passthrough N/A N/A self N/A N/A N/A runner N/A InlineMRJobRunner N/A N/A no_handlers_for_logger mrjob.runner N/A N/A stderr N/A StringIO N/A N/A log_to_stream mrjob.runner stderr N/A N/A N/A self assertEqual N/A runner ls N/A N/A runner fs ls N/A N/A N/A self assertEqual N/A runner _cat_file N/A N/A runner fs _cat_file N/A N/A N/A self assertIn deprecated: call InlineMRJobRunner.fs.ls() directly N/A N/A stderr getvalue N/A N/A N/A self assertIn deprecated: call InlineMRJobRunner.fs._cat_file() directly N/A N/A stderr getvalue N/A test_prefer_own_methods N/A N/A self N/A N/A N/A runner N/A HadoopJobRunner hadoop_bin hadoop hadoop_home kansas hadoop_streaming_jar streaming.jar N/A N/A no_handlers_for_logger mrjob.runner N/A N/A stderr N/A StringIO N/A N/A log_to_stream mrjob.runner stderr N/A N/A N/A self assertEqual N/A runner ls N/A N/A runner fs ls N/A N/A N/A self assertNotEqual N/A runner get_hadoop_version N/A N/A runner fs get_hadoop_version N/A N/A N/A self assertIn deprecated: call HadoopJobRunner.fs.ls() directly N/A N/A stderr getvalue N/A N/A N/A self assertNotIn get_hadoop_version N/A N/A stderr getvalue N/A test_pass_through_fields N/A N/A self N/A N/A N/A runner N/A HadoopJobRunner hadoop_bin hadoooooooooop hadoop_home kansas hadoop_streaming_jar streaming.jar N/A N/A no_handlers_for_logger mrjob.runner N/A N/A stderr N/A StringIO N/A N/A log_to_stream mrjob.runner stderr N/A N/A N/A self assertEqual N/A runner _hadoop_bin N/A N/A runner fs _hadoop_bin N/A N/A N/A self assertIn deprecated: access HadoopJobRunner.fs._hadoop_bin directly N/A N/A stderr getvalue N/A N/A