Skip to content

Commit 3f4e7f7

Browse files
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 f49f6ba) Co-authored-by: Роман Донченко <[email protected]>
1 parent 9e4d031 commit 3f4e7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/urllib.parse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ task isn't already covered by the URL parsing functions above.
520520

521521
.. versionchanged:: 3.7
522522
Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now
523-
included in the set of reserved characters.
523+
included in the set of unreserved characters.
524524

525525
The optional *encoding* and *errors* parameters specify how to deal with
526526
non-ASCII characters, as accepted by the :meth:`str.encode` method.

0 commit comments

Comments
 (0)