[Python-checkins] Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)

Miss Islington (bot) webhook-mailer at python.org
Mon Nov 18 10:42:25 EST 2019


https://github.com/python/cpython/commit/3f4e7f7eb342daa41922d00366827b0a1b233bf7
commit: 3f4e7f7eb342daa41922d00366827b0a1b233bf7
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-11-18T07:42:20-08:00
summary:

Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)


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

Co-authored-by: Роман Донченко <dpb at corrigendum.ru>

files:
M Doc/library/urllib.parse.rst

diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index ddc3ee23f48a7..f499412144008 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -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.



More information about the Python-checkins mailing list