cpython: Lib/urllib/parse.py diff (original) (raw)

Mercurial > cpython

diff Lib/urllib/parse.py @ 77120:d769e64aed79 3.2

Issue #14036: return None when port in urlparse cross 65535 [#14036]

author Senthil Kumaran senthil@uthcode.com
date Thu, 24 May 2012 21:56:17 +0800
parents 9f6b7576c08c
children ea25ce432343

line wrap: on

line diff

--- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -143,6 +143,9 @@ class _NetlocResultMixinBase(object): port = self._hostinfo[1] if port is not None: port = int(port, 10)