https://github.com/python/cpython/commit/d9b4316374ac27ec38ca8c829ff3fc2367ebd095
commit: d9b4316374ac27ec38ca8c829ff3fc2367ebd095
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2024-06-17T18:09:26+02:00
summary:
gh-120417: Remove unused imports in Tools (#120623)
files:
M PC/layout/__main__.py
M Tools/build/freeze_modules.py
M Tools/patchcheck/patchcheck.py
M Tools/ssl/make_ssl_data.py
diff --git a/PC/layout/__main__.py b/PC/layout/__main__.py
index f7aa1e6d261f4a..05a059eee7c1d7 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 eef2d0af046f51..7f1dee18319749 100644
--- a/Tools/build/freeze_modules.py
+++ b/Tools/build/freeze_modules.py
@@ -5,10 +5,10 @@
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 af1f0584bb5403..fc338f389ca6d9 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 98608716576792..d24e02210d489c 100755
--- a/Tools/ssl/make_ssl_data.py
+++ b/Tools/ssl/make_ssl_data.py
@@ -15,7 +15,6 @@
import operator
import os
import re
-import sys
parser = argparse.ArgumentParser(
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]