Skip to content

Commit

Permalink
Remove redundant lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
john-kurkowski committed Mar 4, 2022
1 parent 97cb05c commit 226bfc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tldextract/tldextract.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def _decode_punycode(label: str) -> str:
looks_like_puny = lowered.startswith("xn--")
if looks_like_puny:
try:
return idna.decode(label.encode("ascii")).lower()
return idna.decode(lowered.encode("ascii"))
except (UnicodeError, IndexError):
pass
return lowered

0 comments on commit 226bfc2

Please sign in to comment.