diff --git a/docs/conf.py b/docs/conf.py index 0af7b9a7c93..142245c7488 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,7 +10,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the diff --git a/test/Driver/Dependencies/Inputs/fake-build-for-bitcode.py b/test/Driver/Dependencies/Inputs/fake-build-for-bitcode.py index 83fa8f97392..58072fa75a9 100755 --- a/test/Driver/Dependencies/Inputs/fake-build-for-bitcode.py +++ b/test/Driver/Dependencies/Inputs/fake-build-for-bitcode.py @@ -6,7 +6,6 @@ from __future__ import print_function import os -import shutil import sys assert sys.argv[1] == '-frontend' diff --git a/test/Driver/Dependencies/Inputs/fake-build-whole-module.py b/test/Driver/Dependencies/Inputs/fake-build-whole-module.py index 51d47941cc5..22b938888c4 100755 --- a/test/Driver/Dependencies/Inputs/fake-build-whole-module.py +++ b/test/Driver/Dependencies/Inputs/fake-build-whole-module.py @@ -5,7 +5,6 @@ from __future__ import print_function import os -import shutil import sys assert sys.argv[1] == '-frontend' diff --git a/test/Driver/Dependencies/Inputs/modify-non-primary-files.py b/test/Driver/Dependencies/Inputs/modify-non-primary-files.py index efd226779ab..4866a8d2640 100755 --- a/test/Driver/Dependencies/Inputs/modify-non-primary-files.py +++ b/test/Driver/Dependencies/Inputs/modify-non-primary-files.py @@ -6,7 +6,6 @@ from __future__ import print_function import os -import shutil import sys assert sys.argv[1] == '-frontend' diff --git a/utils/apply-fixit-edits.py b/utils/apply-fixit-edits.py index 05b3b3cd22b..1bd84b58804 100755 --- a/utils/apply-fixit-edits.py +++ b/utils/apply-fixit-edits.py @@ -14,7 +14,6 @@ from __future__ import print_function -import subprocess import json import argparse import sys diff --git a/utils/line-directive b/utils/line-directive index 2ba36820b21..0f62f85fe71 100755 --- a/utils/line-directive +++ b/utils/line-directive @@ -1,6 +1,5 @@ #!/usr/bin/env python #convert line numbers in error messages according to "line directive" comments -import os import sys import re import bisect diff --git a/utils/pass-pipeline/scripts/pipeline_generator.py b/utils/pass-pipeline/scripts/pipeline_generator.py index befbd3413f6..12c78f69074 100755 --- a/utils/pass-pipeline/scripts/pipeline_generator.py +++ b/utils/pass-pipeline/scripts/pipeline_generator.py @@ -3,7 +3,6 @@ import os import sys import argparse -import itertools import json import textwrap diff --git a/utils/pass-pipeline/scripts/pipelines_build_script.py b/utils/pass-pipeline/scripts/pipelines_build_script.py index 1adee8b7e59..3644e3fbb37 100755 --- a/utils/pass-pipeline/scripts/pipelines_build_script.py +++ b/utils/pass-pipeline/scripts/pipelines_build_script.py @@ -9,7 +9,6 @@ import textwrap # Append the src dir sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'src')) -import pass_pipeline_library import passes # TODO: This should not be hard coded. diff --git a/utils/pass-pipeline/src/pass_pipeline.py b/utils/pass-pipeline/src/pass_pipeline.py index c47eccf5a52..fa713fb6767 100644 --- a/utils/pass-pipeline/src/pass_pipeline.py +++ b/utils/pass-pipeline/src/pass_pipeline.py @@ -1,8 +1,3 @@ - -import sys -import json -import itertools - class Pass(object): def __init__(self, name): self.name = name diff --git a/utils/pygments/swift.py b/utils/pygments/swift.py index b626e53f22d..c8d146a270e 100644 --- a/utils/pygments/swift.py +++ b/utils/pygments/swift.py @@ -2,7 +2,7 @@ import re -from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, this, do_insertions +from pygments.lexer import RegexLexer, include, bygroups from pygments.token import * __all__ = ['SwiftLexer', 'SwiftConsoleLexer'] diff --git a/utils/sil-opt-verify-all-modules.py b/utils/sil-opt-verify-all-modules.py index 0bc6f9fed74..bdaa92d3b9e 100755 --- a/utils/sil-opt-verify-all-modules.py +++ b/utils/sil-opt-verify-all-modules.py @@ -17,7 +17,6 @@ import argparse import glob import multiprocessing import os -import shutil import subprocess import sys import tempfile diff --git a/utils/swift-bench.py b/utils/swift-bench.py index 0f7612ae0bc..180070d78d6 100644 --- a/utils/swift-bench.py +++ b/utils/swift-bench.py @@ -38,7 +38,6 @@ from __future__ import print_function import subprocess import numpy -import time import re import os import sys