mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
make utils.web.urlencode return a string, not bytes.
This commit is contained in:
parent
b51075969f
commit
879ce460e9
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user