diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-28 14:08:00 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-28 14:08:00 (GMT) |
commit | 8749a6347328b091a472d07305aaf82353dda3e8 (patch) | |
tree | 8a69944593a622b5d6087ee53af57ea4436da2b5 /Lib/urllib/parse.py | |
parent | b7183d8c1f777862a914f34b437ab4e1f517955f (diff) | |
download | cpython-8749a6347328b091a472d07305aaf82353dda3e8.zip cpython-8749a6347328b091a472d07305aaf82353dda3e8.tar.gz cpython-8749a6347328b091a472d07305aaf82353dda3e8.tar.bz2 |
Merged revisions 82324 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82324 | senthil.kumaran | 2010-06-28 19:26:46 +0530 (Mon, 28 Jun 2010) | 3 lines
Fix Issue8653 - Docstring for urlunsplit function.
........
Diffstat (limited to 'Lib/urllib/parse.py')
-rw-r--r-- | Lib/urllib/parse.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 0b96b5b..ffb0ff7 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -221,6 +221,11 @@ def urlunparse(components): return urlunsplit((scheme, netloc, url, query, fragment)) def urlunsplit(components): + """Combine the elements of a tuple as returned by urlsplit() into a + complete URL as a string. The data argument can be any five-item iterable. + This may result in a slightly different, but equivalent URL, if the URL that + was parsed originally had unnecessary delimiters (for example, a ? with an + empty query; the RFC states that these are equivalent).""" scheme, netloc, url, query, fragment = components if netloc or (scheme and scheme in uses_netloc and url[:2] != '//'): if url and url[:1] != '/': url = '/' + url |