make utils.web.urlencode return a string, not bytes.

This commit is contained in:
Valentin Lorentz 2015-09-09 22:02:19 +02:00
parent b51075969f
commit 879ce460e9

View File

@ -69,7 +69,7 @@ else:
urlunquote = urllib.parse.unquote urlunquote = urllib.parse.unquote
urlopen = urllib.request.urlopen urlopen = urllib.request.urlopen
def urlencode(*args, **kwargs): def urlencode(*args, **kwargs):
return urllib.parse.urlencode(*args, **kwargs).encode() return urllib.parse.urlencode(*args, **kwargs)
from urllib.error import HTTPError, URLError from urllib.error import HTTPError, URLError
from urllib.parse import splithost, splituser from urllib.parse import splithost, splituser