aboutsummaryrefslogtreecommitdiff
path: root/build/scripts/install-sysroot.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/scripts/install-sysroot.py')
-rwxr-xr-xbuild/scripts/install-sysroot.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/scripts/install-sysroot.py b/build/scripts/install-sysroot.py
index 374598f1..898cc7ce 100755
--- a/build/scripts/install-sysroot.py
+++ b/build/scripts/install-sysroot.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
@@ -65,8 +65,8 @@ def GetSha1(filename):
def GetSysrootDict(target_platform, target_arch):
- """Gets the sysroot information for a given platform and arch from the sysroots.json
- file."""
+ """Gets the sysroot information for a given platform and arch from the
+ sysroots.json file."""
if target_arch not in VALID_ARCHS:
raise Error('Unknown architecture: %s' % target_arch)
@@ -92,7 +92,8 @@ def DownloadFile(url, local_path):
raise Error('Failed to download %s' % url)
def ValidateFile(local_path, expected_sum):
- """Generates the SHA1 hash of a local file to compare with an expected hashsum."""
+ """Generates the SHA1 hash of a local file to compare with an expected
+ hashsum."""
sha1sum = GetSha1(local_path)
if sha1sum != expected_sum:
raise Error('Tarball sha1sum is wrong.'