1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 18:17:46 +00:00
bazarr/libs/zipp/py310compat.py
2022-11-07 13:08:27 -05:00

12 lines
309 B
Python

import sys
import io
te_impl = 'lambda encoding, stacklevel=2, /: encoding'
te_impl_37 = te_impl.replace(', /', '')
_text_encoding = eval(te_impl) if sys.version_info > (3, 8) else eval(te_impl_37)
text_encoding = (
io.text_encoding if sys.version_info > (3, 10) else _text_encoding # type: ignore
)