Fix for 7.4 encoding change

This commit is contained in:
Chris B
2019-10-18 22:36:30 +00:00
committed by Honza Král
parent 1438d66045
commit f1df7ae604
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ from __future__ import unicode_literals
import weakref
from datetime import date, datetime
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
SKIP_IN_PATH = (None, "", b"", [], ())
@@ -49,7 +49,7 @@ def _make_path(*parts):
# TODO: maybe only allow some parts to be lists/tuples ?
return "/" + "/".join(
# preserve ',' and '*' in url for nicer URLs in logs
quote_plus(_escape(p), b",*")
quote(_escape(p), b",*")
for p in parts
if p not in SKIP_IN_PATH
)
+1 -1
View File
@@ -10,7 +10,7 @@ if PY2:
from Queue import Queue
else:
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
from queue import Queue