summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-02-26 09:04:22 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-02-26 09:04:22 (GMT)
commit514f056a89a624e4d11dfa5a0e1c0fdb4d820a79 (patch)
tree1482cad82abfc4618cb3d3c96797a25f7e38d6de
parent29ec595c6a705428784d24eb7e03681637c4eb03 (diff)
parent8fd366978d2020b28442831bd28df85824856e30 (diff)
downloadcpython-514f056a89a624e4d11dfa5a0e1c0fdb4d820a79.zip
cpython-514f056a89a624e4d11dfa5a0e1c0fdb4d820a79.tar.gz
cpython-514f056a89a624e4d11dfa5a0e1c0fdb4d820a79.tar.bz2
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 208cb97..1ad0ef7 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')