Codebase list oslo-sphinx / 2525bb9
Make urlparse import Python3-compatible urlparse moved to urllib.parse, so the current code fails in Python3. Using six to ensure compatibility. Related-Bug: #1426898 Change-Id: I9297c886dcc361238e942cb8162f589072001094 Javier Pena 8 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1212 # under the License.
1313
1414 import os
15 from six.moves.urllib import parse
1516 import subprocess
16 import urlparse
1717
1818
1919 CGIT_BASE = 'http://git.openstack.org/cgit/'
3030 except subprocess.CalledProcessError:
3131 _cgit_link = 'unknown'
3232 else:
33 parsed = urlparse.urlparse(git_remote)
33 parsed = parse.urlparse(git_remote)
3434 _cgit_link = CGIT_BASE + parsed.path.lstrip('/')
3535 context['cgit_link'] = _cgit_link
3636 return context
33
44 pbr>=1.6
55 requests>=2.5.2
6 six>=1.9.0