Commit 3b9d2d85 authored by Dirk Pranke's avatar Dirk Pranke Committed by LUCI CQ

Fix a Python3-compatibility issue in get_toolchain_if_necessary.

Bug: 1207012
Change-Id: I9205089c3a7d9f2d3e2eb9aac7ef6da9ae9b0876
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2890330
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: 's avatarBruce Dawson <brucedawson@chromium.org>
parent 8ac2b642
...@@ -560,7 +560,7 @@ def main(): ...@@ -560,7 +560,7 @@ def main():
version_file = os.path.join(toolchain_target_dir, 'VS_VERSION') version_file = os.path.join(toolchain_target_dir, 'VS_VERSION')
vc_dir = os.path.join(toolchain_target_dir, 'VC') vc_dir = os.path.join(toolchain_target_dir, 'VC')
with open(version_file, 'rb') as f: with open(version_file, 'rb') as f:
vs_version = f.read().strip() vs_version = f.read().decode('utf-8').strip()
# Touch the VC directory so we can use its timestamp to know when this # Touch the VC directory so we can use its timestamp to know when this
# version of the toolchain has been used for the last time. # version of the toolchain has been used for the last time.
os.utime(vc_dir, None) os.utime(vc_dir, None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment