]> jfr.im git - dlqueue.git/blob - venv/lib/python3.11/site-packages/pip/_vendor/idna/compat.py
init: venv aand flask
[dlqueue.git] / venv / lib / python3.11 / site-packages / pip / _vendor / idna / compat.py
1 from .core import *
2 from .codec import *
3 from typing import Any, Union
4
5 def ToASCII(label: str) -> bytes:
6 return encode(label)
7
8 def ToUnicode(label: Union[bytes, bytearray]) -> str:
9 return decode(label)
10
11 def nameprep(s: Any) -> None:
12 raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol')
13