(l: list[str])
| 520 | |
| 521 | |
| 522 | def collapse_line_continuation(l: list[str]) -> list[str]: |
| 523 | r: list[str] = [] |
| 524 | cont = False |
| 525 | for s in l: |
| 526 | ss = re.sub(r"\\$", "", s) |
| 527 | if cont: |
| 528 | r[-1] += re.sub("^ +", "", ss) |
| 529 | else: |
| 530 | r.append(ss) |
| 531 | cont = s.endswith("\\") |
| 532 | return r |
| 533 | |
| 534 | |
| 535 | def expand_variables(s: str) -> str: |
no test coverage detected
searching dependent graphs…