Shofel2_T124_python/venv/lib/python3.10/site-packages/zipp/py310compat.py

12 lines
219 B
Python
Raw Normal View History

2024-05-25 16:45:07 +00:00
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
)