Skip to content

Commit

Permalink
Correct the description of the 3.7 change in urllib.parse.quote (pyth…
Browse files Browse the repository at this point in the history
…onGH-17065)

`~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one.
  • Loading branch information
SpecLad authored and miss-islington committed Nov 18, 2019
1 parent 289cf0f commit f49f6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/urllib.parse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f49f6ba

Please sign in to comment.