[issue20270] urllib.parse doesn't work with empty port

2014-01-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue20270] urllib.parse doesn't work with empty port

2014-01-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset a4a51a0d4575 by Serhiy Storchaka in branch '2.7': Issue #20270: urllib and urlparse now support empty ports. http://hg.python.org/cpython/rev/a4a51a0d4575 New changeset 52edc7087c81 by Serhiy Storchaka in branch '3.3': Issue #20270: urllib.urlparse

[issue20270] urllib.parse doesn't work with empty port

2014-01-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: According to RFC 3986 the port subcomponent is defined as zero or more decimal digits delimited from the host by a single colon. I.e. 'python.org:' is valid (but not normalized) form. Empty port is equivalent to absent port. >>> import urllib.parse >>> p =