Atomically write binary content into the cache.
(cache_path: Path, content: bytes)
| 1148 | def _redact_proxy_url(proxy_url: Optional[str]) -> str: |
| 1149 | """Hide proxy credentials while preserving the endpoint for diagnostics.""" |
| 1150 | value = str(proxy_url or "").strip() |
| 1151 | return re.sub(r"(://)[^/@\s]+:[^/@\s]+@", r"\1***:***@", value) |
| 1152 | |
| 1153 | |
| 1154 | def _parse_windows_proxy_server_candidates(proxy_server: str) -> list[str]: |
| 1155 | """Parse Windows Internet Settings ProxyServer into normalized proxy URLs.""" |
| 1156 | normalized_candidates: list[str] = [] |
| 1157 | seen: set[str] = set() |
| 1158 | |
| 1159 | for raw_item in str(proxy_server or "").split(";"): |
no outgoing calls
no test coverage detected