Subprocess returns bytes in py3
When later used the current code will break in
python3 due to:
TypeError: 'str' does not support the buffer
interface
Change-Id: I11572dd510ce8255ed66de56d5d9000755f7fee2
Joshua Harlow
7 years ago
53 | 53 | raw_version_list = '' |
54 | 54 | |
55 | 55 | # grab last five that start with a number and reverse the order |
56 | if six.PY3: | |
57 | raw_version_list = raw_version_list.decode("utf8") | |
56 | 58 | other_versions = [t for t in raw_version_list.split('\n') |
57 | 59 | if t and t[0] in string.digits][:-6:-1] |
58 | 60 | context['other_versions'] = other_versions |