From: funilrys Date: Fri, 2 Mar 2018 21:51:10 +0000 (+0100) Subject: Review of the `domain_to_idna()` notes. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=bebf7744caff333c487f2bdb491d3a4427319998;p=stevenblack-hosts.git Review of the `domain_to_idna()` notes. This patch fix : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971574 --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 7c1afab76..3231e954e 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -1146,7 +1146,7 @@ def domain_to_idna(line): Notes ----- - - This method/function encode only the domain to `idna` format because in + - This function encode only the domain to `idna` format because in most cases the encoding issue is due to a domain which looks like `b'\xc9\xa2oogle.com'.decode('idna')`. - About the splitting: