mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-17 07:48:03 +00:00
Document empty except in domain_to_idna
This commit is contained in:
1 parent
d6ca0b04fb
commit
be1cc7bc72
1 file changed
+1
@@ -1666,6 +1666,7 @@ def domain_to_idna(line):
|
||||
|
||||
splited_line[index] = splited_line[index].encode("IDNA").decode("UTF-8")
|
||||
except IndexError:
|
||||
# No hostname field to encode, leave the line as-is.
|
||||
pass
|
||||
return separator.join(splited_line)
|
||||
return line.encode("IDNA").decode("UTF-8")
|
||||
|
||||
Reference in new issue
Block a user