@@ -306,7 +306,8 @@ or on combining URL components into a URL string.
306306 separator key, with ``& `` as the default separator.
307307
308308
309- .. function :: urlunparse(parts, *, keep_empty=False)
309+ .. function :: urlunparse(parts)
310+ urlunparse(parts, *, keep_empty)
310311
311312 Construct a URL from a tuple as returned by ``urlparse() ``. The *parts *
312313 argument can be any six-item iterable.
@@ -317,7 +318,7 @@ or on combining URL components into a URL string.
317318
318319 If *keep_empty * is true, empty strings are kept in the result (for example,
319320 a ``? `` for an empty query), only ``None `` components are omitted.
320- This allows to restore the URL that was parsed with option
321+ This allows rebuilding a URL that was parsed with option
321322 ``missing_as_none=True ``.
322323 By default, *keep_empty * is true if *parts * is the result of the
323324 :func: `urlparse ` call with ``missing_as_none=True ``.
@@ -406,7 +407,8 @@ or on combining URL components into a URL string.
406407
407408.. _WHATWG spec : https://url.spec.whatwg.org/#concept-basic-url-parser
408409
409- .. function :: urlunsplit(parts, *, keep_empty=False)
410+ .. function :: urlunsplit(parts)
411+ urlunsplit(parts, *, keep_empty)
410412
411413 Combine the elements of a tuple as returned by :func: `urlsplit ` into a
412414 complete URL as a string. The *parts * argument can be any five-item
@@ -418,7 +420,7 @@ or on combining URL components into a URL string.
418420
419421 If *keep_empty * is true, empty strings are kept in the result (for example,
420422 a ``? `` for an empty query), only ``None `` components are omitted.
421- This allows to restore the URL that was parsed with option
423+ This allows rebuilding a URL that was parsed with option
422424 ``missing_as_none=True ``.
423425 By default, *keep_empty * is true if *parts * is the result of the
424426 :func: `urlsplit ` call with ``missing_as_none=True ``.
0 commit comments