(value: str)
| 647 | manifest = None |
| 648 | |
| 649 | def rel(value: str) -> str: |
| 650 | p = Path(value) |
| 651 | try: |
| 652 | value = (p if p.is_absolute() else root / p).resolve().relative_to(root).as_posix() |
| 653 | except (OSError, RuntimeError, ValueError): |
| 654 | pass |
| 655 | return nfc(value) |
| 656 | |
| 657 | def source(record: object) -> str: |
| 658 | # Persisted state can be corrupt: skip what _stale_graph_sources skips. |
no test coverage detected