]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-105407: Remove unused imports in Tools/c-analyzer/ (#105410)
authorVictor Stinner <vstinner@python.org>
Tue, 6 Jun 2023 21:08:48 +0000 (23:08 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Jun 2023 21:08:48 +0000 (21:08 +0000)
Tools/c-analyzer/c_common/scriptutil.py
Tools/c-analyzer/c_parser/parser/_info.py
Tools/c-analyzer/c_parser/preprocessor/__main__.py
Tools/c-analyzer/cpython/_analyzer.py
Tools/c-analyzer/distutils/cygwinccompiler.py
Tools/c-analyzer/distutils/unixccompiler.py

index ce69af2b6bdee5843b9b0859eb7fc00c3e0255f7..ab9d74a9cbf145418fb43aeb6d5081def05074cf 100644 (file)
@@ -1,6 +1,5 @@
 import argparse
 import contextlib
-import fnmatch
 import logging
 import os
 import os.path
index cc21931b66cc57ce674bca5f564ed61ab9faf36c..340223db933c906b7cabfaea91a40e04158035e6 100644 (file)
@@ -1,4 +1,4 @@
-import re
+#import re
 
 from ..info import KIND, ParsedItem, FileInfo
 
index 55aa8752dce72406a66844fc2d769cc0b845cd9b..1ef55f55c38c5b878a355ccb72c0083d0c6145b9 100644 (file)
@@ -2,7 +2,6 @@ import logging
 import sys
 
 from c_common.scriptutil import (
-    CLIArgSpec as Arg,
     add_verbosity_cli,
     add_traceback_cli,
     add_kind_filtering_cli,
index 68d6b31cf2b6f0ed15be8eb565c4425d54eb3c59..f07fa8af495e17bfb4eecab4a3a80de6dc75c4d8 100644 (file)
@@ -1,5 +1,4 @@
 import os.path
-import re
 
 from c_common.clsutil import classonly
 from c_parser.info import (
index a3505f31f1f0a26771dabdc7708668ec940eafa1..a8409179d677a7c9024f9459b3c982a4931d01e9 100644 (file)
@@ -45,7 +45,6 @@ cygwin in no-cygwin mode).
 # * mingw gcc 3.2/ld 2.13 works
 #   (ld supports -shared)
 
-import os
 import sys
 from subprocess import Popen, PIPE, check_output
 import re
index 1a3a8e5255070d2f33f1b0e38e1d263b73592dea..1cb1964214eb300762064c534245e56dc418c18b 100644 (file)
@@ -13,7 +13,7 @@ the "typical" Unix-style command-line C compiler:
   * 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