Remove unused imports from depot_tools scripts

This change removes some unused imports across depot_tools scripts.

Change-Id: Ic1112065ad1020fc4a3573d3fb9f137915ef439c
Bug: 1475776
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4812185
Auto-Submit: Aravind Vasudevan <aravindvasudev@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
changes/85/4812185/2
Aravind Vasudevan 2 years ago committed by LUCI CQ
parent c7aca34c8e
commit bb14391a50

@ -8,7 +8,6 @@
from __future__ import print_function from __future__ import print_function
import contextlib import contextlib
import errno
import logging import logging
import optparse import optparse
import os import os

@ -18,11 +18,8 @@ be used to restore your environment to its original state.
import argparse import argparse
import subprocess import subprocess
import os import os
import platform
import sys import sys
import shutil import shutil
import json
from pathlib import Path
def main(argv): def main(argv):

@ -46,7 +46,6 @@ import logging
from multiprocessing.pool import ThreadPool from multiprocessing.pool import ThreadPool
import optparse import optparse
import os import os
import subprocess
from string import Formatter from string import Formatter
import sys import sys
import urllib import urllib

@ -10,7 +10,6 @@ import os
import copy import copy
import git_common
import gclient_utils import gclient_utils

@ -7,7 +7,6 @@ import contextlib
import json import json
import os import os
import requests import requests
import time
# Constants describing TestStatus for ResultDB # Constants describing TestStatus for ResultDB
STATUS_PASS = 'PASS' STATUS_PASS = 'PASS'

@ -6,7 +6,6 @@
from __future__ import print_function from __future__ import print_function
import ctypes import ctypes
import os
import platform import platform
import subprocess import subprocess
import sys import sys

@ -12,7 +12,6 @@ import os
import re import re
import subprocess2 import subprocess2
import sys import sys
import tempfile
import gclient_utils import gclient_utils
import git_footers import git_footers

@ -9,7 +9,6 @@ In theory you shouldn't need anything else in subprocess, or this module failed.
import codecs import codecs
import errno import errno
import io
import logging import logging
import os import os
import subprocess import subprocess
@ -19,12 +18,10 @@ import threading
# Cache the string-escape codec to ensure subprocess can find it later. # Cache the string-escape codec to ensure subprocess can find it later.
# See crbug.com/912292#c2 for context. # See crbug.com/912292#c2 for context.
if sys.version_info.major == 2: if sys.version_info.major == 2:
import Queue
codecs.lookup('string-escape') codecs.lookup('string-escape')
# Sends stdout or stderr to os.devnull. # Sends stdout or stderr to os.devnull.
DEVNULL = open(os.devnull, 'r+') DEVNULL = open(os.devnull, 'r+')
else: else:
import queue as Queue
# pylint: disable=redefined-builtin # pylint: disable=redefined-builtin
basestring = (str, bytes) basestring = (str, bytes)
DEVNULL = subprocess.DEVNULL DEVNULL = subprocess.DEVNULL

@ -4,7 +4,6 @@
# found in the LICENSE file. # found in the LICENSE file.
import http import http
import os
import sys import sys
import urllib.error import urllib.error
import urllib.request import urllib.request

Loading…
Cancel
Save