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:
		@@ -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 *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user