#6118: dont ignore encoding arguments for arguments with spaces in quote_plus().

This commit is contained in:
Georg Brandl 2009-05-26 18:31:11 +00:00
parent 8ca69de237
commit faf4149f72
3 changed files with 19 additions and 1 deletions

View file

@ -488,7 +488,7 @@ def quote_plus(string, safe='', encoding=None, errors=None):
space = ' '
else:
space = b' '
string = quote(string, safe + space)
string = quote(string, safe + space, encoding, errors)
return string.replace(' ', '+')
def quote_from_bytes(bs, safe='/'):