comparison idna/compat.py @ 7:5eb2d5e3bf22

planemo upload for repository https://toolrepo.galaxytrakr.org/view/jpayne/bioproject_to_srr_2/556cac4fb538
author jpayne
date Sun, 05 May 2024 23:32:17 -0400
parents
children
comparison
equal deleted inserted replaced
6:b2745907b1eb 7:5eb2d5e3bf22
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