summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-02-26 01:04:45 -0800
committerSenthil Kumaran <senthil@uthcode.com>2013-02-26 01:04:45 -0800
commit139a63fb85397e8051697adff053d0dc3fef37f9 (patch)
tree6c6be0539dd93faaeaed717f090ed9664626024a
parent25c3053a4f65fecaa7dfcabdbd7627a425d1a812 (diff)
parent514f056a89a624e4d11dfa5a0e1c0fdb4d820a79 (diff)
downloadcpython-git-139a63fb85397e8051697adff053d0dc3fef37f9.tar.gz
Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior
-rw-r--r--Doc/library/urllib.parse.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index 208cb9716c..1ad0ef77ef 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -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')