]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)
authorРоман Донченко <dpb@corrigendum.ru>
Mon, 18 Nov 2019 15:30:53 +0000 (18:30 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Nov 2019 15:30:53 +0000 (07:30 -0800)
`~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one.

Doc/library/urllib.parse.rst

index 84d289bc4415c8c7c925e4d04f187dcb34d0b6ea..2d4d5a9e60969fe7a45ccdc21f924bebcde43cfa 100644 (file)
@@ -529,7 +529,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.