diff options
author | Zijun <zijunzhao@google.com> | 2024-05-09 01:22:27 +0000 |
---|---|---|
committer | Zijun <zijunzhao@google.com> | 2024-05-09 01:22:27 +0000 |
commit | 63d6e018dee0b34a632ac1bde70127676344da3c (patch) | |
tree | 95f3929b14a868fbc184ca8acad37025fbf0a2a0 | |
parent | 645759ebf9b1da81971ec0d5796301cb4ea05f49 (diff) | |
download | llvm_android-63d6e018dee0b34a632ac1bde70127676344da3c.tar.gz |
Remove f-strings when printing out some errors.
Test: ./fetch_kokoro_prebuilts.py [--sha SHA|--build_id BUILD_ID] [target]
Bug: b/326833691
Change-Id: I6cb5863bd76867e6c6546f7e34df6e0928ba23ac
-rwxr-xr-x | fetch_kokoro_prebuilts.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fetch_kokoro_prebuilts.py b/fetch_kokoro_prebuilts.py index f72fea0..85725b3 100755 --- a/fetch_kokoro_prebuilts.py +++ b/fetch_kokoro_prebuilts.py @@ -69,7 +69,7 @@ def fetch_prebuilts(build_id: str, target: str): if "CommandException: No URLs matched" in err_string: print(f"Build {build_id} failed to build.") else: - print(f"{err_string}") + print(err_string) else: print(f"Download build {build_id} successful!") @@ -85,9 +85,9 @@ def check_gsutil(): subprocess.run(cmd, encoding="utf-8", check=True) except FileNotFoundError: print( - f"Fatal: gsutil not installed! Please go to" - f" https://cloud.google.com/storage/docs/gsutil_install to install" - f" gsutil", + "Fatal: gsutil not installed! Please go to" + " https://cloud.google.com/storage/docs/gsutil_install to install" + " gsutil", file=sys.stderr, ) sys.exit(1) |