mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-27 12:44:19 +01:00
utils.web.urlencode: Encode data into bytes.
This commit is contained in:
parent
1b6be5842f
commit
3dc8e04195
@ -49,7 +49,9 @@ from str import normalizeWhitespace
|
|||||||
Request = urllib2.Request
|
Request = urllib2.Request
|
||||||
urlquote = urllib.quote
|
urlquote = urllib.quote
|
||||||
urlunquote = urllib.unquote
|
urlunquote = urllib.unquote
|
||||||
urlencode = urllib.urlencode
|
|
||||||
|
def urlencode(*args, **kwargs):
|
||||||
|
return urllib.urlencode(*args, **kwargs).encode()
|
||||||
|
|
||||||
class Error(Exception):
|
class Error(Exception):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user