mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
gh-120417: Remove unused imports in Tools (#120623)
This commit is contained in:
parent
6acf7776ef
commit
d9b4316374
4 changed files with 3 additions and 6 deletions
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue