Commit 683beb6c authored by Senthil Kumaran's avatar Senthil Kumaran

Merged revisions 86296 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86296 | senthil.kumaran | 2010-11-07 20:57:04 +0800 (Sun, 07 Nov 2010) | 3 lines

  Fix Issue10226 - Clarifying the role of the netloc separator.
........
parent 5edac047
...@@ -64,11 +64,10 @@ The :mod:`urlparse` module defines the following functions: ...@@ -64,11 +64,10 @@ The :mod:`urlparse` module defines the following functions:
'http://www.cwi.nl:80/%7Eguido/Python.html' 'http://www.cwi.nl:80/%7Eguido/Python.html'
If the scheme value is not specified, urlparse following the syntax Following the syntax specifications in :rfc:`1808`, urlparse recognizes
specifications from RFC 1808, expects the netloc value to start with '//', a netloc only if it is properly introduced by '//'. Otherwise the
Otherwise, it is not possible to distinguish between net_loc and path input is presumed to be a relative URL and thus to start with
component and would classify the indistinguishable component as path as in a path component.
a relative url.
>>> from urlparse import urlparse >>> from urlparse import urlparse
>>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html') >>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment