File size: 256 Bytes
065fee7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import sys
import io
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover
return encoding
text_encoding = (
io.text_encoding # type: ignore[unused-ignore, attr-defined]
if sys.version_info > (3, 10)
else _text_encoding
)
|