module documentation
Undocumented
Function | auto |
Support ANSI color and style codes on Windows by wrapping a stream with colorama. |
Function | get |
Returns the default stream encoding if not found. |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | is |
Checks if a given encoding is ascii. |
Function | isatty |
Undocumented |
Function | open |
Undocumented |
Function | should |
Undocumented |
Function | strip |
Undocumented |
Function | term |
Undocumented |
Constant | APP |
Undocumented |
Constant | CYGWIN |
Undocumented |
Constant | MSYS2 |
Undocumented |
Constant | WIN |
Undocumented |
Variable | binary |
Undocumented |
Variable | text |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
The new io interface needs more from streams than streams traditionally implement. As such, this fix-up code is necessary in some circumstances. |
Class | _ |
Undocumented |
Function | _find |
Undocumented |
Function | _find |
Undocumented |
Function | _force |
Undocumented |
Function | _force |
Undocumented |
Function | _force |
Undocumented |
Function | _get |
Undocumented |
Function | _is |
Undocumented |
Function | _is |
Undocumented |
Function | _is |
A stream attribute is compatible if it is equal to the desired value or the desired value is unset and the attribute has a value. |
Function | _is |
Check if a stream's encoding and errors attributes are compatible with the desired values. |
Function | _is |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _stream |
A stream is misconfigured if its encoding is ASCII. |
Function | _wrap |
Handles not passing ``encoding`` and ``errors`` in binary mode. |
Variable | _ansi |
Undocumented |
Variable | _ansi |
Undocumented |
Variable | _default |
Undocumented |
Variable | _default |
Undocumented |
Variable | _default |
Undocumented |
Support ANSI color and style codes on Windows by wrapping a stream with colorama.
Parameters | |
stream:t.TextIO | Undocumented |
color:t.Optional[ | Undocumented |
Returns | |
t.TextIO | Undocumented |
Undocumented
Parameters | |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
Returns | |
t.TextIO | Undocumented |
Undocumented
Parameters | |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
Returns | |
t.TextIO | Undocumented |
Undocumented
Parameters | |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
Returns | |
t.TextIO | Undocumented |
Undocumented
Parameters | |
filename:str | Undocumented |
mode:str | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
atomic:bool | Undocumented |
Returns | |
t.Tuple[ | Undocumented |
Undocumented
Parameters | |
stream:t.Optional[ | Undocumented |
color:t.Optional[ | Undocumented |
Returns | |
bool | Undocumented |
APP_ENGINE =
(source)
Undocumented
Value |
|
Undocumented
Parameters | |
textt.IO | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
forcebool | Undocumented |
Returns | |
t.TextIO | Undocumented |
def _force_correct_text_stream(text_stream, encoding, errors, is_binary, find_binary, force_readable=False, force_writable=False):
(source)
Undocumented
Parameters | |
textt.IO | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
ist.Callable[ | Undocumented |
findt.Callable[ | Undocumented |
forcebool | Undocumented |
forcebool | Undocumented |
Returns | |
t.TextIO | Undocumented |
Undocumented
Parameters | |
textt.IO | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
forcebool | Undocumented |
Returns | |
t.TextIO | Undocumented |
A stream attribute is compatible if it is equal to the desired value or the desired value is unset and the attribute has a value.
Parameters | |
stream:t.TextIO | Undocumented |
attr:str | Undocumented |
value:t.Optional[ | Undocumented |
Returns | |
bool | Undocumented |
Check if a stream's encoding and errors attributes are compatible with the desired values.
Parameters | |
stream:t.TextIO | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
srct.Callable[ | Undocumented |
wrappert.Callable[ | Undocumented |
Returns | |
t.Callable[ | Undocumented |
def _make_text_stream(stream, encoding, errors, force_readable=False, force_writable=False):
(source)
Undocumented
Parameters | |
stream:t.BinaryIO | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
forcebool | Undocumented |
forcebool | Undocumented |
Returns | |
t.TextIO | Undocumented |
Handles not passing ``encoding`` and ``errors`` in binary mode.
Parameters | |
file:t.Union[ | Undocumented |
mode:str | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
Returns | |
t.IO | Undocumented |