diff options
Diffstat (limited to 'binary_search_tool/test/generate_cmd.py')
-rwxr-xr-x | binary_search_tool/test/generate_cmd.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/binary_search_tool/test/generate_cmd.py b/binary_search_tool/test/generate_cmd.py index f6876eda..51b36b0a 100755 --- a/binary_search_tool/test/generate_cmd.py +++ b/binary_search_tool/test/generate_cmd.py @@ -1,4 +1,9 @@ -#!/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 +# found in the LICENSE file. + """Generate a virtual cmd script for pass level bisection. This is a required argument for pass level bisecting. For unit test, we use @@ -15,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 |