You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
309 B
Python
13 lines
309 B
Python
2 years ago
|
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
|
||
|
)
|