You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
219 B
12 lines
219 B
8 months ago
|
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
|
||
|
)
|