aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/utils.py')
-rw-r--r--netlib/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/netlib/utils.py b/netlib/utils.py
index 6f6d1ea0..8b9548ed 100644
--- a/netlib/utils.py
+++ b/netlib/utils.py
@@ -237,8 +237,9 @@ def parse_url(url):
if isinstance(url, six.binary_type):
host = parsed.hostname
- # this should not raise a ValueError
- decode_parse_result(parsed, "ascii")
+ # this should not raise a ValueError,
+ # but we try to be very forgiving here and accept just everything.
+ # decode_parse_result(parsed, "ascii")
else:
host = parsed.hostname.encode("idna")
parsed = encode_parse_result(parsed, "ascii")