Remove leading indentation. Removes the minimum common leading indentation from all lines.
(lines)
| 37 | return lines |
| 38 | |
| 39 | def leading_indent(lines): |
| 40 | """Remove leading indentation. |
| 41 | |
| 42 | Removes the minimum common leading indentation from all lines. |
| 43 | """ |
| 44 | if not lines: |
| 45 | return lines |
| 46 | return dedent("".join(lines)).splitlines(keepends=True) |
| 47 | |
| 48 | class PromptStripper: |
| 49 | """Remove matching input prompts from a block of input. |
nothing calls this directly
no test coverage detected
searching dependent graphs…