summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-02-26 09:02:58 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-02-26 09:02:58 (GMT)
commit8fd366978d2020b28442831bd28df85824856e30 (patch)
tree653682b0979f16de37f9e081ad10dadd1efd1349
parenta5f13d2a5f03cb47da4daa85d0297a63897c92c9 (diff)
downloadcpython-8fd366978d2020b28442831bd28df85824856e30.zip
cpython-8fd366978d2020b28442831bd28df85824856e30.tar.gz
cpython-8fd366978d2020b28442831bd28df85824856e30.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 bc1da62..61fc471 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')