summaryrefslogtreecommitdiffstats
path: root/Doc/library/urllib.parse.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-11-07 12:57:04 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-11-07 12:57:04 (GMT)
commit7089a4e127ca88f8eafe904a307e002b48d0ad8d (patch)
tree919164d19a22899285558e743acbb18a4c71bcb2 /Doc/library/urllib.parse.rst
parent4a3c7c4ecf3fef60633c50b3ab07057afdd7fe18 (diff)
downloadcpython-7089a4e127ca88f8eafe904a307e002b48d0ad8d.zip
cpython-7089a4e127ca88f8eafe904a307e002b48d0ad8d.tar.gz
cpython-7089a4e127ca88f8eafe904a307e002b48d0ad8d.tar.bz2
Fix Issue10226 - Clarifying the role of the netloc separator.
Diffstat (limited to 'Doc/library/urllib.parse.rst')
-rw-r--r--Doc/library/urllib.parse.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index 7c6eaa6..a15ff47 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -48,11 +48,10 @@ The :mod:`urllib.parse` module defines the following functions:
>>> o.geturl()
'http://www.cwi.nl:80/%7Eguido/Python.html'
- If the scheme value is not specified, urlparse expects the netloc value to
- start with '//', following the syntax specifications from :rfc:`1808`.
- Otherwise, it is not possible to distinguish between netloc and path
- components, and would the indistinguishable component would be classified
- as the path as in a relative URL.
+ Following the syntax specifications in :rfc:`1808`, urlparse recognizes
+ a netloc only if it is properly introduced by '//'. Otherwise the
+ input is presumed to be a relative URL and thus to start with
+ a path component.
>>> from urlparse import urlparse
>>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')