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 f49f6baa6b)

Co-authored-by: Роман Донченко <dpb@corrigendum.ru>
This commit is contained in:
Miss Islington (bot) 2019-11-18 07:42:13 -08:00 committed by GitHub
parent 42a4359390
commit ca877c7523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ task isn't already covered by the URL parsing functions above.
.. versionchanged:: 3.7 .. versionchanged:: 3.7
Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now 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 The optional *encoding* and *errors* parameters specify how to deal with
non-ASCII characters, as accepted by the :meth:`str.encode` method. non-ASCII characters, as accepted by the :meth:`str.encode` method.