join base_url and path nicely

This commit is contained in:
debugtalk
2018-04-22 12:53:56 +08:00
parent 4a414e3604
commit cca68381e8
2 changed files with 4 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ except ImportError:
if is_py2:
from urllib3.packages.ordered_dict import OrderedDict
from urlparse import urljoin
builtin_str = str
bytes = str
@@ -44,6 +45,7 @@ if is_py2:
elif is_py3:
from collections import OrderedDict
from urllib.parse import urljoin
builtin_str = str
str = str