diff --git a/git_cache.py b/git_cache.py index 6c4609c618..f581c9b626 100755 --- a/git_cache.py +++ b/git_cache.py @@ -8,7 +8,6 @@ from __future__ import print_function import contextlib -import errno import logging import optparse import os diff --git a/infra_to_superproject.py b/infra_to_superproject.py index f0305b5ac9..0140d43474 100644 --- a/infra_to_superproject.py +++ b/infra_to_superproject.py @@ -18,11 +18,8 @@ be used to restore your environment to its original state. import argparse import subprocess import os -import platform import sys import shutil -import json -from pathlib import Path def main(argv): diff --git a/my_activity.py b/my_activity.py index 7fb0f1cf62..8db0b13f69 100755 --- a/my_activity.py +++ b/my_activity.py @@ -46,7 +46,6 @@ import logging from multiprocessing.pool import ThreadPool import optparse import os -import subprocess from string import Formatter import sys import urllib diff --git a/owners_finder.py b/owners_finder.py index 98ea7e2510..d43145ae95 100644 --- a/owners_finder.py +++ b/owners_finder.py @@ -10,7 +10,6 @@ import os import copy -import git_common import gclient_utils diff --git a/rdb_wrapper.py b/rdb_wrapper.py index cd41fcf2e3..b6021e627a 100644 --- a/rdb_wrapper.py +++ b/rdb_wrapper.py @@ -7,7 +7,6 @@ import contextlib import json import os import requests -import time # Constants describing TestStatus for ResultDB STATUS_PASS = 'PASS' diff --git a/setup_color.py b/setup_color.py index 8fd669012f..40e96b5f6e 100644 --- a/setup_color.py +++ b/setup_color.py @@ -6,7 +6,6 @@ from __future__ import print_function import ctypes -import os import platform import subprocess import sys diff --git a/split_cl.py b/split_cl.py index 5587954034..16cb8f25de 100644 --- a/split_cl.py +++ b/split_cl.py @@ -12,7 +12,6 @@ import os import re import subprocess2 import sys -import tempfile import gclient_utils import git_footers diff --git a/subprocess2.py b/subprocess2.py index 7df49da112..2e97e35716 100644 --- a/subprocess2.py +++ b/subprocess2.py @@ -9,7 +9,6 @@ In theory you shouldn't need anything else in subprocess, or this module failed. import codecs import errno -import io import logging import os import subprocess @@ -19,12 +18,10 @@ import threading # Cache the string-escape codec to ensure subprocess can find it later. # See crbug.com/912292#c2 for context. if sys.version_info.major == 2: - import Queue codecs.lookup('string-escape') # Sends stdout or stderr to os.devnull. DEVNULL = open(os.devnull, 'r+') else: - import queue as Queue # pylint: disable=redefined-builtin basestring = (str, bytes) DEVNULL = subprocess.DEVNULL diff --git a/upload_metrics.py b/upload_metrics.py index 3e9b4c28ce..2174b0c1b1 100644 --- a/upload_metrics.py +++ b/upload_metrics.py @@ -4,7 +4,6 @@ # found in the LICENSE file. import http -import os import sys import urllib.error import urllib.request