1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Remove unneeded [] from list comprehension

Co-authored-by: Viranch Mehta <email@viranch.me>
This commit is contained in:
Ross McFarland
2022-07-04 20:40:00 -07:00
committed by GitHub
parent c98b5abdf3
commit e671e7e57a

View File

@@ -22,7 +22,7 @@ def idna_encode(name):
def idna_decode(name):
pieces = name.lower().split('.')
if any([p.startswith('xn--') for p in pieces]):
if any(p.startswith('xn--') for p in pieces):
# it's idna
if name.startswith('*'):
# idna.decode doesn't like the *