(obj: str)
| 59 | |
| 60 | |
| 61 | def to_ascii(obj: str) -> str: |
| 62 | def mapping(obj: str) -> str: |
| 63 | if REGEX_NON_ASCII.search(obj): |
| 64 | return "xn--" + encode(obj) |
| 65 | return obj |
| 66 | |
| 67 | return map_domain(obj, mapping) |
nothing calls this directly
no test coverage detected
searching dependent graphs…