]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120417: Remove unused imports in Tools (#120623)
authorVictor Stinner <vstinner@python.org>
Mon, 17 Jun 2024 16:09:26 +0000 (18:09 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2024 16:09:26 +0000 (18:09 +0200)
PC/layout/__main__.py
Tools/build/freeze_modules.py
Tools/patchcheck/patchcheck.py
Tools/ssl/make_ssl_data.py

index f7aa1e6d261f4a2668ad85b9fffe62d054c84caa..05a059eee7c1d751a9f6f21ac0c2eef1097b25ac 100644 (file)
@@ -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.
index eef2d0af046f51d7a6be327193f324f702b7b760..7f1dee1831974930f37e152e56399518e52227a7 100644 (file)
@@ -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
 
 
index af1f0584bb54035e8221ce805aa63a1f096bcbdc..fc338f389ca6d956ff03611e147b253f0d5a97e1 100755 (executable)
@@ -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
index 98608716576792ac45da6eb05789a3b8a5af43d3..d24e02210d489cd62fccddc3bfe89c30ec740cad 100755 (executable)
@@ -15,7 +15,6 @@ import datetime
 import operator
 import os
 import re
-import sys
 
 
 parser = argparse.ArgumentParser(