Skip to content
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

url_escape with a "quote" option (not quote_plus) #25

Closed
sylvainvivien opened this issue Oct 18, 2009 · 0 comments
Closed

url_escape with a "quote" option (not quote_plus) #25

sylvainvivien opened this issue Oct 18, 2009 · 0 comments

Comments

@sylvainvivien
Copy link

Could you add an option for the url_escape method that don't use
quote_plus but only quote.

Something like this :

def url_escape(value, quote_plus=True):
"""Returns a valid URL-encoded version of the given value."""
if quote_plus:
return urllib.quote_plus(utf8(value))
return urllib.quote(utf8(value))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant