summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorChuck Short <chuck.short@canonical.com>2013-08-14 07:51:53 -0400
committerChuck Short <chuck.short@canonical.com>2013-08-14 07:53:20 -0400
commiteaec23b7ca0f4f52aec643db158c22f0af0d70c1 (patch)
tree891279de1ae45b76e763f104651a2275d64a02b7 /openstack
parent2548344ec644de763a18d7f582094d2e26861887 (diff)
downloadoslo-eaec23b7ca0f4f52aec643db158c22f0af0d70c1.tar.gz
oslo-eaec23b7ca0f4f52aec643db158c22f0af0d70c1.tar.xz
oslo-eaec23b7ca0f4f52aec643db158c22f0af0d70c1.zip
py3kcompat: Add urljoin compatibility
Add urljoin for python2/python3 compatibility, used by python-keystoneclient. Change-Id: Ied0841bf6b34d0087002c77915031156767b3d8d Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/py3kcompat/urlutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openstack/common/py3kcompat/urlutils.py b/openstack/common/py3kcompat/urlutils.py
index 95ad274..04b3418 100644
--- a/openstack/common/py3kcompat/urlutils.py
+++ b/openstack/common/py3kcompat/urlutils.py
@@ -27,6 +27,7 @@ if six.PY3:
import urllib.parse
urlencode = urllib.parse.urlencode
+ urljoin = urllib.parse.urljoin
quote = urllib.parse.quote
parse_qsl = urllib.parse.parse_qsl
urlparse = urllib.parse.urlparse
@@ -42,6 +43,7 @@ else:
parse = urlparse
parse_qsl = parse.parse_qsl
+ urljoin = parse.urljoin
urlparse = parse.urlparse
urlsplit = parse.urlsplit
urlunsplit = parse.urlunsplit