mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-01-06 11:09:57 -08:00
bf07912711
* Bump idna from 3.7 to 3.10 Bumps [idna](https://github.com/kjd/idna) from 3.7 to 3.10. - [Release notes](https://github.com/kjd/idna/releases) - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst) - [Commits](https://github.com/kjd/idna/compare/v3.7...v3.10) --- updated-dependencies: - dependency-name: idna dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update idna==3.10 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
16 lines
316 B
Python
16 lines
316 B
Python
from typing import Any, Union
|
|
|
|
from .core import decode, encode
|
|
|
|
|
|
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")
|