()
| 27 | |
| 28 | |
| 29 | def _configure_stdio_utf8() -> None: |
| 30 | for stream_name in ("stdout", "stderr"): |
| 31 | stream = getattr(sys, stream_name, None) |
| 32 | reconfigure = getattr(stream, "reconfigure", None) |
| 33 | if callable(reconfigure): |
| 34 | try: |
| 35 | reconfigure(encoding="utf-8", errors="replace") |
| 36 | except Exception: |
| 37 | pass |
| 38 | |
| 39 | |
| 40 | def _configure_local_no_proxy() -> None: |
no outgoing calls
no test coverage detected