blob: d5ca53e037b267ff1b196b3b208dea0acdebe4c5 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import sys
import io
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover
return encoding
text_encoding = (
io.text_encoding if sys.version_info > (3, 10) else _text_encoding # type: ignore
)
|