diff options
-rw-r--r-- | oslosphinx/__init__.py | 4 | ||||
-rw-r--r-- | requirements.txt | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/oslosphinx/__init__.py b/oslosphinx/__init__.py index d31e81d..f788147 100644 --- a/oslosphinx/__init__.py +++ b/oslosphinx/__init__.py @@ -13,8 +13,8 @@ # under the License. import os +from six.moves.urllib import parse import subprocess -import urlparse CGIT_BASE = 'http://git.openstack.org/cgit/' @@ -31,7 +31,7 @@ def _html_page_context(app, pagename, templatename, context, doctree): except subprocess.CalledProcessError: _cgit_link = 'unknown' else: - parsed = urlparse.urlparse(git_remote) + parsed = parse.urlparse(git_remote) _cgit_link = CGIT_BASE + parsed.path.lstrip('/') context['cgit_link'] = _cgit_link return context diff --git a/requirements.txt b/requirements.txt index 44da7c5..ac98e29 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ pbr>=1.6 requests>=2.5.2 +six>=1.9.0 |