aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool/bisect_driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'binary_search_tool/bisect_driver.py')
-rw-r--r--binary_search_tool/bisect_driver.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/binary_search_tool/bisect_driver.py b/binary_search_tool/bisect_driver.py
index 82df15d6..ac37ad9f 100644
--- a/binary_search_tool/bisect_driver.py
+++ b/binary_search_tool/bisect_driver.py
@@ -1,10 +1,10 @@
-# Copyright 2016 Googie Inc. All rights Reserved.
+# -*- 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.
#
# This script is used to help the compiler wrapper in the ChromeOS and
# Android build systems bisect for bad object files.
-#
-# pylint: disable=not-callable
-# pylint: disable=indentation
"""Utilities for bisection of ChromeOS and Android object files.
@@ -267,10 +267,10 @@ def cache_file(execargs, bisect_dir, cache, abs_file_path):
if CONTINUE_ON_REDUNDANCY:
return True
raise Exception(
- 'Trying to cache file %s multiple times. To avoid the error, set \
- CONTINUE_ON_REDUNDANCY to 1. For reference, the list of such files \
- will be written to %s' % (abs_file_path,
- os.path.join(population_dir, '_DUPS')))
+ 'Trying to cache file %s multiple times. To avoid the error, set ' \
+ 'BISECT_CONTINUE_ON_REDUNDANCY to 1. For reference, the list of ' \
+ 'such files will be written to %s' % (abs_file_path, os.path.join(
+ population_dir, '_DUPS')))
shutil.copy2(abs_file_path, bisect_path)
# Set cache object to be read-only so later compilations can't
@@ -278,7 +278,8 @@ def cache_file(execargs, bisect_dir, cache, abs_file_path):
os.chmod(bisect_path, 0o444)
return True
else:
- # File not found (happens when compilation fails but error code is still 0)
+ # File not found (happens when compilation fails but error code is still
+ # 0)
return False
except Exception:
print('Could not cache file %s' % abs_file_path, file=sys.stderr)