Normalize arbitrary text into a single-line string.
(value: Any)
| 581 | except ValueError: |
| 582 | return default |
| 583 | |
| 584 | |
| 585 | def _assert_fetchable_url(url: str) -> None: |
| 586 | """Reject URLs that point at the local host or a private network. |
| 587 | |
| 588 | --homepage-url and --scholar-url are fetched server-side, so without this a |
no outgoing calls
no test coverage detected