Codebase list oslo-sphinx / d901a7b
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
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5353 raw_version_list = ''
5454
5555 # 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")
5658 other_versions = [t for t in raw_version_list.split('\n')
5759 if t and t[0] in string.digits][:-6:-1]
5860 context['other_versions'] = other_versions