gh-120417: Remove unused imports in Tools (#120623)

This commit is contained in:
Victor Stinner 2024-06-17 18:09:26 +02:00 committed by GitHub
parent 6acf7776ef
commit d9b4316374
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 6 deletions

View file

@ -1,7 +1,7 @@
import sys import sys
try: try:
import layout import layout # noqa: F401
except ImportError: except ImportError:
# Failed to import our package, which likely means we were started directly # Failed to import our package, which likely means we were started directly
# Add the additional search path needed to locate our module. # Add the additional search path needed to locate our module.

View file

@ -5,10 +5,10 @@ See the notes at the top of Python/frozen.c for more info.
from collections import namedtuple from collections import namedtuple
import hashlib import hashlib
import os
import ntpath import ntpath
import os
import posixpath import posixpath
import argparse
from update_file import updating_file_with_tmpfile from update_file import updating_file_with_tmpfile

View file

@ -1,8 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
"""Check proposed changes for common issues.""" """Check proposed changes for common issues."""
import re
import sys import sys
import shutil
import os.path import os.path
import subprocess import subprocess
import sysconfig import sysconfig

View file

@ -15,7 +15,6 @@ import datetime
import operator import operator
import os import os
import re import re
import sys
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(