MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _configure_stdio_utf8

Function _configure_stdio_utf8

src/main.py:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def _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
40def _configure_local_no_proxy() -> None:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected