Return the Punycode of the given domain if it's non-ASCII.
(domain)
| 206 | |
| 207 | |
| 208 | def punycode(domain): |
| 209 | """Return the Punycode of the given domain if it's non-ASCII.""" |
| 210 | return domain.encode("idna").decode("ascii") |
| 211 | |
| 212 | |
| 213 | def repercent_broken_unicode(path): |
no test coverage detected