]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Nov 2019 15:42:20 +0000 (07:42 -0800)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2019 15:42:20 +0000 (07:42 -0800)
`~` 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@corrigendum.ru>
Doc/library/urllib.parse.rst

index ddc3ee23f48a7c64f7ad06f7ff6715d96cdb0bdc..f49941214400850c0a6dac239620176bcc2d8be1 100644 (file)
@@ -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.