Module Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Num FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num Num body Return BinOpAdd BinOpAdd BinOpAdd BinOpLShift BinOpBitAnd NameLoad Num Num BinOpLShift BinOpBitAnd NameLoad Num Num BinOpLShift BinOpBitAnd NameLoad Num Num BinOpBitAnd Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad BinOpBitAnd NameLoad Num BinOpRShift NameLoad Num BinOpRShift BinOpBitAnd NameLoad Num Num BinOpRShift BinOpBitAnd NameLoad Num Num decorator_list Assign NameStore Call NameLoad NameLoad Num Num Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body If CompareEq AttributeLoad NameLoad attr Num body Return Num orelse Assign AttributeStore NameLoad attr Call NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num orelse Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body If CompareEq AttributeLoad NameLoad attr Num body Return Num orelse Assign AttributeStore NameLoad attr Call NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num orelse Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr Return Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Num Num Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Return Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore NameLoad Slice BinOpAdd NameLoad Num SubscriptLoad NameLoad Slice NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num If Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr CompareEq NameLoad BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Return Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index BinOpAdd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr If CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Num Num BinOpSub AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad AttributeLoad NameLoad attr If CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Assign NameStore Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Slice NameLoad BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Num Num BinOpSub AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Num Num BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num If Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq NameLoad Call NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpSub AttributeLoad NameLoad attr Num orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num If Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body While Num body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Continue orelse Raise ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Raise orelse Break If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body While CompareLt Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num Num body Import alias Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
Virtual terminal objects. Thanks to Noah Spurrier for original code ideas, and
inspiration.

Note that this terminal emulation is not 100% complete.

If you are interested in using this please consider that the rxvt-unicode
program now has features to enable generic terminal emulation mode. But I
haven't tried it yet.

 N/A __all__ N/A Screen Printer NullPrinter ReprPrinter Keyboard Terminal get_terminal N/A sys N/A array N/A string N/A bisect errno EAGAIN pycopia fsm pycopia.aid Stack IF N/A NUL 0 N/A ENQ 5 N/A BEL 7 N/A BS 8 N/A HT 9 N/A LF 10 N/A VT 11 N/A FF 12 N/A CR 13 N/A SO 14 N/A SI 15 N/A XON 17 N/A XOFF 19 N/A CAN 24 N/A SUB 26 N/A ESC 27 N/A DEL 127 N/A SPACE N/A chr 32 constrain N/A N/A x minx maxx N/A N/A N/A N/A max N/A min x maxx minx N/A encode N/A N/A char attr fg bg N/A 0 0 0 N/A N/A N/A N/A N/A N/A N/A attr 127 24 N/A N/A fg 255 16 N/A N/A bg 255 8 N/A N/A ord char 255 N/A decode N/A N/A i N/A N/A N/A N/A N/A chr N/A i 255 N/A i 24 N/A N/A i 16711680 16 N/A N/A i 65280 8 N/A N/A BLANK N/A encode SPACE 0 7 0 Cursor N/A object N/A __init__ N/A N/A self scr N/A N/A N/A N/A self row 0 N/A N/A self col 0 N/A N/A self _saved N/A Stack N/A N/A N/A self adjust scr N/A __call__ N/A N/A self N/A N/A N/A N/A N/A self row N/A self col N/A __str__ N/A N/A self N/A N/A N/A N/A (%d, %d) N/A N/A self row N/A self col N/A adjust N/A N/A self scr N/A N/A N/A N/A self rows N/A N/A scr rows 1 N/A N/A self cols N/A N/A scr cols 1 N/A N/A N/A self constrain N/A constrain N/A N/A self N/A N/A N/A N/A self row N/A constrain N/A self row 0 N/A self rows N/A N/A self col N/A constrain N/A self col 0 N/A self cols N/A save N/A N/A self N/A N/A N/A N/A N/A N/A self _saved push N/A N/A self row N/A self col N/A restore N/A N/A self N/A N/A N/A N/A N/A N/A N/A self row N/A self col N/A N/A N/A self _saved pop N/A N/A N/A IndexError N/A N/A N/A N/A self row N/A self col N/A 0 0 N/A reset N/A N/A self r c N/A 0 0 N/A N/A N/A self row r N/A N/A self col c N/A N/A home reset set N/A N/A self r c N/A None None N/A N/A N/A r None N/A N/A N/A self row r N/A N/A c None N/A N/A N/A self col c N/A up N/A N/A self count N/A 1 N/A N/A N/A N/A self row 0 N/A N/A 1 N/A N/A N/A self row N/A constrain N/A N/A self row count 0 N/A self rows N/A 0 N/A down N/A N/A self count N/A 1 N/A N/A N/A N/A self row N/A self rows N/A N/A 1 N/A N/A N/A self row N/A constrain N/A N/A self row count 0 N/A self rows N/A 0 N/A back N/A N/A self count N/A 1 N/A N/A N/A N/A self col 0 N/A N/A 1 N/A N/A N/A self col N/A constrain N/A N/A self col count 0 N/A self cols N/A 0 N/A forward N/A N/A self count N/A 1 N/A N/A N/A N/A self col N/A self cols N/A N/A 1 N/A N/A N/A self col N/A constrain N/A N/A self col count 0 N/A self cols N/A 0 N/A N/A Screen N/A object N/A __init__ N/A N/A self rows cols N/A 24 80 N/A N/A N/A self rows rows N/A N/A self cols cols N/A b N/A N/A r N/A range rows N/A N/A N/A N/A b append N/A N/A self _new_row cols N/A N/A self buf b N/A N/A self cursor N/A Cursor self N/A N/A N/A self reset N/A N/A N/A self initialize N/A initialize N/A N/A self N/A N/A N/A NotImplemented N/A finalize N/A N/A self N/A N/A N/A NotImplemented N/A errorlog N/A N/A self text N/A N/A N/A NotImplemented N/A __str__ N/A N/A self N/A N/A N/A scr N/A N/A %s  attr: %d  fg: %d  bg: %d wrap: %s N/A N/A self cursor N/A self attr N/A self fg N/A self bg N/A IF N/A self _wrap ON OFF N/A N/A N/A scr append N/A +%s+ N/A N/A - N/A self cols N/A r N/A self buf N/A N/A chars N/A map N/A N/A N/A t N/A N/A t N/A 0 N/A map decode r N/A N/A N/A scr append N/A |%s| N/A N/A N/A join chars N/A N/A N/A scr append N/A +%s+
 N/A N/A - N/A self cols N/A N/A N/A join scr N/A _new_row N/A N/A self cols N/A N/A N/A a N/A N/A array array i N/A c N/A range cols N/A N/A N/A N/A a append BLANK N/A a N/A dump N/A N/A self fo N/A N/A N/A Write screen contents to file object. N/A r N/A self buf N/A N/A rowvals N/A map decode r N/A N/A char attr fg bg rowvals N/A N/A N/A N/A fo write char N/A N/A N/A fo write N/A reset N/A N/A self N/A N/A N/A N/A self scroll_row_start 0 N/A N/A self scroll_row_end N/A N/A self rows 1 N/A N/A self _tabs N/A range 0 132 8 N/A N/A self attr 0 N/A N/A self fg 7 N/A N/A self bg 0 N/A N/A self _wrap 1 N/A N/A self _do_wrap 0 N/A N/A self _linefeed_mode 0 N/A N/A self _insert 0 N/A N/A N/A self fill N/A N/A N/A self cursor_home N/A set_columns N/A N/A self cols N/A N/A N/A N/A cols N/A self cols N/A N/A N/A N/A self cols cols N/A b N/A N/A r N/A range N/A self rows N/A N/A N/A N/A b append N/A N/A self _new_row cols N/A N/A self buf b N/A N/A self scroll_row_start 0 N/A N/A self scroll_row_end N/A N/A self rows 1 N/A N/A N/A N/A self cursor adjust self N/A N/A N/A N/A self cursor home 0 0 N/A set_scroll_rows N/A N/A self rs re N/A N/A N/A Enable scrolling from row {start} to row {end}. N/A N/A rs re N/A N/A N/A rs re N/A re rs N/A N/A self scroll_row_start N/A rs N/A self rows N/A N/A self scroll_row_end N/A re N/A self rows N/A N/A N/A self cursor_home N/A scroll_screen N/A N/A self N/A N/A N/A Enable scrolling for entire display. N/A N/A self scroll_row_start 0 N/A N/A self scroll_row_end N/A N/A self rows 1 N/A set N/A N/A self row col char N/A N/A N/A col N/A col N/A self cols N/A row N/A row N/A self rows N/A N/A N/A N/A self buf N/A row N/A col N/A encode char N/A self attr N/A self fg N/A self bg N/A N/A put set putchar N/A N/A self ch N/A N/A N/A N/A r c N/A N/A self cursor N/A N/A N/A self set r c ch N/A insert N/A N/A self ch N/A N/A N/A This inserts a character at cursor. Everything under
        and to the right is shifted right one character.
        The last character of the line is lost.   N/A N/A r c N/A N/A self cursor N/A row N/A N/A self buf N/A r N/A N/A row N/A N/A c 1 N/A row N/A c -1 N/A N/A row N/A c N/A encode ch N/A self attr N/A self fg N/A self bg N/A writechar N/A N/A self ch N/A N/A N/A Write a single character to the screen. Wrap the cursor if necessary. N/A N/A self _insert N/A N/A N/A N/A self insert ch N/A N/A N/A r c N/A N/A self cursor N/A N/A N/A self _wrap N/A self _do_wrap N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor set c 0 N/A N/A N/A N/A self cursor down 1 N/A N/A N/A N/A self scroll_up N/A N/A r c N/A N/A self cursor N/A N/A N/A self set r c ch N/A N/A N/A N/A self cursor forward 1 N/A N/A self _do_wrap N/A c N/A N/A self cols 1 N/A get N/A N/A self row col N/A N/A N/A col N/A col N/A self cols N/A row N/A row N/A self rows N/A N/A decode N/A N/A N/A self buf N/A row N/A col N/A scroll_up N/A N/A self N/A N/A N/A N/A N/A N/A self buf insert N/A N/A self scroll_row_end 1 N/A N/A self _new_row N/A self cols N/A N/A N/A self buf N/A N/A self scroll_row_start N/A scroll_down N/A N/A self N/A N/A N/A N/A N/A N/A self buf insert N/A self scroll_row_start N/A N/A self _new_row N/A self cols N/A N/A N/A self buf N/A N/A N/A self scroll_row_end 1 N/A fill_region N/A N/A self rs cs re ce ch N/A SPACE N/A N/A ch N/A encode ch N/A self attr N/A self fg N/A self bg N/A rs N/A rs N/A self rows N/A re N/A re N/A self rows N/A cs N/A cs N/A self cols N/A ce N/A ce N/A self cols N/A N/A rs re N/A N/A N/A rs re N/A re rs N/A N/A cs ce N/A N/A N/A cs ce N/A ce cs N/A r N/A range rs N/A re 1 N/A N/A row N/A N/A self buf N/A r N/A c N/A range cs N/A ce 1 N/A N/A N/A row N/A c ch N/A fill N/A N/A self ch N/A SPACE N/A N/A N/A N/A self fill_region 0 0 N/A N/A self rows 1 N/A N/A self cols 1 ch N/A get_region N/A N/A self rs cs re ce N/A N/A N/A This returns a list of lines representing the region.   N/A rs N/A rs N/A self rows N/A re N/A re N/A self rows N/A cs N/A cs N/A self cols N/A ce N/A ce N/A self cols N/A N/A rs re N/A N/A N/A rs re N/A re rs N/A N/A cs ce N/A N/A N/A cs ce N/A ce cs N/A sc N/A N/A r N/A range rs N/A re 1 N/A N/A line N/A N/A join N/A map N/A N/A N/A t N/A N/A apply decode t N/A N/A N/A self buf N/A r N/A cs N/A ce 1 N/A N/A N/A sc append line N/A sc N/A erase_end_of_line N/A N/A self N/A N/A N/A N/A N/A self fill_region N/A N/A self cursor row N/A N/A self cursor col N/A N/A self cursor row N/A N/A self cols 1 N/A erase_start_of_line N/A N/A self N/A N/A N/A Erases from the current cursor position to
        the start of the current line. N/A N/A r c N/A N/A self cursor N/A N/A N/A self fill_region r 0 r c N/A erase_line N/A N/A self N/A N/A N/A Erases the entire current line. N/A N/A r c N/A N/A self cursor N/A N/A N/A self fill_region r 0 r N/A N/A self cols 1 N/A erase_down N/A N/A self N/A N/A N/A Erases the screen from the current line down to
        the bottom of the screen. N/A N/A N/A self erase_end_of_line N/A N/A N/A self fill_region N/A N/A N/A self cursor row 1 0 N/A N/A self rows 1 N/A N/A self cols 1 N/A erase_up N/A N/A self N/A N/A N/A Erases the screen from the current line up to
        the top of the screen. N/A N/A N/A self erase_start_of_line N/A N/A N/A self fill_region N/A N/A N/A self cursor row 1 0 0 N/A N/A self cols 1 N/A erase_screen N/A N/A self N/A N/A N/A Erases the screen with the background color. N/A N/A N/A self fill_region N/A self scroll_row_start 0 N/A self scroll_row_end N/A N/A self cols 1 N/A N/A N/A self cursor_home N/A cr N/A N/A self N/A N/A N/A This moves the cursor to the beginning (col 0) of the current row. N/A N/A N/A N/A self cursor set c 0 N/A lf N/A N/A self N/A N/A N/A This moves the cursor down with scrolling.   N/A N/A self _linefeed_mode N/A N/A N/A N/A N/A self cursor set c 0 N/A N/A N/A N/A self cursor down 1 N/A N/A N/A N/A self scroll_up N/A null N/A N/A self N/A N/A N/A None N/A crlf N/A N/A self N/A N/A N/A This advances the cursor with CRLF properties.
        The cursor will line wrap and the screen may scroll.   N/A N/A N/A self cr N/A N/A N/A self lf N/A bs N/A N/A self N/A N/A N/A N/A N/A self cursor_back 1 N/A tab N/A N/A self N/A N/A N/A N/A r c N/A N/A self cursor N/A ts N/A self _tabs N/A i N/A N/A bisect bisect_right ts c N/A N/A i N/A len ts N/A N/A N/A N/A N/A self cursor set c N/A N/A self cols 1 N/A N/A newc N/A ts N/A i N/A N/A N/A N/A self cursor set c newc N/A cursor_home N/A N/A self r c N/A 0 0 N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor home N/A N/A self scroll_row_start r c N/A N/A cursor_force_position cursor_home cursor_set N/A N/A self r c N/A None None N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor set r c N/A cursor_up N/A N/A self count N/A 1 N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor up count N/A cursor_down N/A N/A self count N/A 1 N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor down count N/A cursor_back N/A N/A self count N/A 1 N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor back count N/A cursor_forward N/A N/A self count N/A 1 N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor forward count N/A cursor_up_reverse N/A N/A self N/A N/A N/A N/A self _do_wrap 0 N/A N/A N/A N/A self cursor up 1 N/A N/A N/A N/A self scroll_down N/A cursor_save N/A N/A self N/A N/A N/A Save current cursor position. N/A N/A N/A N/A self cursor save N/A N/A cursor_save_attrs cursor_save cursor_unsave N/A N/A self N/A N/A N/A Restores cursor position after a Save Cursor. N/A N/A N/A N/A self cursor restore N/A N/A cursor_restore_attrs cursor_unsave cursor_report N/A N/A self fo N/A N/A N/A N/A N/A fo write N/A set_tab N/A N/A self N/A N/A N/A Sets a tab at the current position. N/A N/A r c N/A N/A self cursor N/A N/A N/A bisect insort_right N/A self _tabs c N/A clear_tab N/A N/A self N/A N/A N/A Clears tab at the current position. N/A N/A r c N/A N/A self cursor N/A N/A N/A i N/A N/A N/A self _tabs index c N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A self _tabs N/A i N/A clear_all_tabs N/A N/A self N/A N/A N/A Clears all tabs. N/A N/A self _tabs N/A 0 N/A N/A Printer N/A object N/A __init__ N/A N/A self outf N/A N/A N/A N/A self _outf outf N/A set_file N/A N/A self fo N/A None N/A N/A N/A self _outf fo N/A write N/A N/A self text N/A N/A N/A N/A N/A N/A self _outf write text N/A reset N/A N/A self N/A N/A N/A N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self _outf flush N/A N/A NullPrinter N/A Printer N/A __init__ N/A N/A self N/A N/A N/A N/A write N/A N/A self text N/A N/A N/A N/A len text N/A N/A ReprPrinter N/A Printer N/A write N/A N/A self text N/A N/A N/A N/A N/A N/A self _outf write N/A repr text N/A N/A N/A N/A self _outf write N/A N/A Keyboard N/A object N/A N/A _KEYMAP N/A __init__ N/A N/A self N/A N/A N/A N/A self _locked 0 N/A getkey N/A N/A self code N/A N/A N/A N/A N/A N/A self _KEYMAP get code code N/A reset N/A N/A self N/A N/A N/A None N/A lock N/A N/A self N/A N/A N/A N/A self _locked 1 N/A unlock N/A N/A self N/A N/A N/A N/A self _locked 0 N/A __str__ N/A N/A self N/A N/A N/A N/A                                      |
                            +=================+
                            | o o %7.7s o o |
                            +-----------------+
 N/A N/A IF N/A self _locked locked  o o o o N/A N/A TerminalBase N/A object N/A __init__ N/A N/A self pty screen keyboard printer N/A None N/A N/A N/A self _pty pty N/A N/A self screen screen N/A N/A self keyboard keyboard N/A N/A self printer printer N/A N/A self fsm N/A N/A fsm FSM INIT N/A N/A self ANY N/A fsm ANY N/A N/A self _buf N/A N/A N/A self initialize N/A fileno N/A N/A self N/A N/A N/A N/A N/A N/A self _pty fileno N/A initialize N/A N/A self N/A N/A N/A NotImplemented N/A close N/A N/A self N/A N/A N/A N/A N/A N/A self _pty close N/A __str__ N/A N/A self N/A N/A N/A N/A N/A str N/A self screen N/A str N/A self keyboard N/A reset N/A N/A self N/A N/A N/A N/A N/A N/A self fsm reset N/A N/A N/A N/A self screen reset N/A N/A N/A N/A self keyboard reset N/A N/A self printer N/A N/A N/A N/A N/A self printer reset N/A presskey N/A N/A self code N/A N/A N/A ch N/A N/A N/A self keyboard getkey code N/A N/A N/A N/A self _pty write ch N/A N/A Terminal N/A TerminalBase N/A __init__ N/A N/A self pty screen keyboard printer N/A None N/A N/A N/A N/A TerminalBase __init__ self pty screen keyboard printer N/A write N/A N/A self data N/A N/A N/A N/A N/A N/A self _pty write data N/A _read N/A N/A self N N/A 100 N/A N/A 1 N/A N/A N/A N/A raw N/A N/A N/A self _pty read N N/A N/A N/A OSError N/A why N/A N/A N/A N/A why N/A 0 EAGAIN N/A N/A N/A N/A N/A N/A EOFError N/A N/A N/A self _pty None N/A N/A N/A N/A N/A self printer N/A N/A N/A N/A N/A self printer write raw N/A raw N/A read N/A N/A self N N/A 4096 N/A N/A N/A N/A len N/A self _buf N N/A N/A raw N/A N/A self _read N/A N/A N/A N/A self fsm process_string raw N/A d N/A N/A self _buf N/A N N/A N/A self _buf N/A N/A self _buf N/A N N/A d N/A N/A get_terminal N/A N/A fo termclass screenclass printer keyboardclass rows cols N/A Terminal Screen None Keyboard 24 80 N/A N/A termtools N/A screen N/A screenclass rows cols N/A kb N/A keyboardclass N/A t N/A termclass fo screen screen printer printer keyboard kb N/A N/A N/A termtools set_winsize N/A N/A fo fileno rows cols N/A t N/A