Remove unneeded [] from list comprehension

Co-authored-by: Viranch Mehta <[email protected]>
This commit is contained in:
Ross McFarland
2022-07-04 20:40:00 -07:00
committed by GitHub
parent c98b5abdf3
commit e671e7e57a
+1 -1
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 *