(before: str, after: str, file: pathlib.Path)
| 289 | |
| 290 | |
| 291 | def show_diff(before: str, after: str, file: pathlib.Path): |
| 292 | diffs = list( |
| 293 | difflib.unified_diff( |
| 294 | before.splitlines(keepends=True), after.splitlines(keepends=True), n=0 |
| 295 | ) |
| 296 | )[2:] |
| 297 | print(f"[*] Diff of '{file}':\n") |
| 298 | print("".join(diffs)) |
| 299 | |
| 300 | |
| 301 | def parse_args(): |
no test coverage detected
searching dependent graphs…