From 4aab4087dc97906d0b9890035401175cdaab32d4 Mon Sep 17 00:00:00 2001 From: blackhao <13851610112@163.com> Date: Fri, 22 Aug 2025 02:51:50 -0500 Subject: 2.0 --- .../lib/python3.12/site-packages/~ip/_vendor/idna/compat.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .venv/lib/python3.12/site-packages/~ip/_vendor/idna/compat.py (limited to '.venv/lib/python3.12/site-packages/~ip/_vendor/idna/compat.py') diff --git a/.venv/lib/python3.12/site-packages/~ip/_vendor/idna/compat.py b/.venv/lib/python3.12/site-packages/~ip/_vendor/idna/compat.py new file mode 100644 index 0000000..786e6bd --- /dev/null +++ b/.venv/lib/python3.12/site-packages/~ip/_vendor/idna/compat.py @@ -0,0 +1,13 @@ +from .core import * +from .codec import * +from typing import Any, Union + +def ToASCII(label: str) -> bytes: + return encode(label) + +def ToUnicode(label: Union[bytes, bytearray]) -> str: + return decode(label) + +def nameprep(s: Any) -> None: + raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') + -- cgit v1.2.3