-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6614f3f
commit 8b55055
Showing
16 changed files
with
12,497 additions
and
12,186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
from .core import * | ||
from .codec import * | ||
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') | ||
|
||
def nameprep(s: Any) -> None: | ||
raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol") |
Oops, something went wrong.