aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2020-02-13 10:18:16 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-14 00:18:41 +0000
commitac96cb3e307c7edb96b05994b9deade0978c1e78 (patch)
tree3a9b045c6381b3be677e7eebb3c38d0069333e5d /binary_search_tool
parent8f1457d991b2da1ed26d0359a888995f3d761432 (diff)
downloadtoolchain-utils-ac96cb3e307c7edb96b05994b9deade0978c1e78.tar.gz
toolchain-utils: fix python3 errors in go scripts
There are several places go scrtips launching and generating python related code. This patch makes sure they are python 3 compatible. BUG=chromium:1042452, chromium:1011676 TEST=Passed all python and go tests. Change-Id: Ie531ceedb14ca2af94bd26f59ba4cab399ef1e6a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2054081 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Commit-Queue: Zhizhou Yang <zhizhouy@google.com> Tested-by: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com>
Diffstat (limited to 'binary_search_tool')
-rwxr-xr-xbinary_search_tool/compiler_wrapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/binary_search_tool/compiler_wrapper.py b/binary_search_tool/compiler_wrapper.py
index 8755ed42..0fd92c67 100755
--- a/binary_search_tool/compiler_wrapper.py
+++ b/binary_search_tool/compiler_wrapper.py
@@ -37,7 +37,7 @@ BISECT_DIR = os.environ.get('BISECT_DIR') or DEFAULT_BISECT_DIR
def ProcessArgFile(arg_file):
args = []
# Read in entire file at once and parse as if in shell
- with open(arg_file, 'rb') as f:
+ with open(arg_file, 'r', encoding='utf-8') as f:
args.extend(shlex.split(f.read()))
return args