PHP 8.2.30
Preview: compat.py Size: 321 B
/proc/self/root/proc/thread-self/root/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/idna/compat.py

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')

Directory Contents

Dirs: 1 × Files: 8

Name Size Perms Modified Actions
- drwxr-xr-x 2024-03-03 22:49:50
Edit Download
3.29 KB lrw-r--r-- 2023-11-13 21:40:26
Edit Download
321 B lrw-r--r-- 2023-11-13 21:40:26
Edit Download
12.50 KB lrw-r--r-- 2023-11-13 21:40:26
Edit Download
42.99 KB lrw-r--r-- 2023-11-13 21:40:26
Edit Download
1.84 KB lrw-r--r-- 2023-11-13 21:40:26
Edit Download
21 B lrw-r--r-- 2023-11-13 21:40:26
Edit Download
199.61 KB lrw-r--r-- 2023-11-13 21:40:26
Edit Download
849 B lrw-r--r-- 2023-11-13 21:40:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).