From: Роман Донченко Date: Mon, 18 Nov 2019 15:30:53 +0000 (+0300) Subject: Correct the description of the 3.7 change in urllib.parse.quote (GH-17065) X-Git-Tag: v3.9.0a1~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f49f6baa6bf7916ac039194c24b59d2eff5b180a;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst index 84d289bc4415..2d4d5a9e6096 100644 --- a/Doc/library/urllib.parse.rst +++ b/Doc/library/urllib.parse.rst @@ -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.