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')
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 849 B | 0644 |
|
| codec.py | File | 3.37 KB | 0644 |
|
| compat.py | File | 360 B | 0644 |
|
| core.py | File | 12.53 KB | 0644 |
|
| idnadata.py | File | 41.36 KB | 0644 |
|
| intranges.py | File | 1.89 KB | 0644 |
|
| package_data.py | File | 21 B | 0644 |
|
| uts46data.py | File | 197.12 KB | 0644 |
|