diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-01-26 14:25:15 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-01-26 19:49:03 +0100 |
| commit | fee42fd99ee470528858c2ccb3621135c30ec262 (patch) | |
| tree | b7d0905a11f28a0b554d39b30e0286dca2a07cc1 /docs/ref/utils.txt | |
| parent | af598187ecd9ddf398aa7a68a2b955599ddf3ae1 (diff) | |
Refs #23919 -- Replaced usage of django.utils.http utilities with Python equivalents
Thanks Tim Graham for the review.
Diffstat (limited to 'docs/ref/utils.txt')
| -rw-r--r-- | docs/ref/utils.txt | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index cc6cf74478..7acf057e08 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -684,27 +684,10 @@ escaping HTML. .. module:: django.utils.http :synopsis: HTTP helper functions. (URL encoding, cookie handling, ...) -.. function:: urlquote(url, safe='/') - - A version of Python's ``urllib.quote()`` function that can operate on - unicode strings. The url is first UTF-8 encoded before quoting. The - returned string can safely be used as part of an argument to a subsequent - ``iri_to_uri()`` call without double-quoting occurring. Employs lazy - execution. - -.. function:: urlquote_plus(url, safe='') - - A version of Python's urllib.quote_plus() function that can operate on - unicode strings. The url is first UTF-8 encoded before quoting. The - returned string can safely be used as part of an argument to a subsequent - ``iri_to_uri()`` call without double-quoting occurring. Employs lazy - execution. - .. function:: urlencode(query, doseq=0) - A version of Python's urllib.urlencode() function that can operate on - unicode strings. The parameters are first cast to UTF-8 encoded strings - and then encoded as per normal. + A version of Python's :func:`urllib.parse.urlencode` function that can + operate on ``MultiValueDict`` and non-string values. .. function:: cookie_date(epoch_seconds=None) |
