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

sylvainvivien opened this Issue Oct 18, 2009 · 0 comments


None yet
1 participant

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

@bdarnell bdarnell closed this in 7056d6f May 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment