(s: str)
| 41 | |
| 42 | |
| 43 | def leading_tabs_to_spaces(s: str) -> str: |
| 44 | def tab_to_space(m: Match[str]) -> str: |
| 45 | return len(m.group()) * 4 * " " |
| 46 | |
| 47 | return "\n".join( |
| 48 | tabs_to_spaces_re.sub(tab_to_space, line) for line in s.split("\n") |
| 49 | ) |
| 50 | |
| 51 | |
| 52 | def preprocess(s: str, compiler: CommandCompiler) -> str: |