]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified...
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 26 Feb 2013 09:02:14 +0000 (01:02 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 26 Feb 2013 09:02:14 +0000 (01:02 -0800)
Doc/library/urlparse.rst

index 6354cce3cbaf31c4b138332fe228b0d803b3bc3d..efd112d1758e96fa902626ce9f2bf2b3868a205c 100644 (file)
@@ -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')