mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-07-14 01:41:23 -06:00
14 lines
256 B
Python
14 lines
256 B
Python
import sys
|
|
import io
|
|
|
|
|
|
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover
|
|
return encoding
|
|
|
|
|
|
text_encoding = (
|
|
io.text_encoding # type: ignore[unused-ignore, attr-defined]
|
|
if sys.version_info > (3, 10)
|
|
else _text_encoding
|
|
)
|