commit | 9bb7b96c4d22f66abc0ce1dba5c94b989e4cb72a | [log] [tgz] |
---|---|---|
author | Edward Lemur <ehmaldonado@chromium.org> | Wed Oct 30 22:16:10 2019 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Oct 30 22:16:10 2019 +0000 |
tree | 3c51d5f7e8556881f7dac926593cf0613fd504fb | |
parent | 48cda092cd869135948444c156478185289104ab [diff] [blame] |
git-rebase-update: Make tests run on Python 3. Bug: 1009809 Change-Id: I47c9a468b2922248b823ebae5e71863a698c30f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1889166 Reviewed-by: Anthony Polito <apolito@google.com> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
diff --git a/git_rename_branch.py b/git_rename_branch.py index 8a07535..d40b606 100755 --- a/git_rename_branch.py +++ b/git_rename_branch.py
@@ -42,7 +42,7 @@ if branch_config(branch, 'remote') == '.': set_branch_config(branch, 'merge', 'refs/heads/' + opts.new_name) except subprocess2.CalledProcessError as cpe: - sys.stderr.write(cpe.stderr) + sys.stderr.write(cpe.stderr.decode('utf-8', 'replace')) return 1 return 0