From 171a932236929c4c5204a4624951c3a73d32640d Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 3 Mar 2017 14:46:12 -0500 Subject: [PATCH] decode command output in list-changes Change-Id: Ia8a918875b291a13bf77f7908c76240579c767dc Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_changes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openstack_releases/cmds/list_changes.py b/openstack_releases/cmds/list_changes.py index 0c732065d6..dd32da9c9b 100644 --- a/openstack_releases/cmds/list_changes.py +++ b/openstack_releases/cmds/list_changes.py @@ -74,7 +74,10 @@ def git_branch_contains(workdir, repo, title, commit): header('%s %s' % (title, commit)) cmd = ['git', 'branch', '-r', '--contains', commit] print('\n' + ' '.join(cmd) + '\n') - out = subprocess.check_output(cmd, cwd=os.path.join(workdir, repo)) + out = subprocess.check_output( + cmd, + cwd=os.path.join(workdir, repo), + ).decode('utf-8') print(out) return sorted( o.strip() @@ -386,7 +389,7 @@ def main(): '--contains', previous_release['version']], cwd=os.path.join(workdir, project['repo']), - ).split() + ).decode('utf-8').split() print('Containing tags:', containing_tags) if new_release['version'] not in containing_tags: print('WARNING: Missing %s' % new_release['version'])