Indent a piece of text and append it, according to the current indentation level, or only delineate with semicolon if applicable
(self, text="", *, allow_semicolon=True)
| 92 | self.write("; ") |
| 93 | |
| 94 | def fill(self, text="", *, allow_semicolon=True): |
| 95 | """Indent a piece of text and append it, according to the current |
| 96 | indentation level, or only delineate with semicolon if applicable""" |
| 97 | if self._in_interactive and not self._indent and allow_semicolon: |
| 98 | self.maybe_semicolon() |
| 99 | self.write(text) |
| 100 | else: |
| 101 | self.maybe_newline() |
| 102 | self.write(" " * self._indent + text) |
| 103 | |
| 104 | def write(self, *text): |
| 105 | """Add new source parts""" |
no test coverage detected