From 879ce460e94b798ee11e0a91af1d725dafeffec7 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 9 Sep 2015 22:02:19 +0200 Subject: [PATCH] make utils.web.urlencode return a string, not bytes. --- src/utils/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/web.py b/src/utils/web.py index 81fb889eb..8bc280a2d 100644 --- a/src/utils/web.py +++ b/src/utils/web.py @@ -69,7 +69,7 @@ else: urlunquote = urllib.parse.unquote urlopen = urllib.request.urlopen 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.parse import splithost, splituser