utils.web.urlencode: Encode data into bytes.

This commit is contained in:
Valentin Lorentz 2012-08-05 16:57:40 +02:00
parent 1b6be5842f
commit 3dc8e04195

View File

@ -49,7 +49,9 @@ from str import normalizeWhitespace
Request = urllib2.Request
urlquote = urllib.quote
urlunquote = urllib.unquote
urlencode = urllib.urlencode
def urlencode(*args, **kwargs):
return urllib.urlencode(*args, **kwargs).encode()
class Error(Exception):
pass