Skip to content

bpo-35100: add unquote_to_bytes_plus to the urllib.parse module #12368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

bpo-35100: add unquote_to_bytes_plus to the urllib.parse module #12368

wants to merge 9 commits into from

Conversation

andrew-g-za
Copy link

@andrew-g-za andrew-g-za commented Mar 16, 2019

  • add unquote_to_bytes_plus to the urllib.parse module

https://bugs.python.org/issue35100

* Add unquote_to_bytes_plus to urllib.parse module
.. function:: unquote_to_bytes_plus(string)

Like :func:`unquote_to_bytes`, but also replace plus signs by spaces, as required for
unquoting HTML form values.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace plus signs with spaces

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. would like me to make the same change in the docmentation for the unquote_plus() method?

@andrew-g-za
Copy link
Author

Hey @vadmium - any chance of taking another look at this one?

@@ -575,6 +575,16 @@ task isn't already covered by the URL parsing functions above.
Example: ``unquote_to_bytes('a%26%EF')`` yields ``b'a&\xef'``.


.. function:: unquote_to_bytes_plus(string)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though other functions don't have versionadded directive I think it will be good to add one to this addition. 3.8 beta 1 has been released so I am not sure if this can be merged to 3.8.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've updated the docs with the versionadded directive set to 3.9, which seems the most logical.

Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants