From d9b4316374ac27ec38ca8c829ff3fc2367ebd095 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 17 Jun 2024 18:09:26 +0200 Subject: gh-120417: Remove unused imports in Tools (#120623) --- PC/layout/__main__.py | 2 +- Tools/build/freeze_modules.py | 4 ++-- Tools/patchcheck/patchcheck.py | 2 -- Tools/ssl/make_ssl_data.py | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/PC/layout/__main__.py b/PC/layout/__main__.py index f7aa1e6..05a059e 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 eef2d0a..7f1dee1 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 af1f058..fc338f3 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 9860871..d24e022 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( -- cgit v0.12