From: Senthil Kumaran Date: Tue, 26 Feb 2013 09:02:14 +0000 (-0800) Subject: Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified... X-Git-Tag: v2.7.4rc1~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1bbc0b3dc870ecb7621fa7499f2347fe4a6a8e7;p=thirdparty%2FPython%2Fcpython.git Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior --- diff --git a/Doc/library/urlparse.rst b/Doc/library/urlparse.rst index 6354cce3cbaf..efd112d1758e 100644 --- a/Doc/library/urlparse.rst +++ b/Doc/library/urlparse.rst @@ -71,7 +71,7 @@ The :mod:`urlparse` module defines the following functions: >>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html') ParseResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html', params='', query='', fragment='') - >>> urlparse('www.cwi.nl:80/%7Eguido/Python.html') + >>> urlparse('www.cwi.nl/%7Eguido/Python.html') ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html', params='', query='', fragment='') >>> urlparse('help/Python.html')