From d1b0015ea88112258470463a74dad90ebce7ab67 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 6 Jun 2023 23:08:48 +0200 Subject: [PATCH] gh-105407: Remove unused imports in Tools/c-analyzer/ (#105410) --- Tools/c-analyzer/c_common/scriptutil.py | 1 - Tools/c-analyzer/c_parser/parser/_info.py | 2 +- Tools/c-analyzer/c_parser/preprocessor/__main__.py | 1 - Tools/c-analyzer/cpython/_analyzer.py | 1 - Tools/c-analyzer/distutils/cygwinccompiler.py | 1 - Tools/c-analyzer/distutils/unixccompiler.py | 2 +- 6 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Tools/c-analyzer/c_common/scriptutil.py b/Tools/c-analyzer/c_common/scriptutil.py index ce69af2b6bd..ab9d74a9cbf 100644 --- a/Tools/c-analyzer/c_common/scriptutil.py +++ b/Tools/c-analyzer/c_common/scriptutil.py @@ -1,6 +1,5 @@ import argparse import contextlib -import fnmatch import logging import os import os.path diff --git a/Tools/c-analyzer/c_parser/parser/_info.py b/Tools/c-analyzer/c_parser/parser/_info.py index cc21931b66c..340223db933 100644 --- a/Tools/c-analyzer/c_parser/parser/_info.py +++ b/Tools/c-analyzer/c_parser/parser/_info.py @@ -1,4 +1,4 @@ -import re +#import re from ..info import KIND, ParsedItem, FileInfo diff --git a/Tools/c-analyzer/c_parser/preprocessor/__main__.py b/Tools/c-analyzer/c_parser/preprocessor/__main__.py index 55aa8752dce..1ef55f55c38 100644 --- a/Tools/c-analyzer/c_parser/preprocessor/__main__.py +++ b/Tools/c-analyzer/c_parser/preprocessor/__main__.py @@ -2,7 +2,6 @@ import sys from c_common.scriptutil import ( - CLIArgSpec as Arg, add_verbosity_cli, add_traceback_cli, add_kind_filtering_cli, diff --git a/Tools/c-analyzer/cpython/_analyzer.py b/Tools/c-analyzer/cpython/_analyzer.py index 68d6b31cf2b..f07fa8af495 100644 --- a/Tools/c-analyzer/cpython/_analyzer.py +++ b/Tools/c-analyzer/cpython/_analyzer.py @@ -1,5 +1,4 @@ import os.path -import re from c_common.clsutil import classonly from c_parser.info import ( diff --git a/Tools/c-analyzer/distutils/cygwinccompiler.py b/Tools/c-analyzer/distutils/cygwinccompiler.py index a3505f31f1f..a8409179d67 100644 --- a/Tools/c-analyzer/distutils/cygwinccompiler.py +++ b/Tools/c-analyzer/distutils/cygwinccompiler.py @@ -45,7 +45,6 @@ # * mingw gcc 3.2/ld 2.13 works # (ld supports -shared) -import os import sys from subprocess import Popen, PIPE, check_output import re diff --git a/Tools/c-analyzer/distutils/unixccompiler.py b/Tools/c-analyzer/distutils/unixccompiler.py index 1a3a8e52550..1cb1964214e 100644 --- a/Tools/c-analyzer/distutils/unixccompiler.py +++ b/Tools/c-analyzer/distutils/unixccompiler.py @@ -13,7 +13,7 @@ * link shared library handled by 'cc -shared' """ -import os, sys, re +import os, sys from distutils.dep_util import newer from distutils.ccompiler import CCompiler, gen_preprocess_options