git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d06bea8
)
Review of the `domain_to_idna()` notes.
author
funilrys
<redacted>
Fri, 2 Mar 2018 21:51:10 +0000
(22:51 +0100)
committer
funilrys
<redacted>
Fri, 2 Mar 2018 21:51:10 +0000
(22:51 +0100)
This patch fix : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971574
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 7c1afab76d4afea94478be03a1674bd1a8370172..3231e954e50ce5d442585d5a04de2106a8be778d 100644
(file)
--- 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:
git clone https://git.99rst.org/PROJECT