summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-26 18:31:11 (GMT)
committerGeorg Brandl <georg@python.org>2009-05-26 18:31:11 (GMT)
commitfaf4149f72575a826f65f7e0747254088195ef9b (patch)
tree1fdfc7d8f1f18776188e051e4a695866bc428ae2 /Lib/urllib
parent8ca69de23772af21a2e697ab7e73a72e29ef178d (diff)
downloadcpython-faf4149f72575a826f65f7e0747254088195ef9b.zip
cpython-faf4149f72575a826f65f7e0747254088195ef9b.tar.gz
cpython-faf4149f72575a826f65f7e0747254088195ef9b.tar.bz2
#6118: dont ignore encoding arguments for arguments with spaces in quote_plus().
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/parse.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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='/'):