Fix for 7.4 encoding change
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
|||||||
import weakref
|
import weakref
|
||||||
from datetime import date, datetime
|
from datetime import date, datetime
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from ..compat import string_types, quote_plus, PY2
|
from ..compat import string_types, quote, PY2
|
||||||
|
|
||||||
# parts of URL to be omitted
|
# parts of URL to be omitted
|
||||||
SKIP_IN_PATH = (None, "", b"", [], ())
|
SKIP_IN_PATH = (None, "", b"", [], ())
|
||||||
@@ -49,7 +49,7 @@ def _make_path(*parts):
|
|||||||
# TODO: maybe only allow some parts to be lists/tuples ?
|
# TODO: maybe only allow some parts to be lists/tuples ?
|
||||||
return "/" + "/".join(
|
return "/" + "/".join(
|
||||||
# preserve ',' and '*' in url for nicer URLs in logs
|
# preserve ',' and '*' in url for nicer URLs in logs
|
||||||
quote_plus(_escape(p), b",*")
|
quote(_escape(p), b",*")
|
||||||
for p in parts
|
for p in parts
|
||||||
if p not in SKIP_IN_PATH
|
if p not in SKIP_IN_PATH
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ if PY2:
|
|||||||
from Queue import Queue
|
from Queue import Queue
|
||||||
else:
|
else:
|
||||||
string_types = str, bytes
|
string_types = str, bytes
|
||||||
from urllib.parse import quote_plus, urlencode, urlparse, unquote
|
from urllib.parse import quote, quote_plus, urlencode, urlparse, unquote
|
||||||
|
|
||||||
map = map
|
map = map
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
|
|||||||
Reference in New Issue
Block a user