Download pproyect/test1/Lib/site-packages/idna/compat.py from hacking-jack/Test: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/hacking-jack/Test/resolve/main/pproyect/test1/Lib/site-packages/idna/compat.py
- Command line
-
hf download hf://hacking-jack/Test/pproyect/test1/Lib/site-packages/idna/compat.py
-
curl -L -o compat.py https://huggingface.co/hacking-jack/Test/resolve/main/pproyect/test1/Lib/site-packages/idna/compat.py
321 Bytes
| 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') | |