]> granicus.if.org Git - python/commitdiff
Merged revisions 82324 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Mon, 28 Jun 2010 14:08:00 +0000 (14:08 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Mon, 28 Jun 2010 14:08:00 +0000 (14:08 +0000)
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.
........

Lib/urllib/parse.py

index 0b96b5b41d329fc4d8f388e8c7fa0e7b4d296663..ffb0ff72dfe46e56f3292c4101c7093e6803b7fc 100644 (file)
@@ -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