Serhiy Storchaka added the comment:
First, I think urllib.parse is not the best place for doing such checks. Even
if add some checks in urllib.parse, they should be added also at lower level in
urllib.request or concrete protocol implementations.
Second, PR 2303 actually doesn't reject arguments with '\n'.
splithost('example.org\n') will return a tuple ('example.org\n', None), etc.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30713>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com