From: Victor Stinner Date: Mon, 17 Jun 2024 16:09:26 +0000 (+0200) Subject: gh-120417: Remove unused imports in Tools (#120623) X-Git-Tag: v3.14.0a1~1454 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9b4316374ac27ec38ca8c829ff3fc2367ebd095;p=thirdparty%2FPython%2Fcpython.git gh-120417: Remove unused imports in Tools (#120623) --- diff --git a/PC/layout/__main__.py b/PC/layout/__main__.py index f7aa1e6d261f..05a059eee7c1 100644 --- a/PC/layout/__main__.py +++ b/PC/layout/__main__.py @@ -1,7 +1,7 @@ import sys try: - import layout + import layout # noqa: F401 except ImportError: # Failed to import our package, which likely means we were started directly # Add the additional search path needed to locate our module. diff --git a/Tools/build/freeze_modules.py b/Tools/build/freeze_modules.py index eef2d0af046f..7f1dee183197 100644 --- a/Tools/build/freeze_modules.py +++ b/Tools/build/freeze_modules.py @@ -5,10 +5,10 @@ See the notes at the top of Python/frozen.c for more info. from collections import namedtuple import hashlib -import os import ntpath +import os import posixpath -import argparse + from update_file import updating_file_with_tmpfile diff --git a/Tools/patchcheck/patchcheck.py b/Tools/patchcheck/patchcheck.py index af1f0584bb54..fc338f389ca6 100755 --- a/Tools/patchcheck/patchcheck.py +++ b/Tools/patchcheck/patchcheck.py @@ -1,8 +1,6 @@ #!/usr/bin/env python3 """Check proposed changes for common issues.""" -import re import sys -import shutil import os.path import subprocess import sysconfig diff --git a/Tools/ssl/make_ssl_data.py b/Tools/ssl/make_ssl_data.py index 986087165767..d24e02210d48 100755 --- a/Tools/ssl/make_ssl_data.py +++ b/Tools/ssl/make_ssl_data.py @@ -15,7 +15,6 @@ import datetime import operator import os import re -import sys parser = argparse.ArgumentParser(