aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2020-01-27 13:15:06 -0800
committerGeorge Burgess <gbiv@chromium.org>2020-01-27 21:23:36 +0000
commit1f29b1d8687d9a103bbbdb2609f70fa41cffba51 (patch)
treea2abb9d6ce5a0bb5a1c87b9d8b75ae9259ce7ae7
parent39a1c992ee085cac78f64b36b66daa1e1c8747ad (diff)
downloadtoolchain-utils-1f29b1d8687d9a103bbbdb2609f70fa41cffba51.tar.gz
llvm_tools: remove unused import
`requests` is an artifact of an old way of doing things, and breaks things on Android bots. Best to just remove it. This also fixes other misc lints in that file BUG=b:147699825 TEST=unittests Change-Id: I3f465f9a129679b104e328ab8307298af1df651b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2023775 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Pirama Arumuga Nainar <pirama@google.com> Tested-by: George Burgess <gbiv@chromium.org>
-rwxr-xr-xllvm_tools/get_llvm_hash.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm_tools/get_llvm_hash.py b/llvm_tools/get_llvm_hash.py
index 1864170d..a5b5429e 100755
--- a/llvm_tools/get_llvm_hash.py
+++ b/llvm_tools/get_llvm_hash.py
@@ -10,18 +10,14 @@ from __future__ import print_function
import argparse
import os
-import re
import shutil
import subprocess
import sys
import tempfile
-import git_llvm_rev
-
from contextlib import contextmanager
-from subprocess_helpers import CheckCommand
-from subprocess_helpers import check_output
-import requests
+import git_llvm_rev
+from subprocess_helpers import CheckCommand, check_output
_LLVM_GIT_URL = ('https://chromium.googlesource.com/external/github.com/llvm'
'/llvm-project')
@@ -33,6 +29,7 @@ def GetVersionFrom(src_dir, git_hash):
"""Obtain an SVN-style version number based on the LLVM git hash passed in.
Args:
+ src_dir: LLVM's source directory.
git_hash: The git hash.
Returns: