PHP 8.2.30
Preview: compat.py Size: 360 B
/proc/thread-self/root/opt/alt/python39/lib/python3.9/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 2024-03-03 22:49:56
Edit Download
3.37 KB lrw-r--r-- 2023-11-13 21:47:44
Edit Download
360 B lrw-r--r-- 2023-11-13 21:47:44
Edit Download
12.53 KB lrw-r--r-- 2023-11-13 21:47:44
Edit Download
41.36 KB lrw-r--r-- 2023-11-13 21:47:44
Edit Download
1.89 KB lrw-r--r-- 2023-11-13 21:47:44
Edit Download
21 B lrw-r--r-- 2023-11-13 21:47:44
Edit Download
197.12 KB lrw-r--r-- 2023-11-13 21:47:44
Edit Download
849 B lrw-r--r-- 2023-11-13 21:47:44
Edit Download

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