Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Str If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If NameLoad body Print NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body TryExcept body Print AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr attr Index Num handlers ExceptHandler type NameLoad body Return NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print NameLoad Expr Call AttributeLoad NameLoad attr Return If Call NameLoad NameLoad Str body Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num Str body Assign NameStore Str orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num Str body Pass orelse Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Str If AttributeLoad NameLoad attr body TryExcept body Import alias FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list handlers ExceptHandler type NameLoad body FunctionDef arguments args defaults vararg body Raise Call NameLoad BinOpMod NameLoad TupleLoad Str Str decorator_list Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad body Pass If NameLoad body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list orelse FunctionDef arguments args defaults vararg body Raise Call NameLoad BinOpMod NameLoad TupleLoad Str Str decorator_list Assign NameStore NameLoad orelse Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass ExceptHandler type NameLoad body Pass If NameLoad body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list orelse FunctionDef arguments args defaults vararg body Raise Call NameLoad BinOpMod NameLoad TupleLoad Str Str decorator_list Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Str Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign NameStore NameLoad Return NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Dict For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If NameLoad body TryExcept body Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num attr handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareLt Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad BinOpAdd NameLoad BinOpMult ListLoad NameLoad NameLoad Slice NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad Str attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad Str attr Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Print Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Print NameLoad decorator_list Assign NameStore NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num Str body Assign NameStore Str orelse For NameStore ListLoad Str Str Str Str Str Str Str body If Call NameLoad NameLoad body Break Assign NameStore Dict Str Str Str Str Str Str Str Dict NameLoad NameLoad Str Str Dict NameLoad NameLoad Str Str Dict NameLoad NameLoad Str Str Dict NameLoad NameLoad Str Str Dict NameLoad NameLoad Str Str Dict NameLoad NameLoad Str Str Dict NameLoad NameLoad Str Str Assign NameStore CompareNotEq Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return BinOpAdd BinOpAdd SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Dict Str Str Str BoolOpOr BoolOpAnd AttributeLoad NameLoad attr Str Str Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Slice Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Slice Num comprehension NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr BinOpBitXor AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Assign NameStore NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call BinOpBitOr BinOpBitOr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Str Assign NameStore Call Call AttributeLoad NameLoad attr ListComp BoolOpOr BoolOpAnd Call NameLoad NameLoad Str NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Str Assign NameStore BinOpBitXor AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Str Assign NameStore Call BinOpAdd UnaryOpInvert AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Str Assign NameStore BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call Call AttributeLoad NameLoad attr BinOpBitXor NameLoad NameLoad keyword NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call BinOpAdd BinOpAdd BinOpBitXor AttributeLoad NameLoad attr NameLoad Call Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Call BinOpAdd BinOpAdd BinOpBitXor AttributeLoad NameLoad attr NameLoad Call Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str NameLoad Str Call Call AttributeLoad Call AttributeLoad NameLoad attr BinOpBitXor BinOpBitXor NameLoad NameLoad NameLoad keyword NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Call BinOpAdd NameLoad Call Call AttributeLoad Call AttributeLoad NameLoad attr BinOpBitXor BinOpBitXor BinOpBitXor NameLoad NameLoad NameLoad NameLoad keyword NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str Num Break Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore BinOpAdd Str NameLoad If CompareIn NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore BinOpAdd Str SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad If CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return Num ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad finalbody Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Str attr NameLoad body Raise Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad While BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad TupleLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad TupleLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse If AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad TupleLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad TupleLoad Str If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Num AttributeLoad NameLoad attr body Assign NameStore Str Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body If AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr orelse If AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BoolOpOr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call NameLoad NameLoad body Assign NameStore Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Import alias Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass TryFinally body If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore NameLoad While UnaryOpNot NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr finalbody If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Import alias Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpAdd NameLoad Num NameLoad While NameLoad body Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num Index Num Break handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad If NameLoad body For NameStore Call NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list Call NameLoad ListLoad Call NameLoad Str Str keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num CompareIn SubscriptLoad NameLoad Index Num TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num Num orelse Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad Expr Call NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Pass handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num attr Assign NameStore BoolOpOr BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse FunctionDef arguments args defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad TryExcept body Assign NameStore Str Assign NameStore Call NameLoad NameLoad TupleLoad Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list Call NameLoad ListLoad Call NameLoad Str Str keyword Str keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body If NameLoad body Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num orelse Return SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr NameLoad Str handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Str orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd Call Call AttributeLoad NameLoad attr BinOpBitXor Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Call Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Slice orelse If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub Call NameLoad AttributeLoad NameLoad attr Num orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad BoolOpOr SubscriptLoad NameLoad Slice Num ListLoad Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num Call AttributeLoad SubscriptLoad BoolOpOr SubscriptLoad NameLoad Slice Num ListLoad Str Index Num attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return Assign NameStore Call NameLoad NameLoad TupleLoad Str Str Str Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Return BoolOpAnd NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad If CompareGt NameLoad Num body AugAssignSub NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEqEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Str CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body If CompareIn Call AttributeLoad NameLoad attr TupleLoad Str Str Str body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Raise NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Return ListLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body If CompareLt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot NameLoad body Return NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad Num body Return SubscriptLoad NameLoad Slice BinOpMult Num NameLoad orelse Return ListLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num handlers ExceptHandler type NameLoad body Return ListLoad ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore BinOpSub Call NameLoad NameLoad Num If NameLoad body Assign NameStore Call NameLoad NameLoad Return SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list orelse FunctionDef arguments args NameParam defaults body Return CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Return ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad NameLoad body TryExcept body Return Call NameLoad Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass If BoolOpOr CompareEq NameLoad Str CompareIn SubscriptLoad NameLoad Index Num TupleLoad Str Str body Return NameLoad If BoolOpOr CompareEq NameLoad Str CompareIn SubscriptLoad NameLoad Index Num TupleLoad Str Str body Return NameLoad orelse TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Print BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict For NameStore AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore BinOpBitOr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num Assign NameStore Num While UnaryOpNot NameLoad body While UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Break AugAssignAdd NameStore Num Assign NameStore ListLoad SubscriptLoad NameLoad Slice Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr While Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise TupleLoad NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Continue Assign NameStore ListLoad While UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Break AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Str
N/A N/A Variant on standard library's cmd with extra features.

To use, simply import cmd2.Cmd instead of cmd.Cmd; use precisely as though you
were using the standard library's cmd, while enjoying the extra features.

Searchable command history (commands: "hi", "li", "run")
Load commands from file, save to file, edit commands in file
Multi-line commands
Case-insensitive commands
Special-character shortcut commands (beyond cmd's "@" and "!")
Settable environment parameters
Optional _onchange_{paramname} called when environment parameter changes
Parsing commands with `optparse` options (flags)
Redirection to file with >, >>; input from file with <
Easy transcript-based testing of applications (see example/example.py)
Bash-style ``select`` available

Note that redirection with > and | will only work if `self.stdout.write()`
is used in place of `print`.  The standard library's `cmd` module is
written to use `self.stdout.write()`,

- Catherine Devlin, Jan 03 2008 - catherinedevlin.blogspot.com

mercurial repository at http://www.assembla.com/wiki/show/python-cmd2
 N/A cmd N/A re N/A os N/A sys N/A optparse N/A subprocess N/A tempfile N/A doctest N/A unittest N/A datetime N/A urllib N/A glob N/A traceback N/A platform N/A copy code InteractiveConsole InteractiveInterpreter optparse make_option exabgp.dep pyparsing N/A __version__ 0.6.8 N/A N/A N/A N/A sys version_info N/A 0 2 N/A N/A N/A N/A N/A pyparsing ParserElement enablePackrat N/A 
Packrat is causing Python3 errors that I don't understand.

> /usr/local/Cellar/python3/3.2/lib/python3.2/site-packages/pyparsing-1.5.6-py3.2.egg/pyparsing.py(999)scanString()
-> nextLoc,tokens = parseFn( instring, preloc, callPreParse=False )
(Pdb) n
NameError: global name 'exc' is not defined

(Pdb) parseFn
<bound method Or._parseCache of {Python style comment ^ C style comment}>

Bug report filed: https://sourceforge.net/tracker/?func=detail&atid=617311&aid=3381439&group_id=97203
 OptionParser N/A N/A optparse OptionParser N/A exit N/A N/A self status msg N/A 0 None N/A N/A N/A N/A self values _exit True N/A msg N/A N/A msg N/A print_help N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A N/A self _func __doc__ N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A optparse OptionParser print_help self args kwargs N/A error N/A N/A self msg N/A N/A N/A error(msg : string)

        Print a usage message incorporating 'msg' to stderr and exit.
        If you override this in a subclass, it should not return -- it
        should either exit or raise an exception.
         N/A N/A N/A optparse OptParseError msg N/A N/A remaining_args N/A N/A oldArgs newArgList N/A N/A N/A 
    Preserves the spacing originally in the argument after
    the removal of options.

    >>> remaining_args('-f bar   bar   cow', ['bar', 'cow'])
    'bar   cow'
     N/A pattern N/A N/A N/A \s+ join N/A N/A N/A re escape a N/A a newArgList \s*$ N/A matchObj N/A N/A re search pattern oldArgs N/A N/A oldArgs N/A N/A N/A matchObj start N/A _attr_get_ N/A N/A obj attr N/A N/A N/A Returns an attribute's value, or None (no error) if undefined.
       Analagous to .get() for dictionaries.  Useful when checking for
       value of options that may not have been defined on a given
       method. N/A N/A N/A N/A getattr obj attr N/A N/A N/A AttributeError N/A N/A None N/A _which N/A N/A editor N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A subprocess Popen N/A which editor stdout N/A subprocess PIPE stderr N/A subprocess STDOUT communicate N/A 0 N/A N/A N/A OSError N/A N/A None N/A N/A N/A N/A optparse Values get _attr_get_ N/A options_defined N/A options N/A N/A option_list arg_desc N/A arg N/A N/A Used as a decorator and passed a list of optparse-style options,
       alters a cmd2 method to populate its ``opts`` argument from its
       raw text argument.

       Example: transform
       def do_something(self, arg):

       into
       @options([make_option('-q', '--quick', action="store_true",
                 help="Makes things fast")],
                 "source dest")
       def do_something(self, arg, opts):
           if opts.quick:
               self.fast_button = True
        N/A N/A N/A isinstance option_list list N/A N/A option_list N/A option_list N/A opt option_list N/A N/A N/A N/A options_defined append N/A N/A pyparsing Literal N/A N/A opt get_opt_string option_setup N/A N/A func N/A N/A N/A optionParser N/A OptionParser N/A opt option_list N/A N/A N/A N/A optionParser add_option opt N/A N/A N/A optionParser set_usage N/A %s [options] %s N/A N/A N/A func __name__ N/A 3 arg_desc N/A N/A optionParser _func func new_func N/A N/A instance arg N/A N/A N/A N/A N/A N/A opts newArgList N/A N/A optionParser parse_args N/A N/A arg split N/A newArgs N/A remaining_args arg newArgList N/A N/A isinstance arg ParsedString N/A N/A arg N/A N/A arg with_args_replaced newArgs N/A N/A arg newArgs N/A N/A N/A N/A optparse OptParseError N/A e N/A N/A e N/A N/A N/A optionParser print_help N/A N/A N/A hasattr opts _exit N/A N/A None N/A result N/A func instance arg opts N/A result N/A N/A N/A new_func __doc__ N/A %s
%s N/A N/A func __doc__ N/A N/A optionParser format_help N/A new_func N/A N/A option_setup N/A PasteBufferError N/A EnvironmentError N/A N/A N/A N/A N/A sys platform N/A 3 win N/A N/A errmsg Redirecting to or from paste buffer requires pywin32
to be installed on operating system.
Download from http://sourceforge.net/projects/pywin32/ N/A N/A N/A N/A N/A sys platform N/A 3 dar N/A N/A N/A N/A errmsg Redirecting to or from paste buffer requires xclip
to be installed on operating system.
On Debian/Ubuntu, 'sudo apt-get install xclip' will install it. __init__ N/A N/A self N/A N/A N/A N/A N/A Exception __init__ self N/A self errmsg N/A N/A N/A pastebufferr Redirecting to or from paste buffer requires %s
to be installed on operating system.
%s N/A N/A subprocess mswindows N/A N/A N/A N/A win32clipboard get_paste_buffer N/A N/A N/A N/A N/A N/A N/A win32clipboard OpenClipboard 0 N/A N/A N/A result N/A N/A win32clipboard GetClipboardData N/A N/A N/A TypeError N/A N/A result N/A N/A N/A win32clipboard CloseClipboard N/A result N/A write_to_paste_buffer N/A N/A txt N/A N/A N/A N/A N/A win32clipboard OpenClipboard 0 N/A N/A N/A win32clipboard EmptyClipboard N/A N/A N/A win32clipboard SetClipboardText txt N/A N/A N/A win32clipboard CloseClipboard N/A N/A N/A N/A ImportError N/A get_paste_buffer N/A N/A N/A args N/A N/A N/A OSError N/A pastebufferr N/A pywin32 Download from http://sourceforge.net/projects/pywin32/ N/A N/A write_to_paste_buffer get_paste_buffer N/A N/A N/A N/A sys platform darwin N/A N/A can_clip False N/A N/A N/A N/A N/A subprocess check_call pbcopy -help shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE stderr N/A subprocess PIPE N/A can_clip True N/A N/A N/A N/A N/A subprocess CalledProcessError OSError IOError N/A N/A N/A can_clip N/A get_paste_buffer N/A N/A N/A N/A N/A pbcopyproc N/A N/A subprocess Popen pbcopy -help shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A N/A N/A pbcopyproc stdout read N/A write_to_paste_buffer N/A N/A txt N/A N/A N/A pbcopyproc N/A N/A subprocess Popen pbcopy shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A N/A pbcopyproc communicate N/A N/A txt encode N/A N/A get_paste_buffer N/A N/A N/A args N/A N/A N/A OSError N/A pastebufferr N/A pbcopy On MacOS X - error should not occur - part of the default installation N/A N/A write_to_paste_buffer get_paste_buffer N/A N/A can_clip False N/A N/A N/A N/A N/A subprocess check_call xclip -o -sel clip shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE stderr N/A subprocess PIPE N/A can_clip True N/A N/A N/A AttributeError N/A N/A N/A N/A teststring Testing for presence of xclip. N/A xclipproc N/A N/A subprocess Popen xclip -sel clip shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A N/A N/A N/A xclipproc stdin write teststring N/A N/A N/A N/A xclipproc stdin close N/A xclipproc N/A N/A subprocess Popen xclip -o -sel clip shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A N/A N/A N/A N/A xclipproc stdout read teststring N/A N/A can_clip True N/A N/A N/A Exception N/A N/A N/A N/A Exception N/A N/A N/A can_clip N/A get_paste_buffer N/A N/A N/A N/A N/A xclipproc N/A N/A subprocess Popen xclip -o -sel clip shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A N/A N/A N/A xclipproc stdout read N/A write_to_paste_buffer N/A N/A txt N/A N/A N/A xclipproc N/A N/A subprocess Popen xclip -sel clip shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A N/A N/A N/A xclipproc stdin write N/A N/A txt encode N/A N/A N/A N/A xclipproc stdin close N/A xclipproc N/A N/A subprocess Popen xclip shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A N/A N/A N/A xclipproc stdin write N/A N/A txt encode N/A N/A N/A N/A xclipproc stdin close N/A N/A get_paste_buffer N/A N/A N/A args N/A N/A N/A OSError N/A pastebufferr N/A xclip On Debian/Ubuntu, install with "sudo apt-get install xclip" N/A N/A write_to_paste_buffer get_paste_buffer N/A N/A N/A N/A pyparsing ParserElement setDefaultWhitespaceChars ParsedString N/A str N/A full_parsed_statement N/A N/A self N/A N/A N/A new N/A ParsedString N/A %s %s N/A N/A N/A self parsed command N/A N/A self parsed args N/A N/A new parsed N/A self parsed N/A N/A new parser N/A self parser N/A new N/A with_args_replaced N/A N/A self newargs N/A N/A N/A new N/A ParsedString newargs N/A N/A new parsed N/A self parsed N/A N/A new parser N/A self parser N/A N/A N/A new parsed N/A args newargs N/A N/A N/A N/A new parsed statement N/A args newargs N/A new N/A N/A StubbornDict N/A dict N/A N/A Dictionary that tolerates many input formats.
    Create it with stubbornDict(arg) factory function.

    >>> d = StubbornDict(large='gross', small='klein')
    >>> sorted(d.items())
    [('large', 'gross'), ('small', 'klein')]
    >>> d.append(['plain', '  plaid'])
    >>> sorted(d.items())
    [('large', 'gross'), ('plaid', ''), ('plain', ''), ('small', 'klein')]
    >>> d += '   girl Frauelein, Maedchen\n\n shoe schuh'
    >>> sorted(d.items())
    [('girl', 'Frauelein, Maedchen'), ('large', 'gross'), ('plaid', ''), ('plain', ''), ('shoe', 'schuh'), ('small', 'klein')]
     update N/A N/A self arg N/A N/A N/A N/A N/A dict update self N/A N/A StubbornDict to_dict arg N/A N/A append update __iadd__ N/A N/A self arg N/A N/A N/A N/A N/A self update arg N/A self N/A __add__ N/A N/A self arg N/A N/A N/A selfcopy N/A N/A copy copy self N/A N/A N/A selfcopy update N/A stubbornDict arg N/A selfcopy N/A __radd__ N/A N/A self arg N/A N/A N/A selfcopy N/A N/A copy copy self N/A N/A N/A selfcopy update N/A stubbornDict arg N/A selfcopy N/A to_dict N/A N/A cls arg N/A N/A N/A Generates dictionary from string or list of strings N/A N/A hasattr arg splitlines N/A N/A arg N/A N/A arg splitlines N/A N/A hasattr arg __reversed__ N/A N/A result N/A N/A a arg N/A N/A a N/A N/A a strip N/A a N/A N/A key_val N/A N/A a split None 1 N/A key N/A key_val N/A 0 N/A N/A N/A len key_val 1 N/A N/A val N/A key_val N/A 1 N/A N/A val N/A N/A result N/A key val N/A N/A result arg N/A result N/A classmethod N/A stubbornDict N/A N/A N/A arg kwarg N/A N/A 
    >>> sorted(stubbornDict('cow a bovine\nhorse an equine').items())
    [('cow', 'a bovine'), ('horse', 'an equine')]
    >>> sorted(stubbornDict(['badger', 'porcupine a poky creature']).items())
    [('badger', ''), ('porcupine', 'a poky creature')]
    >>> sorted(stubbornDict(turtle='has shell', frog='jumpy').items())
    [('frog', 'jumpy'), ('turtle', 'has shell')]
     N/A result N/A N/A a arg N/A N/A N/A N/A result update N/A N/A StubbornDict to_dict a N/A N/A N/A result update kwarg N/A N/A StubbornDict result N/A replace_with_file_contents N/A N/A fname N/A N/A N/A fname N/A N/A N/A N/A result N/A N/A N/A open N/A N/A N/A os path expanduser N/A fname N/A 0 read N/A N/A N/A IOError N/A N/A result N/A < %s N/A fname N/A 0 N/A N/A result N/A get_paste_buffer N/A result N/A EmbeddedConsoleExit N/A SystemExit N/A N/A N/A EmptyStatement N/A Exception N/A N/A N/A ljust N/A N/A x width fillchar N/A N/A N/A analogous to str.ljust, but works for lists N/A N/A hasattr x ljust N/A N/A N/A N/A x ljust width fillchar N/A N/A N/A N/A len x width N/A N/A x N/A N/A x N/A N/A fillchar width N/A width N/A x N/A Cmd N/A N/A cmd Cmd N/A N/A echo False N/A case_insensitive True N/A continuation_prompt >  N/A timing False N/A legalChars N/A N/A !#$%.:?@_ N/A pyparsing alphanums N/A pyparsing alphas8bit N/A shortcuts N/A ? ! @ @@ help shell load _relative_load N/A excludeFromHistory N/A N/A run r list l history hi ed edit li eof split N/A default_to_shell False N/A noSpecialParse N/A N/A set ed edit exit split N/A defaultExtension txt N/A default_file_name command.txt N/A abbrev True N/A current_script_dir None N/A reserved_words N/A N/A feedback_to_output False N/A quiet False N/A debug False N/A locals_in_py True N/A kept_state None N/A redirector > N/A settable N/A stubbornDict 
        prompt
        colors                Colorized output (*nix only)
        continuation_prompt   On 2nd+ line of input
        debug                 Show full error stack on error
        default_file_name     for ``save``, ``load``, etc.
        editor                Program used by ``edit``
        case_insensitive      upper- and lower-case both OK
        feedback_to_output    include nonessentials in `|`, `>` results
        quiet                 Don't print nonessential feedback
        echo                  Echo command issued into output
        timing                Report execution times
        abbrev                Accept abbreviated commands
         poutput N/A N/A self msg N/A N/A N/A Convenient shortcut for self.stdout.write(); adds newline if necessary. N/A msg N/A N/A N/A N/A N/A self stdout write msg N/A N/A N/A msg N/A -1 N/A N/A N/A N/A N/A self stdout write N/A perror N/A N/A self errmsg statement N/A None N/A N/A N/A self debug N/A N/A N/A N/A traceback print_exc N/A N/A str errmsg N/A pfeedback N/A N/A self msg N/A N/A N/A For printing nonessential feedback.  Can be silenced with `quiet`.
           Inclusion in redirected output is controlled by `feedback_to_output`. N/A N/A N/A self quiet N/A N/A N/A self feedback_to_output N/A N/A N/A N/A self poutput msg N/A N/A msg N/A N/A _STOP_AND_EXIT True N/A _STOP_SCRIPT_NO_EXIT -999 N/A editor N/A N/A N/A os environ get EDITOR N/A N/A editor N/A N/A N/A N/A N/A sys platform N/A 3 win N/A N/A editor notepad N/A N/A editor N/A gedit kate vim vi emacs nano pico N/A N/A N/A _which editor N/A N/A N/A colorcodes N/A bold cyan blue red magenta green underline N/A True False [1m [22m N/A True False [36m [39m N/A True False [34m [39m N/A True False [31m [39m N/A True False [35m [39m N/A True False [32m [39m N/A True False [4m [24m N/A colors N/A N/A N/A platform system Windows colorize N/A N/A self val color N/A N/A N/A Given a string (``val``), returns that string wrapped in UNIX-style
           special characters that turn on (and then off) text color and style.
           If the ``colors`` environment paramter is ``False``, or the application
           is running on Windows, will return ``val`` unchanged.
           ``color`` should be one of the supported strings (or styles):
           red/blue/green/cyan/magenta, bold, underline N/A N/A N/A self colors N/A N/A self stdout N/A self initial_stdout N/A N/A N/A N/A N/A N/A N/A self colorcodes N/A color N/A True val N/A N/A N/A self colorcodes N/A color N/A False N/A val N/A do_cmdenvironment N/A N/A self args N/A N/A N/A Summary report of interactive parameters. N/A N/A N/A N/A self stdout write N/A 
        Commands are %(casesensitive)scase-sensitive.
        Commands may be terminated with: %(terminators)s
        Settable parameters: %(settable)s
 N/A casesensitive terminators settable N/A N/A N/A self case_insensitive not  N/A str N/A self terminators N/A N/A join N/A self settable N/A do_help N/A N/A self arg N/A N/A N/A arg N/A N/A funcname N/A N/A self func_named arg N/A funcname N/A N/A fn N/A getattr self funcname N/A N/A N/A N/A N/A N/A fn optionParser print_help file N/A self stdout N/A N/A N/A AttributeError N/A N/A N/A N/A N/A cmd Cmd do_help self N/A funcname N/A 3 N/A N/A N/A N/A N/A cmd Cmd do_help self arg N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A cmd Cmd __init__ self args kwargs N/A N/A self initial_stdout N/A sys stdout N/A N/A self history N/A History N/A N/A self pystate N/A N/A N/A self shortcuts N/A sorted N/A N/A N/A self shortcuts items reverse True N/A N/A self keywords N/A N/A self reserved_words N/A N/A fname N/A 3 N/A fname N/A dir self N/A N/A fname startswith do_ N/A N/A N/A self _init_parser N/A do_shortcuts N/A N/A self args N/A N/A N/A Lists single-key shortcuts available. N/A result N/A N/A join N/A N/A %s: %s N/A N/A sc N/A 0 N/A sc N/A 1 N/A sc N/A sorted N/A self shortcuts N/A N/A N/A N/A self stdout write N/A Single-key shortcuts for other commands:
%s
 result N/A N/A prefixParser N/A N/A pyparsing Empty N/A commentGrammars N/A N/A pyparsing Or N/A N/A pyparsing pythonStyleComment N/A pyparsing cStyleComment N/A N/A N/A commentGrammars addParseAction N/A N/A N/A x N/A N/A commentInProgress N/A N/A N/A pyparsing Literal /* N/A N/A pyparsing SkipTo N/A N/A pyparsing stringEnd */ N/A terminators N/A ; N/A blankLinesAllowed False N/A multilineCommands N/A _init_parser N/A N/A self N/A N/A N/A 
        >>> c = Cmd()
        >>> c.multilineCommands = ['multiline']
        >>> c.case_insensitive = True
        >>> c._init_parser()
        >>> print (c.parser.parseString('').dump())
        []
        >>> print (c.parser.parseString('').dump())
        []
        >>> print (c.parser.parseString('/* empty command */').dump())
        []
        >>> print (c.parser.parseString('plainword').dump())
        ['plainword', '']
        - command: plainword
        - statement: ['plainword', '']
          - command: plainword
        >>> print (c.parser.parseString('termbare;').dump())
        ['termbare', '', ';', '']
        - command: termbare
        - statement: ['termbare', '', ';']
          - command: termbare
          - terminator: ;
        - terminator: ;
        >>> print (c.parser.parseString('termbare; suffx').dump())
        ['termbare', '', ';', 'suffx']
        - command: termbare
        - statement: ['termbare', '', ';']
          - command: termbare
          - terminator: ;
        - suffix: suffx
        - terminator: ;
        >>> print (c.parser.parseString('barecommand').dump())
        ['barecommand', '']
        - command: barecommand
        - statement: ['barecommand', '']
          - command: barecommand
        >>> print (c.parser.parseString('COMmand with args').dump())
        ['command', 'with args']
        - args: with args
        - command: command
        - statement: ['command', 'with args']
          - args: with args
          - command: command
        >>> print (c.parser.parseString('command with args and terminator; and suffix').dump())
        ['command', 'with args and terminator', ';', 'and suffix']
        - args: with args and terminator
        - command: command
        - statement: ['command', 'with args and terminator', ';']
          - args: with args and terminator
          - command: command
          - terminator: ;
        - suffix: and suffix
        - terminator: ;
        >>> print (c.parser.parseString('simple | piped').dump())
        ['simple', '', '|', ' piped']
        - command: simple
        - pipeTo:  piped
        - statement: ['simple', '']
          - command: simple
        >>> print (c.parser.parseString('double-pipe || is not a pipe').dump())
        ['double', '-pipe || is not a pipe']
        - args: -pipe || is not a pipe
        - command: double
        - statement: ['double', '-pipe || is not a pipe']
          - args: -pipe || is not a pipe
          - command: double
        >>> print (c.parser.parseString('command with args, terminator;sufx | piped').dump())
        ['command', 'with args, terminator', ';', 'sufx', '|', ' piped']
        - args: with args, terminator
        - command: command
        - pipeTo:  piped
        - statement: ['command', 'with args, terminator', ';']
          - args: with args, terminator
          - command: command
          - terminator: ;
        - suffix: sufx
        - terminator: ;
        >>> print (c.parser.parseString('output into > afile.txt').dump())
        ['output', 'into', '>', 'afile.txt']
        - args: into
        - command: output
        - output: >
        - outputTo: afile.txt
        - statement: ['output', 'into']
          - args: into
          - command: output
        >>> print (c.parser.parseString('output into;sufx | pipethrume plz > afile.txt').dump())
        ['output', 'into', ';', 'sufx', '|', ' pipethrume plz', '>', 'afile.txt']
        - args: into
        - command: output
        - output: >
        - outputTo: afile.txt
        - pipeTo:  pipethrume plz
        - statement: ['output', 'into', ';']
          - args: into
          - command: output
          - terminator: ;
        - suffix: sufx
        - terminator: ;
        >>> print (c.parser.parseString('output to paste buffer >> ').dump())
        ['output', 'to paste buffer', '>>', '']
        - args: to paste buffer
        - command: output
        - output: >>
        - statement: ['output', 'to paste buffer']
          - args: to paste buffer
          - command: output
        >>> print (c.parser.parseString('ignore the /* commented | > */ stuff;').dump())
        ['ignore', 'the /* commented | > */ stuff', ';', '']
        - args: the /* commented | > */ stuff
        - command: ignore
        - statement: ['ignore', 'the /* commented | > */ stuff', ';']
          - args: the /* commented | > */ stuff
          - command: ignore
          - terminator: ;
        - terminator: ;
        >>> print (c.parser.parseString('has > inside;').dump())
        ['has', '> inside', ';', '']
        - args: > inside
        - command: has
        - statement: ['has', '> inside', ';']
          - args: > inside
          - command: has
          - terminator: ;
        - terminator: ;
        >>> print (c.parser.parseString('multiline has > inside an unfinished command').dump())
        ['multiline', ' has > inside an unfinished command']
        - multilineCommand: multiline
        >>> print (c.parser.parseString('multiline has > inside;').dump())
        ['multiline', 'has > inside', ';', '']
        - args: has > inside
        - multilineCommand: multiline
        - statement: ['multiline', 'has > inside', ';']
          - args: has > inside
          - multilineCommand: multiline
          - terminator: ;
        - terminator: ;
        >>> print (c.parser.parseString('multiline command /* with comment in progress;').dump())
        ['multiline', ' command /* with comment in progress;']
        - multilineCommand: multiline
        >>> print (c.parser.parseString('multiline command /* with comment complete */ is done;').dump())
        ['multiline', 'command /* with comment complete */ is done', ';', '']
        - args: command /* with comment complete */ is done
        - multilineCommand: multiline
        - statement: ['multiline', 'command /* with comment complete */ is done', ';']
          - args: command /* with comment complete */ is done
          - multilineCommand: multiline
          - terminator: ;
        - terminator: ;
        >>> print (c.parser.parseString('multiline command ends\n\n').dump())
        ['multiline', 'command ends', '\n', '\n']
        - args: command ends
        - multilineCommand: multiline
        - statement: ['multiline', 'command ends', '\n', '\n']
          - args: command ends
          - multilineCommand: multiline
          - terminator: ['\n', '\n']
        - terminator: ['\n', '\n']
        >>> print (c.parser.parseString('multiline command "with term; ends" now\n\n').dump())
        ['multiline', 'command "with term; ends" now', '\n', '\n']
        - args: command "with term; ends" now
        - multilineCommand: multiline
        - statement: ['multiline', 'command "with term; ends" now', '\n', '\n']
          - args: command "with term; ends" now
          - multilineCommand: multiline
          - terminator: ['\n', '\n']
        - terminator: ['\n', '\n']
        >>> print (c.parser.parseString('what if "quoted strings /* seem to " start comments?').dump())
        ['what', 'if "quoted strings /* seem to " start comments?']
        - args: if "quoted strings /* seem to " start comments?
        - command: what
        - statement: ['what', 'if "quoted strings /* seem to " start comments?']
          - args: if "quoted strings /* seem to " start comments?
          - command: what
         N/A outputParser N/A N/A N/A N/A N/A pyparsing Literal N/A N/A self redirector 2 N/A N/A N/A pyparsing WordStart N/A self redirector N/A N/A pyparsing Regex N/A [^=] N/A self redirector output N/A terminatorParser N/A N/A N/A pyparsing Or N/A N/A N/A N/A hasattr t parseString t N/A N/A pyparsing Literal t N/A t N/A self terminators terminator N/A stringEnd N/A N/A pyparsing stringEnd 
EOF N/A N/A self multilineCommand N/A N/A N/A pyparsing Or N/A N/A N/A pyparsing Keyword c caseless N/A self case_insensitive N/A c N/A self multilineCommands multilineCommand N/A oneLineCommand N/A N/A N/A N/A self multilineCommand N/A N/A pyparsing Word N/A self legalChars command N/A pipe N/A N/A pyparsing Keyword | identChars | N/A N/A N/A N/A N/A N/A self commentGrammars ignore N/A pyparsing quotedString setParseAction N/A N/A N/A x N/A N/A doNotParse N/A N/A N/A self commentGrammars N/A self commentInProgress N/A pyparsing quotedString N/A afterElements N/A N/A N/A pyparsing Optional N/A pipe N/A N/A N/A pyparsing SkipTo N/A outputParser stringEnd ignore doNotParse pipeTo N/A N/A pyparsing Optional N/A outputParser N/A N/A N/A N/A N/A pyparsing SkipTo stringEnd ignore doNotParse setParseAction N/A N/A N/A x N/A N/A N/A N/A x N/A 0 strip outputTo N/A N/A self case_insensitive N/A N/A N/A N/A N/A self multilineCommand setParseAction N/A N/A N/A x N/A N/A N/A N/A x N/A 0 lower N/A N/A N/A oneLineCommand setParseAction N/A N/A N/A x N/A N/A N/A N/A x N/A 0 lower N/A N/A self blankLinesAllowed N/A N/A N/A self blankLineTerminationParser N/A pyparsing NoMatch N/A N/A N/A self blankLineTerminator N/A N/A N/A pyparsing lineEnd N/A pyparsing lineEnd terminator N/A N/A N/A N/A self blankLineTerminator setResultsName terminator N/A N/A self blankLineTerminationParser N/A N/A N/A N/A N/A self multilineCommand oneLineCommand N/A N/A N/A N/A N/A pyparsing SkipTo N/A self blankLineTerminator ignore doNotParse setParseAction N/A N/A N/A x N/A N/A N/A N/A x N/A 0 strip args N/A self blankLineTerminator statement N/A N/A self multilineParser N/A N/A N/A N/A N/A N/A N/A self multilineCommand oneLineCommand N/A N/A N/A N/A N/A pyparsing SkipTo terminatorParser ignore doNotParse setParseAction N/A N/A N/A x N/A N/A N/A N/A x N/A 0 strip args terminatorParser statement N/A N/A N/A N/A N/A pyparsing SkipTo N/A N/A outputParser pipe stringEnd ignore doNotParse setParseAction N/A N/A N/A x N/A N/A N/A N/A x N/A 0 strip suffix afterElements N/A N/A N/A N/A self multilineParser ignore N/A self commentInProgress N/A N/A self singleLineParser N/A N/A N/A N/A oneLineCommand N/A N/A N/A N/A N/A pyparsing SkipTo N/A N/A N/A terminatorParser stringEnd pipe outputParser ignore doNotParse setParseAction N/A N/A N/A x N/A N/A N/A N/A x N/A 0 strip args statement N/A N/A pyparsing Optional terminatorParser afterElements N/A N/A self blankLineTerminationParser N/A N/A N/A self blankLineTerminationParser setResultsName statement N/A N/A self parser N/A N/A self prefixParser N/A N/A N/A N/A stringEnd N/A self multilineParser N/A self singleLineParser N/A self blankLineTerminationParser N/A N/A self multilineCommand N/A N/A pyparsing SkipTo stringEnd ignore doNotParse N/A N/A N/A N/A self parser ignore N/A self commentGrammars N/A inputMark N/A N/A pyparsing Literal < N/A N/A N/A inputMark setParseAction N/A N/A N/A x N/A N/A fileName N/A N/A pyparsing Word N/A N/A self legalChars /\ N/A inputFrom N/A fileName inputFrom N/A N/A N/A inputFrom setParseAction replace_with_file_contents N/A N/A self inputParser N/A N/A N/A N/A inputMark N/A N/A pyparsing Optional inputFrom N/A N/A pyparsing Optional > N/A N/A pyparsing Optional fileName N/A N/A pyparsing stringEnd | N/A N/A N/A N/A self inputParser ignore N/A self commentInProgress N/A preparse N/A N/A self raw N/A kwargs N/A N/A raw N/A postparse N/A N/A self parseResult N/A N/A N/A parseResult N/A parsed N/A N/A self raw N/A kwargs N/A N/A N/A isinstance raw ParsedString N/A N/A p raw N/A N/A s N/A N/A self preparse raw kwargs N/A s N/A N/A N/A self inputParser transformString N/A N/A s lstrip N/A s N/A N/A N/A self commentGrammars transformString s N/A N/A shortcut expansion N/A self shortcuts N/A N/A N/A N/A N/A N/A s lower startswith shortcut N/A N/A s N/A N/A s replace shortcut N/A expansion 1 N/A N/A result N/A N/A N/A self parser parseString s N/A N/A result N/A raw raw N/A N/A result N/A command N/A N/A result multilineCommand N/A result command N/A result N/A N/A self postparse result N/A p N/A ParsedString N/A result args N/A N/A p parsed result N/A N/A p parser N/A self parsed N/A N/A key val N/A N/A kwargs items N/A N/A N/A N/A p parsed N/A key val N/A p N/A postparsing_precmd N/A N/A self statement N/A N/A N/A stop 0 N/A N/A stop statement N/A postparsing_postcmd N/A N/A self stop N/A N/A N/A stop N/A func_named N/A N/A self arg N/A N/A N/A result None N/A target N/A do_ arg N/A N/A target N/A dir self N/A N/A result target N/A N/A N/A self abbrev N/A N/A funcs N/A fname N/A fname N/A self keywords N/A N/A fname startswith arg N/A N/A N/A len funcs 1 N/A N/A result N/A do_ N/A funcs N/A 0 N/A result N/A onecmd_plus_hooks N/A N/A self line N/A N/A N/A stop 0 N/A N/A N/A N/A N/A statement N/A N/A self complete_statement line N/A N/A stop statement N/A N/A self postparsing_precmd statement N/A stop N/A N/A N/A N/A self postparsing_postcmd stop N/A N/A N/A N/A statement parsed command N/A self excludeFromHistory N/A N/A N/A N/A N/A self history append N/A N/A statement parsed raw N/A N/A N/A N/A N/A self redirect_output statement N/A timestart N/A N/A N/A datetime datetime now N/A statement N/A N/A self precmd statement N/A stop N/A N/A self onecmd statement N/A stop N/A N/A self postcmd stop statement N/A N/A self timing N/A N/A N/A N/A self pfeedback N/A Elapsed: %s N/A str N/A N/A N/A N/A datetime datetime now timestart N/A N/A N/A N/A self restore_output statement N/A N/A N/A EmptyStatement N/A N/A 0 N/A N/A Exception N/A e N/A N/A N/A N/A self perror N/A str e statement N/A N/A N/A N/A self postparsing_postcmd stop N/A complete_statement N/A N/A self line N/A N/A N/A Keep accepting lines of input until the command is complete. N/A N/A N/A line N/A N/A N/A N/A N/A N/A N/A pyparsing Or N/A self commentGrammars setParseAction N/A N/A N/A x N/A transformString line N/A N/A N/A EmptyStatement N/A statement N/A N/A self parsed line N/A N/A N/A N/A statement parsed multilineCommand N/A N/A N/A statement parsed terminator N/A N/A statement N/A %s
%s N/A N/A N/A statement parsed raw N/A N/A self pseudo_raw_input N/A self continuation_prompt N/A statement N/A N/A self parsed statement N/A N/A N/A N/A statement parsed command N/A N/A N/A EmptyStatement N/A statement N/A redirect_output N/A N/A self statement N/A N/A N/A N/A N/A statement parsed pipeTo N/A N/A N/A self kept_state N/A Statekeeper self N/A stdout N/A N/A self kept_sys N/A Statekeeper sys N/A stdout N/A N/A self redirect N/A N/A subprocess Popen N/A N/A statement parsed pipeTo shell True stdout N/A subprocess PIPE stdin N/A subprocess PIPE N/A N/A sys stdout N/A self stdout N/A N/A self redirect stdin N/A N/A N/A N/A statement parsed output N/A N/A N/A N/A N/A N/A statement parsed outputTo N/A can_clip N/A N/A N/A EnvironmentError Cannot redirect to paste buffer; install ``xclip`` and re-run to enable N/A N/A self kept_state N/A Statekeeper self N/A stdout N/A N/A self kept_sys N/A Statekeeper sys N/A stdout N/A N/A N/A statement parsed outputTo N/A N/A mode w N/A N/A N/A N/A statement parsed output N/A 2 N/A self redirector N/A N/A mode a N/A N/A sys stdout N/A self stdout N/A open N/A N/A N/A os path expanduser N/A N/A statement parsed outputTo mode N/A N/A N/A sys stdout N/A self stdout N/A N/A tempfile TemporaryFile mode w+ N/A N/A N/A N/A statement parsed output >> N/A N/A N/A N/A N/A self stdout write N/A get_paste_buffer N/A restore_output N/A N/A self statement N/A N/A N/A N/A self kept_state N/A N/A N/A N/A statement parsed output N/A N/A N/A N/A N/A statement parsed outputTo N/A N/A N/A N/A N/A self stdout seek 0 N/A N/A write_to_paste_buffer N/A N/A N/A self stdout read N/A N/A N/A N/A statement parsed pipeTo N/A N/A result N/A N/A N/A self redirect communicate N/A N/A N/A N/A N/A N/A self kept_state stdout write N/A result N/A N/A N/A N/A self stdout close N/A N/A N/A N/A self kept_state restore N/A N/A N/A N/A self kept_sys restore N/A N/A self kept_state None N/A onecmd N/A N/A self line N/A N/A N/A Interpret the argument as though it had been typed in response
        to the prompt.

        This may be overridden, but should not normally need to be;
        see the precmd() and postcmd() methods for useful execution hooks.
        The return value is a flag indicating whether interpretation of
        commands by the interpreter should stop.

        This (`cmd2`) version of `onecmd` already override's `cmd`'s `onecmd`.

         N/A statement N/A N/A self parsed line N/A N/A self lastcmd N/A N/A statement parsed raw N/A funcname N/A N/A self func_named N/A N/A statement parsed command N/A N/A funcname N/A N/A N/A N/A self _default statement N/A N/A N/A func N/A getattr self funcname N/A N/A N/A AttributeError N/A N/A N/A N/A self _default statement N/A stop N/A func statement N/A stop N/A _default N/A N/A self statement N/A N/A N/A arg N/A N/A statement full_parsed_statement N/A N/A self default_to_shell N/A N/A result N/A N/A os system arg N/A N/A result N/A N/A N/A N/A self postparsing_postcmd None N/A N/A N/A self postparsing_postcmd N/A N/A self default arg N/A pseudo_raw_input N/A N/A self prompt N/A N/A N/A copied from cmd's cmdloop; like raw_input, but accounts for changed stdin, stdout N/A N/A self use_rawinput N/A N/A N/A N/A line N/A raw_input prompt N/A N/A N/A EOFError N/A N/A line EOF N/A N/A N/A N/A N/A self stdout write prompt N/A N/A N/A N/A self stdout flush N/A line N/A N/A N/A self stdin readline N/A N/A N/A len line N/A N/A line EOF N/A N/A N/A N/A line N/A -1 N/A N/A line N/A line N/A -1 N/A line N/A _cmdloop N/A N/A self intro N/A None N/A N/A Repeatedly issue a prompt, accept input, parse an initial prefix
        off the received input, and dispatch to action methods, passing them
        the remainder of the line as argument.
         N/A N/A N/A self preloop N/A N/A N/A self use_rawinput N/A self completekey N/A N/A N/A N/A readline N/A N/A self old_completer N/A N/A readline get_completer N/A N/A N/A readline set_completer N/A self complete N/A N/A N/A readline parse_and_bind N/A N/A self completekey : complete N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A intro None N/A N/A N/A self intro intro N/A N/A self intro N/A N/A N/A N/A N/A self stdout write N/A N/A str N/A self intro N/A stop None N/A N/A stop N/A N/A N/A self cmdqueue N/A N/A line N/A N/A N/A self cmdqueue pop 0 N/A N/A line N/A N/A self pseudo_raw_input N/A self prompt N/A N/A N/A self echo N/A isinstance N/A self stdin file N/A N/A N/A N/A N/A self stdout write N/A line N/A stop N/A N/A self onecmd_plus_hooks line N/A N/A N/A self postloop N/A N/A N/A N/A self use_rawinput N/A self completekey N/A N/A N/A N/A readline N/A N/A N/A readline set_completer N/A self old_completer N/A N/A N/A ImportError N/A N/A N/A stop N/A do_EOF N/A N/A self arg N/A N/A N/A N/A self _STOP_SCRIPT_NO_EXIT N/A N/A do_eof do_EOF do_quit N/A N/A self arg N/A N/A N/A N/A self _STOP_AND_EXIT N/A N/A do_exit do_quit N/A do_q do_quit select N/A N/A self options prompt N/A Your choice?  N/A N/A Presents a numbered menu to the user.  Modelled after
           the bash shell's SELECT.  Returns the item chosen.

           Argument ``options`` can be:

             | a single string -> will be split into one-word options
             | a list of strings -> will be offered as options
             | a list of tuples -> interpreted as (value, text), so
                                   that the return value can differ from
                                   the text advertised to the user  N/A N/A isinstance options basestring N/A N/A options N/A zip N/A N/A options split N/A N/A options split N/A fulloptions N/A N/A opt options N/A N/A N/A isinstance opt basestring N/A N/A N/A N/A fulloptions append N/A opt opt N/A N/A N/A N/A N/A N/A fulloptions append N/A N/A opt N/A 0 N/A opt N/A 1 N/A N/A N/A IndexError N/A N/A N/A N/A fulloptions append N/A N/A opt N/A 0 N/A opt N/A 0 N/A N/A idx N/A value text N/A enumerate fulloptions N/A N/A N/A N/A self poutput N/A   %2d. %s
 N/A N/A idx 1 text N/A True N/A N/A response N/A raw_input prompt N/A N/A N/A response N/A int response N/A result N/A N/A fulloptions N/A N/A response 1 N/A 0 N/A N/A N/A N/A ValueError N/A N/A N/A result N/A do_show N/A N/A self arg opts N/A N/A N/A Shows value of a parameter. N/A param N/A N/A N/A N/A arg strip lower N/A result N/A N/A maxlen 0 N/A p N/A self settable N/A N/A N/A N/A param N/A N/A p startswith param N/A N/A N/A result N/A p N/A %s: %s N/A p N/A str N/A getattr self p N/A maxlen N/A max maxlen N/A len N/A result N/A p N/A result N/A N/A p N/A sorted result N/A N/A N/A opts long N/A N/A N/A N/A self poutput N/A %s # %s N/A N/A N/A N/A result N/A p ljust maxlen N/A N/A self settable N/A p N/A N/A N/A N/A self poutput N/A result N/A p N/A N/A N/A NotImplementedError N/A Parameter '%s' not supported (type 'show' for list of parameters). param N/A N/A options N/A N/A make_option -l --long action store_true help describe function of parameter do_set N/A N/A self arg N/A N/A N/A 
        Sets a cmd2 parameter.  Accepts abbreviated parameter names so long
        as there is no ambiguity.  Call without arguments for a list of
        settable parameters with their values. N/A N/A N/A N/A statement paramName val N/A N/A N/A N/A arg parsed raw split None 2 N/A val N/A N/A val strip N/A paramName N/A N/A N/A N/A paramName strip lower N/A N/A paramName N/A self settable N/A N/A hits N/A p N/A p N/A self settable N/A N/A p startswith paramName N/A N/A N/A len hits 1 N/A N/A paramName N/A hits N/A 0 N/A N/A N/A N/A self do_show paramName N/A currentVal N/A getattr self paramName N/A N/A N/A N/A val N/A 0 N/A val N/A -1 N/A N/A val N/A 0 N/A ' " N/A N/A val N/A val N/A 1 -1 N/A N/A val N/A cast currentVal val N/A N/A setattr self paramName val N/A N/A N/A N/A self stdout write N/A %s - was: %s
now: %s
 N/A paramName currentVal val N/A N/A currentVal val N/A N/A N/A N/A onchange_hook N/A getattr self N/A _onchange_%s paramName N/A N/A onchange_hook old currentVal new val N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A ValueError AttributeError NotSettableError N/A e N/A N/A N/A N/A self do_show arg N/A do_pause N/A N/A self arg N/A N/A N/A Displays the specified text then waits for the user to press RETURN. N/A N/A raw_input N/A arg N/A do_shell N/A N/A self arg N/A N/A N/A execute a command as if at the OS prompt. N/A N/A N/A os system arg N/A do_py N/A N/A self arg N/A N/A N/A 
        py <command>: Executes a Python command.
        py: Enters interactive Python mode.
        End with ``Ctrl-D`` (Unix) / ``Ctrl-Z`` (Windows), ``quit()``, '`exit()``.
        Non-python commands can be issued with ``cmd("your command")``.
        Run python code from external files with ``run("filename.py")``
         N/A N/A N/A self pystate N/A self self N/A arg N/A N/A N/A N/A N/A arg parsed raw N/A 2 strip N/A localvars N/A N/A N/A self locals_in_py N/A self pystate N/A N/A interp N/A InteractiveConsole locals localvars N/A N/A N/A interp runcode import sys, os;sys.path.insert(0, os.getcwd()) N/A N/A N/A arg strip N/A N/A N/A N/A interp runcode arg N/A quit N/A N/A N/A N/A N/A EmbeddedConsoleExit N/A onecmd_plus_hooks N/A N/A arg N/A N/A N/A N/A N/A self onecmd_plus_hooks N/A arg N/A run N/A N/A arg N/A N/A N/A N/A N/A file N/A open arg N/A N/A N/A interp runcode N/A N/A file read N/A N/A N/A file close N/A N/A N/A IOError N/A e N/A N/A N/A N/A self perror e N/A N/A N/A N/A self pystate N/A quit quit N/A N/A N/A self pystate N/A exit quit N/A N/A N/A self pystate N/A cmd onecmd_plus_hooks N/A N/A N/A self pystate N/A run run N/A N/A N/A cprt Type "help", "copyright", "credits" or "license" for more information. N/A keepstate N/A Statekeeper sys N/A stdin stdout N/A N/A sys stdout N/A self stdout N/A N/A sys stdin N/A self stdin N/A N/A N/A interp interact banner N/A Python %s on %s
%s
(%s)
%s N/A N/A sys version N/A sys platform cprt N/A N/A self __class__ __name__ N/A N/A self do_py __doc__ N/A N/A N/A EmbeddedConsoleExit N/A N/A N/A N/A N/A keepstate restore N/A do_history N/A N/A self arg opts N/A N/A N/A history [arg]: lists past commands issued

        | no arg:         list all
        | arg is integer: list one history item, by index
        | arg is string:  string search
        | arg is /enclosed in forward-slashes/: regular expression search
         N/A arg N/A N/A history N/A N/A N/A self history get arg N/A N/A history N/A self history N/A hi history N/A N/A N/A opts script N/A N/A N/A N/A self poutput hi N/A N/A N/A N/A N/A self stdout write N/A N/A hi pr N/A N/A options N/A N/A make_option -s --script action store_true help Script format; no separation lines arg_desc (limit on which commands to include) last_matching N/A N/A self arg N/A N/A N/A N/A N/A arg N/A N/A N/A N/A N/A N/A self history get arg N/A -1 N/A N/A N/A N/A self history N/A -1 N/A N/A N/A IndexError N/A N/A None N/A do_list N/A N/A self arg N/A N/A N/A list [arg]: lists last command issued

        no arg -> list most recent command
        arg is integer -> list one history item, by index
        a..b, a:b, a:, ..b -> list spans from a (or start) to b (or end)
        arg is string -> list all commands matching string search
        arg is /enclosed in forward-slashes/ -> regular expression search
         N/A N/A N/A history N/A N/A N/A self history span N/A arg -1 N/A N/A N/A IndexError N/A N/A history N/A N/A N/A self history search arg N/A hi history N/A N/A N/A N/A self poutput N/A N/A hi pr N/A N/A do_hi do_history N/A do_l do_list N/A do_li do_list do_ed N/A N/A self arg N/A N/A N/A ed: edit most recent command in text editor
        ed [N]: edit numbered command from history
        ed [filename]: edit specified file name

        commands are run after editor is closed.
        "set edit (program-name)" or set  EDITOR environment variable
        to control which editing program is used. N/A N/A N/A self editor N/A N/A N/A EnvironmentError Please use 'set editor' to specify your text editing program of choice. N/A filename N/A self default_file_name N/A arg N/A N/A N/A N/A buffer N/A N/A self last_matching N/A int arg N/A N/A N/A ValueError N/A N/A filename arg N/A buffer N/A N/A buffer N/A N/A self history N/A -1 N/A buffer N/A N/A f N/A open N/A N/A N/A os path expanduser filename w N/A N/A N/A f write N/A buffer N/A N/A N/A f close N/A N/A N/A os system N/A %s %s N/A N/A self editor filename N/A N/A N/A self do__load filename N/A N/A do_edit do_ed N/A saveparser N/A N/A N/A N/A N/A pyparsing Optional N/A N/A N/A pyparsing Word N/A pyparsing nums * idx N/A N/A N/A pyparsing Optional N/A N/A pyparsing Word N/A legalChars /\ fname N/A pyparsing stringEnd do_save N/A N/A self arg N/A N/A N/A `save [N] [filename.ext]`

        Saves command from history to file.

        | N => Number of command (from history), or `*`;
        |      most recent command if omitted N/A N/A N/A args N/A N/A N/A self saveparser parseString arg N/A N/A N/A N/A pyparsing ParseException N/A N/A N/A N/A self perror N/A Could not understand save target %s arg N/A N/A SyntaxError N/A N/A self do_save __doc__ N/A fname N/A N/A args fname N/A self default_file_name N/A N/A N/A args idx * N/A N/A saveme N/A N/A join N/A N/A self history N/A N/A N/A N/A args idx N/A N/A saveme N/A N/A self history N/A N/A N/A int N/A args idx 1 N/A N/A saveme N/A N/A self history N/A -1 N/A N/A N/A f N/A open N/A N/A N/A os path expanduser fname w N/A N/A N/A f write saveme N/A N/A N/A f close N/A N/A N/A self pfeedback N/A Saved to %s fname N/A N/A N/A Exception N/A e N/A N/A N/A N/A self perror N/A Error saving %s fname N/A N/A read_file_or_url N/A N/A self fname N/A N/A N/A N/A isinstance fname file N/A N/A result N/A open fname r N/A N/A match N/A N/A N/A self urlre match fname N/A match N/A N/A result N/A N/A urllib urlopen N/A N/A match group 1 N/A N/A fname N/A N/A N/A os path expanduser fname N/A N/A N/A result N/A open N/A N/A N/A os path expanduser fname r N/A N/A N/A IOError N/A N/A result N/A open N/A %s.%s N/A N/A N/A N/A os path expanduser fname N/A self defaultExtension r N/A result N/A do__relative_load N/A N/A self arg N/A None N/A N/A 
        Runs commands in script at file or URL; if this is called from within an
        already-running script, the filename will be interpreted relative to the
        already-running script's directory. N/A arg N/A N/A arg N/A N/A arg split None 1 N/A N/A targetname args N/A N/A arg N/A 0 N/A N/A N/A arg N/A 1 N/A N/A 0 N/A targetname N/A N/A N/A os path join N/A N/A self current_script_dir targetname N/A N/A N/A self do__load N/A %s %s N/A targetname args N/A N/A urlre N/A N/A re compile (https?://[-\w\./]+) do_load N/A N/A self arg N/A None N/A N/A Runs script of command(s) from a file or URL. N/A N/A arg None N/A N/A targetname N/A self default_file_name N/A N/A arg N/A N/A arg split None 1 N/A N/A targetname args N/A N/A arg N/A 0 N/A N/A N/A N/A N/A arg N/A 1 N/A N/A 0 strip N/A N/A N/A target N/A N/A self read_file_or_url targetname N/A N/A N/A IOError N/A e N/A N/A N/A N/A self perror N/A Problem accessing script from %s: 
%s N/A targetname e N/A N/A keepstate N/A Statekeeper self N/A stdin use_rawinput prompt continuation_prompt current_script_dir N/A N/A self stdin target N/A N/A self use_rawinput False N/A N/A self prompt N/A self continuation_prompt N/A N/A self current_script_dir N/A N/A N/A N/A os path split targetname N/A 0 N/A stop N/A N/A self _cmdloop N/A N/A N/A N/A self stdin close N/A N/A N/A keepstate restore N/A N/A self lastcmd N/A N/A stop N/A stop N/A self _STOP_SCRIPT_NO_EXIT N/A N/A do__load do_load do_run N/A N/A self arg N/A N/A N/A run [arg]: re-runs an earlier command

        no arg -> run most recent command
        arg is integer -> run one history item, by index
        arg is string -> run most recent command by string search
        arg is /enclosed in forward-slashes/ -> run most recent by regex
         N/A run [N]: runs the SQL that was run N commands ago N/A runme N/A N/A self last_matching arg N/A N/A N/A self pfeedback runme N/A runme N/A N/A stop N/A N/A self onecmd_plus_hooks runme N/A N/A do_r do_run fileimport N/A N/A self statement source N/A N/A N/A N/A N/A f N/A open N/A N/A N/A os path expanduser source N/A N/A N/A IOError N/A N/A N/A N/A N/A self stdout write N/A Couldn't read from file %s
 source N/A N/A data N/A N/A f read N/A N/A N/A f close N/A data N/A runTranscriptTests N/A N/A self callargs N/A N/A TestMyAppCase N/A Cmd2TestCase N/A N/A CmdApp N/A self __class__ N/A N/A N/A N/A self __class__ testfiles callargs N/A N/A sys argv N/A N/A N/A sys argv N/A 0 N/A testcase N/A TestMyAppCase N/A runner N/A N/A unittest TextTestRunner N/A result N/A N/A runner run testcase N/A N/A N/A result printErrors N/A run_commands_at_invocation N/A N/A self callargs N/A N/A N/A initial_command callargs N/A N/A N/A N/A self onecmd_plus_hooks N/A initial_command N/A N/A N/A self _STOP_AND_EXIT N/A cmdloop N/A N/A self N/A N/A N/A parser N/A N/A optparse OptionParser N/A N/A N/A parser add_option -t --test dest test action store_true help Test against transcript(s) in FILE (wildcards OK) N/A N/A callopts callargs N/A N/A parser parse_args N/A N/A callopts test N/A N/A N/A N/A self runTranscriptTests callargs N/A N/A N/A N/A N/A self run_commands_at_invocation callargs N/A N/A N/A N/A self _cmdloop N/A N/A HistoryItem N/A str N/A N/A listformat -------------------------[%d]
%s
 __init__ N/A N/A self instr N/A N/A N/A N/A N/A str __init__ self N/A N/A self lowercase N/A N/A self lower N/A N/A self idx None N/A pr N/A N/A self N/A N/A N/A N/A N/A self listformat N/A N/A self idx N/A str self N/A N/A History N/A list N/A N/A A list of HistoryItems that knows how to respond to user requests.
    >>> h = History([HistoryItem('first'), HistoryItem('second'), HistoryItem('third'), HistoryItem('fourth')])
    >>> h.span('-2..')
    ['third', 'fourth']
    >>> h.span('2..3')
    ['second', 'third']
    >>> h.span('3')
    ['third']
    >>> h.span(':')
    ['first', 'second', 'third', 'fourth']
    >>> h.span('2..')
    ['second', 'third', 'fourth']
    >>> h.span('-1')
    ['fourth']
    >>> h.span('-2..-3')
    ['third', 'second']
    >>> h.search('o')
    ['second', 'fourth']
    >>> h.search('/IR/')
    ['first', 'third']
     zero_based_index N/A N/A self onebased N/A N/A N/A result onebased N/A N/A result 0 N/A N/A result 1 N/A result N/A to_index N/A N/A self raw N/A N/A N/A raw N/A N/A result N/A N/A self zero_based_index N/A int raw N/A N/A result None N/A result N/A search N/A N/A self target N/A N/A N/A target N/A N/A target strip N/A N/A N/A N/A target N/A 0 N/A target N/A -1 / N/A N/A len target 1 N/A N/A target N/A target N/A 1 -1 N/A N/A target N/A N/A re escape target N/A pattern N/A N/A re compile target N/A re IGNORECASE N/A N/A s N/A s self N/A N/A pattern search s N/A N/A spanpattern N/A N/A re compile ^\s*(?P<start>\-?\d+)?\s*(?P<separator>:|(\.{2,}))?\s*(?P<end>\-?\d+)?\s*$ span N/A N/A self raw N/A N/A N/A N/A N/A N/A raw lower N/A * - all N/A N/A raw : N/A results N/A N/A N/A self spanpattern search raw N/A N/A results N/A N/A IndexError N/A N/A N/A N/A results group separator N/A N/A N/A N/A self N/A N/A N/A self to_index N/A N/A results group start N/A start N/A N/A self to_index N/A N/A results group start N/A end N/A N/A self to_index N/A N/A results group end N/A reverse False N/A N/A end None N/A N/A N/A end start N/A N/A N/A start end N/A end start N/A reverse True N/A end 1 N/A result N/A self N/A start end N/A reverse N/A N/A N/A N/A result reverse N/A result N/A N/A rangePattern N/A N/A re compile ^\s*(?P<start>[\d]+)?\s*\-\s*(?P<end>[\d]+)?\s*$ append N/A N/A self new N/A N/A N/A new N/A HistoryItem new N/A N/A N/A list append self new N/A N/A new idx N/A len self N/A extend N/A N/A self new N/A N/A N/A n new N/A N/A N/A N/A self append n N/A get N/A N/A self getme fromEnd N/A None False N/A N/A N/A getme N/A N/A self N/A N/A N/A getme N/A int getme N/A N/A getme 0 N/A N/A N/A self N/A N/A -1 getme N/A N/A N/A N/A self N/A N/A getme 1 N/A N/A N/A IndexError N/A N/A N/A N/A N/A ValueError N/A N/A rangeResult N/A N/A N/A self rangePattern search getme N/A rangeResult N/A N/A start N/A N/A N/A rangeResult group start None N/A end N/A N/A N/A rangeResult group start None N/A start N/A N/A start N/A N/A int start 1 N/A end N/A N/A end N/A int end N/A N/A self N/A start end N/A getme N/A N/A getme strip N/A N/A N/A N/A getme startswith / N/A N/A getme endswith / N/A N/A finder N/A N/A re compile N/A getme N/A 1 -1 N/A N/A N/A re DOTALL N/A re MULTILINE N/A re IGNORECASE isin N/A N/A hi N/A N/A N/A N/A N/A finder search hi N/A N/A isin N/A N/A hi N/A N/A N/A N/A N/A N/A getme lower N/A hi lowercase N/A N/A N/A itm N/A itm self N/A isin itm N/A N/A NotSettableError N/A Exception N/A N/A N/A cast N/A N/A current new N/A N/A N/A Tries to force a new value into the same type as the current. N/A typ N/A type current N/A N/A typ bool N/A N/A N/A N/A N/A bool N/A int new N/A N/A N/A N/A ValueError TypeError N/A N/A N/A N/A N/A new N/A N/A new lower N/A N/A N/A Exception N/A N/A N/A N/A N/A new on N/A N/A new N/A 0 N/A y t N/A N/A True N/A N/A N/A new off N/A N/A new N/A 0 N/A n f N/A N/A False N/A N/A N/A N/A N/A typ new N/A N/A N/A Exception N/A N/A N/A N/A Problem setting parameter (now %s) to %s; incorrect type? N/A current new N/A current N/A Statekeeper N/A object N/A __init__ N/A N/A self obj attribs N/A N/A N/A N/A self obj obj N/A N/A self attribs attribs N/A N/A self obj N/A N/A N/A N/A self save N/A save N/A N/A self N/A N/A N/A attrib N/A self attribs N/A N/A N/A setattr self attrib N/A getattr N/A self obj attrib N/A restore N/A N/A self N/A N/A N/A N/A self obj N/A N/A attrib N/A self attribs N/A N/A N/A setattr N/A self obj attrib N/A getattr self attrib N/A N/A Borg N/A object N/A N/A All instances of any Borg subclass will share state.
    from Python Cookbook, 2nd Ed., recipe 6.16 N/A _shared_state N/A __new__ N/A N/A cls N/A a k N/A N/A obj N/A N/A object __new__ cls a k N/A N/A obj __dict__ N/A cls _shared_state N/A obj N/A N/A OutputTrap N/A Borg N/A N/A Instantiate  an OutputTrap to divert/capture ALL stdout output.  For use in unit testing.
    Call `tearDown()` to return to normal output. __init__ N/A N/A self N/A N/A N/A N/A self contents N/A N/A self old_stdout N/A sys stdout N/A N/A sys stdout self N/A write N/A N/A self txt N/A N/A N/A N/A self contents txt N/A read N/A N/A self N/A N/A N/A result N/A self contents N/A N/A self contents N/A result N/A tearDown N/A N/A self N/A N/A N/A N/A sys stdout N/A self old_stdout N/A N/A self contents N/A N/A Cmd2TestCase N/A N/A unittest TestCase N/A N/A Subclass this, setting CmdApp, to make a unittest.TestCase class
       that will execute the commands in a transcript file and expect the results shown.
       See example.py N/A CmdApp None fetchTranscripts N/A N/A self N/A N/A N/A N/A self transcripts N/A N/A fileset N/A N/A self CmdApp testfiles N/A N/A fname N/A N/A glob glob fileset N/A N/A tfile N/A open fname N/A N/A N/A self transcripts N/A fname N/A iter N/A N/A tfile readlines N/A N/A N/A tfile close N/A N/A N/A len N/A self transcripts N/A N/A N/A StandardError No test files found - nothing to test. N/A setUp N/A N/A self N/A N/A N/A N/A self CmdApp N/A N/A N/A self outputTrap N/A OutputTrap N/A N/A self cmdapp N/A N/A self CmdApp N/A N/A N/A self fetchTranscripts N/A runTest N/A N/A self N/A N/A N/A N/A self CmdApp N/A N/A its N/A sorted N/A N/A N/A self transcripts items N/A N/A fname transcript its N/A N/A N/A N/A self _test_transcript fname transcript N/A N/A regexPattern N/A N/A pyparsing QuotedString quoteChar / escChar \ multiline True unquoteResults True N/A N/A N/A regexPattern ignore N/A pyparsing cStyleComment N/A notRegexPattern N/A N/A pyparsing Word N/A pyparsing printables N/A N/A N/A notRegexPattern setParseAction N/A N/A N/A t N/A N/A N/A re escape N/A t N/A 0 N/A expectationParser N/A regexPattern notRegexPattern N/A anyWhitespace N/A N/A re compile \s N/A N/A re DOTALL N/A re MULTILINE _test_transcript N/A N/A self fname transcript N/A N/A N/A lineNum 0 N/A finished False N/A line N/A N/A transcript next N/A lineNum 1 N/A tests_run 0 N/A N/A finished N/A N/A N/A N/A N/A line startswith N/A N/A self cmdapp prompt N/A N/A N/A N/A line N/A N/A transcript next N/A N/A N/A StopIteration N/A N/A finished True N/A N/A lineNum 1 N/A command N/A N/A line N/A N/A len N/A N/A self cmdapp prompt N/A line N/A N/A transcript next N/A N/A N/A line startswith N/A N/A self cmdapp continuation_prompt N/A N/A N/A N/A command append N/A line N/A N/A len N/A N/A self cmdapp continuation_prompt N/A N/A N/A line N/A N/A transcript next N/A N/A N/A StopIteration N/A N/A N/A StopIteration N/A Transcript broke off while reading command beginning at line %d with
%s N/A command N/A 0 N/A lineNum 1 N/A command N/A N/A join command N/A stop N/A N/A N/A self cmdapp onecmd_plus_hooks command N/A result N/A N/A N/A self outputTrap read N/A N/A N/A line startswith N/A N/A self cmdapp prompt N/A N/A message N/A 
File %s, line %d
Command was:
%r
Expected: (nothing)
Got:
%r
 N/A fname lineNum command result N/A N/A N/A self assert_ N/A N/A N/A result strip message N/A N/A expected N/A N/A N/A N/A N/A line startswith N/A N/A self cmdapp prompt N/A N/A N/A N/A expected append line N/A N/A N/A line N/A N/A transcript next N/A N/A N/A StopIteration N/A N/A finished True N/A N/A lineNum 1 N/A expected N/A N/A join expected N/A message N/A 
File %s, line %d
Command was:
%s
Expected:
%s
Got:
%s
 N/A fname lineNum command expected result N/A expected N/A N/A N/A self expectationParser transformString expected N/A expected N/A N/A N/A self anyWhitespace sub expected N/A result N/A N/A N/A self anyWhitespace sub result N/A N/A N/A self assert_ N/A N/A re match expected result N/A N/A re MULTILINE N/A re DOTALL message N/A tearDown N/A N/A self N/A N/A N/A N/A self CmdApp N/A N/A N/A N/A N/A self outputTrap tearDown N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A doctest testmod optionflags N/A doctest NORMALIZE_WHITESPACE N/A 
To make your application transcript-testable, replace

::

  app = MyApp()
  app.cmdloop()

with

::

  app = MyApp()
  cmd2.run(app)

Then run a session of your application and paste the entire screen contents
into a file, ``transcript.test``, and invoke the test like::

  python myapp.py --test transcript.test

Wildcards can be used to test against multiple transcript files.
