MCPcopy
hub / github.com/pallets/click / get_text_stdout

Function get_text_stdout

src/click/_compat.py:344–348  ·  view source on GitHub ↗
(encoding: str | None = None, errors: str | None = None)

Source from the content-addressed store, hash-verified

342
343
344def get_text_stdout(encoding: str | None = None, errors: str | None = None) -> t.TextIO:
345 rv = _get_windows_console_stream(sys.stdout, encoding, errors)
346 if rv is not None:
347 return rv
348 return _force_correct_text_writer(sys.stdout, encoding, errors, force_writable=True)
349
350
351def get_text_stderr(encoding: str | None = None, errors: str | None = None) -> t.TextIO:

Callers 1

open_streamFunction · 0.85

Calls 2

Tested by

no test coverage detected