summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslosphinx/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/oslosphinx/__init__.py b/oslosphinx/__init__.py
index 94738e8..773ceb6 100644
--- a/oslosphinx/__init__.py
+++ b/oslosphinx/__init__.py
@@ -55,14 +55,13 @@ def _get_other_versions(app):
try:
raw_version_list = subprocess.Popen(
git_cmd, stdout=subprocess.PIPE).communicate()[0]
+ raw_version_list = raw_version_list.decode("utf8")
except OSError:
app.warn('Cannot get tags from git repository. '
'Not setting "other_versions".')
- raw_version_list = ''
+ raw_version_list = u''
# grab last five that start with a number and reverse the order
- if six.PY3:
- raw_version_list = raw_version_list.decode("utf8")
_tags = [t.strip("'") for t in raw_version_list.split('\n')]
other_versions = [
t for t in _tags if t and t[0] in string.digits