[Python-checkins] cpython (merge 3.2 -> 3.3): Fix issue16932: Fix the urlparse example. Remote :port when scheme is not
senthil.kumaran
python-checkins at python.org
Tue Feb 26 10:02:31 CET 2013
http://hg.python.org/cpython/rev/8928205f57f6
changeset: 82393:8928205f57f6
branch: 3.3
parent: 82388:ebeed44702ec
parent: 82392:5442a77b925c
user: Senthil Kumaran <senthil at uthcode.com>
date: Tue Feb 26 01:04:22 2013 -0800
summary:
Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior
files:
Doc/library/urllib.parse.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -69,7 +69,7 @@
>>> 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')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list