[issue20271] urllib.parse.urlparse() accepts wrong URLs
Demian Brecht
report at bugs.python.org
Fri Mar 6 19:59:25 CET 2015
Demian Brecht added the comment:
> splitport() shouldn't handle auth, it should be called after auth is dropped with splituser().
Why shouldn't splitport() handle auth? Are you suggesting that in the eyes of splitport() that "user:password at host:port" should be invalid?
>>> parse.splitport('user:password at host:80')
('user:password at host', '80')
Seems to be reasonable behaviour to me. Why add the artificial constraint of calling splituser() first?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20271>
_______________________________________
More information about the Python-bugs-list
mailing list