diff options
author | Joshua Harlow <jxharlow@godaddy.com> | 2016-06-01 15:15:40 -0700 |
---|---|---|
committer | Joshua Harlow <jxharlow@godaddy.com> | 2016-06-01 16:46:04 -0700 |
commit | d901a7bd61db6a60e909978ffa9cd0e340519cfc (patch) | |
tree | 1dd64f6fcf206705bfd4184996b44ef4df918ea9 | |
parent | c327f858e6934d2558267e91085d588077921c89 (diff) | |
download | oslosphinx-d901a7bd61db6a60e909978ffa9cd0e340519cfc.tar.gz |
Subprocess returns bytes in py34.5.0
When later used the current code will break in
python3 due to:
TypeError: 'str' does not support the buffer
interface
Change-Id: I11572dd510ce8255ed66de56d5d9000755f7fee2
-rw-r--r-- | oslosphinx/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oslosphinx/__init__.py b/oslosphinx/__init__.py index 4613c89..8afd029 100644 --- a/oslosphinx/__init__.py +++ b/oslosphinx/__init__.py @@ -54,6 +54,8 @@ def _html_page_context(app, pagename, templatename, context, doctree): raw_version_list = '' # grab last five that start with a number and reverse the order + if six.PY3: + raw_version_list = raw_version_list.decode("utf8") other_versions = [t for t in raw_version_list.split('\n') if t and t[0] in string.digits][:-6:-1] context['other_versions'] = other_versions |