mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
#6118: dont ignore encoding arguments for arguments with spaces in quote_plus().
This commit is contained in:
parent
8ca69de237
commit
faf4149f72
3 changed files with 19 additions and 1 deletions
|
@ -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='/'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue