(lines: list[str])
| 407 | |
| 408 | |
| 409 | def process_ignores(lines: list[str]) -> list[str]: |
| 410 | for i in range(len(lines)): |
| 411 | for k, v in replacements.items(): |
| 412 | if "unasync: off" in lines[i] and v in lines[i]: |
| 413 | lines[i] = lines[i].replace(v, k) |
| 414 | return lines |
| 415 | |
| 416 | |
| 417 | def unasync_directory(files: list[str], src: str, dest: str, replacements: dict[str, str]) -> None: |