-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from kjd/format-code
Format code using `ruff`
- Loading branch information
Showing
17 changed files
with
12,447 additions
and
12,199 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
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.