class PythonPrinter(object):
Undocumented
Method | __init__ |
Undocumented |
Method | _flush_adjusted_lines |
Undocumented |
Method | _in_multi_line |
return true if the given line is part of a multi-line block, via backslash or triple-quote. |
Method | _indent_line |
indent the given line according to the current indent level. |
Method | _is_unindentor |
return true if the given line is an 'unindentor', relative to the last 'indent' event received. |
Method | _reset_multi_line_flags |
reset the flags which would indicate we are in a backslashed or triple-quoted section. |
Method | _update_lineno |
Undocumented |
Method | close |
close this printer, flushing any remaining lines. |
Method | start_source |
Undocumented |
Method | write_blanks |
Undocumented |
Method | write_indented_block |
print a line or lines of python which already contain indentation. |
Method | writeline |
print a line of python, indenting it according to the current indent level. |
Method | writelines |
print a series of lines of python. |
Instance Variable | backslashed |
Undocumented |
Instance Variable | in_indent_lines |
Undocumented |
Instance Variable | indent |
Undocumented |
Instance Variable | indent_detail |
Undocumented |
Instance Variable | indentstring |
Undocumented |
Instance Variable | line_buffer |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | source_map |
Undocumented |
Instance Variable | stream |
Undocumented |
Instance Variable | triplequoted |
Undocumented |
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.
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.