]> granicus.if.org Git - python/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:58 +0000 (01:02 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 26 Feb 2013 09:02:58 +0000 (01:02 -0800)
Doc/library/urllib.parse.rst

index bc1da62b3f2e8b59a4a4f5959bdacb49453fe317..61fc47183755dcfad8469fcfff7d4597cf1ed116 100644 (file)
@@ -69,7 +69,7 @@ or on combining URL components into a URL string.
        >>> 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')