From e671e7e57a96d3b7796250227c3d49272fab97e2 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Mon, 4 Jul 2022 20:40:00 -0700 Subject: [PATCH] Remove unneeded [] from list comprehension Co-authored-by: Viranch Mehta --- octodns/idna.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octodns/idna.py b/octodns/idna.py index 3d89063..9b5abae 100644 --- a/octodns/idna.py +++ b/octodns/idna.py @@ -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 *