diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2017-10-31 18:05:54 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-31 12:06:09 -0400 |
| commit | 542e6b0207850432e225596bc6faacb297f71382 (patch) | |
| tree | f801e1d8f6b82e28809de9d36cafb1cee4b73c52 /django/utils/encoding.py | |
| parent | 8a6392e4c69fa6e51005d29ed8c0898e47ca0065 (diff) | |
[2.0.x] Refs #23919 -- Updated references to urllib.quote() to Python 3 location.
Backport of 23e551ce6c7956e4c143357643dab2e89d30bfe0 from master
Diffstat (limited to 'django/utils/encoding.py')
| -rw-r--r-- | django/utils/encoding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/encoding.py b/django/utils/encoding.py index 1ac14a66d7..4ff530c406 100644 --- a/django/utils/encoding.py +++ b/django/utils/encoding.py @@ -139,8 +139,8 @@ def iri_to_uri(iri): # sub-delims = "!" / "$" / "&" / "'" / "(" / ")" # / "*" / "+" / "," / ";" / "=" # unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" - # Of the unreserved characters, urllib.quote already considers all but - # the ~ safe. + # Of the unreserved characters, urllib.parse.quote() already considers all + # but the ~ safe. # The % character is also added to the list of safe characters here, as the # end of section 3.1 of RFC 3987 specifically mentions that % must not be # converted. |
