Skip to content

Commit

Permalink
Correct the description of the 3.7 change in urllib.parse.quote (GH-1…
Browse files Browse the repository at this point in the history
…7065)

`~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one.
(cherry picked from commit f49f6ba)

Co-authored-by: Роман Донченко <dpb@corrigendum.ru>
  • Loading branch information
miss-islington and SpecLad committed Nov 18, 2019
1 parent 9e4d031 commit 3f4e7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/urllib.parse.rst
Expand Up @@ -520,7 +520,7 @@ task isn't already covered by the URL parsing functions above.

.. versionchanged:: 3.7
Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now
included in the set of reserved characters.
included in the set of unreserved characters.

The optional *encoding* and *errors* parameters specify how to deal with
non-ASCII characters, as accepted by the :meth:`str.encode` method.
Expand Down

0 comments on commit 3f4e7f7

Please sign in to comment.