bazarr/libs/zipp/py310compat.py

12 lines
219 B
Python
Raw Normal View History

2022-11-08 02:06:49 +08:00
import sys
import io
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover
return encoding
2022-11-08 02:06:49 +08:00
text_encoding = (
io.text_encoding if sys.version_info > (3, 10) else _text_encoding # type: ignore
)