()
| 424 | |
| 425 | |
| 426 | def read_text(path: Path) -> str: |
| 427 | try: |
| 428 | return path.read_text(encoding="utf-8") |
| 429 | except FileNotFoundError: |
| 430 | return "" |
| 431 | except UnicodeDecodeError: |
| 432 | return path.read_text(encoding="utf-8", errors="replace") |
no test coverage detected