Module Expr Str Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If BoolOpOr CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore BoolOpAnd NameLoad Call NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Num Str If BoolOpAnd UnaryOpNot NameLoad BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr NameLoad body If CompareGt AttributeLoad NameLoad attr Num body AugAssignSub AttributeStore NameLoad attr Num If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr CompareEq NameLoad Num CompareNotEq BinOpMod NameLoad Num Num body Assign AttributeStore NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str orelse Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Num Num FunctionDef arguments args NameParam defaults body Assign NameStore BoolOpOr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Return TupleLoad NameLoad SubscriptLoad NameLoad Slice Call NameLoad Call AttributeLoad NameLoad attr Num orelse Return TupleLoad NameLoad NameLoad decorator_list While NameLoad body If SubscriptLoad NameLoad Index NameLoad body Assign TupleStore NameStore NameStore Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad Str NameLoad If NameLoad body Return NameLoad Assign TupleStore NameStore NameStore Call NameLoad Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Num Continue Assign TupleStore NameStore NameStore Call NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Str NameLoad decorator_list Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr Str NameLoad body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A utilities for generating and formatting literal Python code. N/A re mako exceptions PythonPrinter N/A object N/A __init__ N/A N/A self stream N/A N/A N/A N/A self indent 0 N/A N/A self indent_detail N/A N/A N/A self indentstring N/A N/A self stream stream N/A N/A self line_buffer N/A N/A N/A self in_indent_lines False N/A N/A N/A self _reset_multi_line_flags N/A write N/A N/A self text N/A N/A N/A N/A N/A N/A self stream write text N/A write_indented_block N/A N/A self block N/A N/A N/A print a line or lines of python which already contain indentation.

        The indentation of the total block of lines will be adjusted to that of
        the current indent level. N/A N/A self in_indent_lines False N/A l N/A N/A re split \r?\n block N/A N/A N/A N/A N/A self line_buffer append l N/A writelines N/A N/A self N/A lines N/A N/A print a series of lines of python. N/A line lines N/A N/A N/A N/A self writeline line N/A writeline N/A N/A self line N/A N/A N/A print a line of python, indenting it according to the current
        indent level.

        this also adjusts the indentation counter according to the
        content of the line.

         N/A N/A N/A self in_indent_lines N/A N/A N/A N/A self _flush_adjusted_lines N/A N/A self in_indent_lines True N/A N/A N/A line None N/A N/A re match ^\s*# line N/A N/A re match ^\s*$ line N/A N/A hastext False N/A N/A hastext True N/A is_comment N/A line N/A len line N/A N/A line N/A 0 # N/A N/A N/A is_comment N/A N/A hastext N/A N/A self _is_unindentor line N/A N/A N/A N/A self indent 0 N/A N/A N/A self indent 1 N/A N/A N/A len N/A self indent_detail 0 N/A N/A N/A N/A exceptions SyntaxException Too many whitespace closures N/A N/A N/A N/A self indent_detail pop N/A N/A line None N/A N/A N/A N/A N/A N/A self stream write N/A N/A N/A self _indent_line line N/A N/A N/A re search :[ \t]*(?:#.*)?$ line N/A N/A match N/A N/A re match ^\s*(if|try|elif|while|for|with) line N/A match N/A N/A indentor N/A N/A match group 1 N/A N/A self indent 1 N/A N/A N/A N/A self indent_detail append indentor N/A N/A indentor None N/A m2 N/A N/A re match ^\s*(def|class|else|elif|except|finally) line N/A m2 N/A N/A N/A self indent 1 N/A N/A N/A N/A self indent_detail append indentor N/A close N/A N/A self N/A N/A N/A close this printer, flushing any remaining lines. N/A N/A N/A self _flush_adjusted_lines N/A _is_unindentor N/A N/A self line N/A N/A N/A return true if the given line is an 'unindentor',
        relative to the last 'indent' event received.

         N/A N/A N/A len N/A self indent_detail 0 N/A N/A False N/A indentor N/A N/A self indent_detail N/A -1 N/A N/A indentor None N/A N/A False N/A match N/A N/A re match ^\s*(else|elif|except|finally).*\: line N/A N/A match N/A N/A False N/A True N/A _indent_line N/A N/A self line stripspace N/A N/A N/A indent the given line according to the current indent level.

        stripspace is a string of space that will be truncated from the
        start of the line before indenting. N/A N/A N/A re sub N/A ^%s stripspace N/A N/A self indentstring N/A self indent line N/A _reset_multi_line_flags N/A N/A self N/A N/A N/A reset the flags which would indicate we are in a backslashed
        or triple-quoted section. N/A N/A N/A self backslashed N/A self triplequoted N/A False False N/A _in_multi_line N/A N/A self line N/A N/A N/A return true if the given line is part of a multi-line block,
        via backslash or triple-quote. N/A current_state N/A N/A self backslashed N/A self triplequoted N/A N/A N/A re search \\$ line N/A N/A N/A self backslashed True N/A N/A N/A self backslashed False N/A triples N/A len N/A N/A re findall \"\"\"|\'\'\' line N/A N/A N/A triples 1 N/A N/A triples 2 0 N/A N/A N/A self triplequoted N/A N/A self triplequoted N/A current_state N/A _flush_adjusted_lines N/A N/A self N/A N/A N/A stripspace None N/A N/A N/A self _reset_multi_line_flags N/A entry N/A self line_buffer N/A N/A N/A N/A self _in_multi_line entry N/A N/A N/A N/A N/A self stream write N/A entry N/A N/A entry N/A N/A entry expandtabs N/A N/A N/A stripspace None N/A N/A re search ^[ \t]*[^# \t] entry N/A N/A stripspace N/A N/A N/A N/A re match ^([ \t]*) entry group 1 N/A N/A N/A N/A self stream write N/A N/A N/A self _indent_line entry stripspace N/A N/A self line_buffer N/A N/A N/A N/A self _reset_multi_line_flags N/A N/A adjust_whitespace N/A N/A text N/A N/A N/A remove the left-whitespace margin of a block of Python code. N/A state N/A False False N/A N/A backslashed triplequoted N/A 0 1 in_multi_line N/A N/A line N/A N/A N/A start_state N/A N/A state N/A backslashed N/A state N/A triplequoted N/A N/A N/A re search \\$ line N/A N/A N/A state N/A backslashed True N/A N/A N/A state N/A backslashed False match N/A N/A reg t N/A N/A N/A m N/A N/A re match reg t N/A m N/A N/A N/A m N/A t N/A N/A len N/A N/A m group 0 N/A N/A N/A None t N/A N/A line N/A N/A N/A state N/A triplequoted N/A N/A N/A m line N/A match N/A %s N/A state N/A triplequoted line N/A m N/A N/A N/A state N/A triplequoted False N/A N/A N/A m line N/A match N/A .*?(?=%s|$) N/A state N/A triplequoted line N/A N/A N/A m line N/A match # line N/A m N/A N/A start_state N/A N/A m line N/A match \"\"\"|\'\'\' line N/A m N/A N/A N/A state N/A triplequoted N/A N/A m group 0 N/A N/A N/A m line N/A match .*?(?=\"\"\"|\'\'\'|#|$) line N/A start_state N/A _indent_line N/A N/A line stripspace N/A N/A N/A N/A N/A re sub N/A ^%s stripspace line N/A N/A lines N/A N/A stripspace None N/A line N/A N/A re split \r?\n text N/A N/A N/A in_multi_line line N/A N/A N/A N/A lines append line N/A N/A line N/A N/A line expandtabs N/A N/A N/A stripspace None N/A N/A re search ^[ \t]*[^# \t] line N/A N/A stripspace N/A N/A N/A N/A re match ^([ \t]*) line group 1 N/A N/A N/A lines append N/A _indent_line line stripspace N/A N/A N/A join lines N/A