Return a new Source object deindented.
(self)
| 107 | return start, end |
| 108 | |
| 109 | def deindent(self) -> Source: |
| 110 | """Return a new Source object deindented.""" |
| 111 | newsource = Source() |
| 112 | newsource.lines[:] = deindent(self.lines) |
| 113 | newsource.raw_lines = self.raw_lines |
| 114 | return newsource |
| 115 | |
| 116 | def __str__(self) -> str: |
| 117 | return "\n".join(self.lines) |