[Python-checkins] cpython (merge 3.3 -> default): Fix issue16932: Fix the urlparse example. Remote :port when scheme is not

senthil.kumaran python-checkins at python.org
Tue Feb 26 10:02:32 CET 2013


http://hg.python.org/cpython/rev/9caad461936e
changeset:   82394:9caad461936e
parent:      82389:381de621ff6a
parent:      82393:8928205f57f6
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Tue Feb 26 01:04:45 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