Mercurial > repos > jpayne > bioproject_to_srr_2
annotate idna/compat.py @ 10:ccec96a537b7
planemo upload for repository https://toolrepo.galaxytrakr.org/view/jpayne/bioproject_to_srr_2/556cac4fb538
author | jpayne |
---|---|
date | Mon, 06 May 2024 00:12:39 -0400 |
parents | 5eb2d5e3bf22 |
children |
rev | line source |
---|---|
jpayne@7 | 1 from .core import * |
jpayne@7 | 2 from .codec import * |
jpayne@7 | 3 from typing import Any, Union |
jpayne@7 | 4 |
jpayne@7 | 5 def ToASCII(label: str) -> bytes: |
jpayne@7 | 6 return encode(label) |
jpayne@7 | 7 |
jpayne@7 | 8 def ToUnicode(label: Union[bytes, bytearray]) -> str: |
jpayne@7 | 9 return decode(label) |
jpayne@7 | 10 |
jpayne@7 | 11 def nameprep(s: Any) -> None: |
jpayne@7 | 12 raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') |
jpayne@7 | 13 |