mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-05-13 18:07:25 +02: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…
x
Reference in New Issue
Block a user