updateHostsFile.py fails to download from KADhosts under Python 2.7
Closed this issue · 5 comments
StevenBlack commented
Seeing this under Python 2.7.
Error in updating source: https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt
I suspect that write_data
is failing because of newly added cyrillic characters in commit 2bb7c27.
ARROWBOW commented
Unable to use it.Not working.
funilrys commented
Gonna try to fix it once I have time but if someone else have time to write a PR:
Here's in my opinion the best way to achieve the string decoding/encoding: https://stackoverflow.com/a/15918519/5308363
FadeMind commented
StevenBlack commented
Thanks Tomasz @FadeMind.
We still need to fix the encoding issue on Python 2.7...
funilrys commented
You can also close this @StevenBlack 👍