diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2020-02-06 13:37:24 -0800 |
---|---|---|
committer | Zhizhou Yang <zhizhouy@google.com> | 2020-02-10 17:47:54 +0000 |
commit | 05c0470a26e78f56616188841216d76b10094c0d (patch) | |
tree | e2ef8b39424b7f30d6dd0ff4df7dda5f96456710 /binary_search_tool/test/generate_cmd.py | |
parent | 172ccc1af26665a0520db157186e971402a4754c (diff) | |
download | toolchain-utils-05c0470a26e78f56616188841216d76b10094c0d.tar.gz |
toolchain-utils: port binary_search_tool to python3
This patch migrates bisect tool in toolchain-utils to python 3.
BUG=chromium:1011676
TEST=Passed all unittests and run_bisect_tests.py
Change-Id: Ia6dd48d927eddcbb2118058f63b33be843d3eb7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2042219
Tested-by: Zhizhou Yang <zhizhouy@google.com>
Auto-Submit: Zhizhou Yang <zhizhouy@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'binary_search_tool/test/generate_cmd.py')
-rwxr-xr-x | binary_search_tool/test/generate_cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binary_search_tool/test/generate_cmd.py b/binary_search_tool/test/generate_cmd.py index 51e352e0..51b36b0a 100755 --- a/binary_search_tool/test/generate_cmd.py +++ b/binary_search_tool/test/generate_cmd.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2020 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be @@ -20,7 +20,7 @@ def Main(): if not os.path.exists('./is_setup'): return 1 file_name = 'cmd_script.sh' - with open(file_name, 'w') as f: + with open(file_name, 'w', encoding='utf-8') as f: f.write('Generated by generate_cmd.py') return 0 |