commit | faf4149f72575a826f65f7e0747254088195ef9b | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Tue May 26 18:31:11 2009 +0000 |
committer | Georg Brandl <georg@python.org> | Tue May 26 18:31:11 2009 +0000 |
tree | 1fdfc7d8f1f18776188e051e4a695866bc428ae2 | |
parent | 8ca69de23772af21a2e697ab7e73a72e29ef178d [diff] [blame] |
#6118: dont ignore encoding arguments for arguments with spaces in quote_plus().
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 9033683..726e85f 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py
@@ -488,7 +488,7 @@ 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='/'):