PHP 8.2.30
Preview: compat.py Size: 360 B
/proc/self/root/proc/self/root/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/idna/compat.py

from .core import *
from .codec import *
from typing import Any, Union

def ToASCII(label):
    # type: (str) -> bytes
    return encode(label)

def ToUnicode(label):
    # type: (Union[bytes, bytearray]) -> str
    return decode(label)

def nameprep(s):
    # type: (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 2026-02-10 08:08:40
Edit Download
3.37 KB lrw-r--r-- 2026-01-09 15:17:41
Edit Download
360 B lrw-r--r-- 2026-01-09 15:17:41
Edit Download
12.53 KB lrw-r--r-- 2026-01-09 15:17:41
Edit Download
41.36 KB lrw-r--r-- 2026-01-09 15:17:41
Edit Download
1.89 KB lrw-r--r-- 2026-01-09 15:17:41
Edit Download
21 B lrw-r--r-- 2026-01-09 15:17:41
Edit Download
197.12 KB lrw-r--r-- 2026-01-09 15:17:41
Edit Download
849 B lrw-r--r-- 2026-01-09 15:17:41
Edit Download

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