summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PC/layout/__main__.py2
-rw-r--r--Tools/build/freeze_modules.py4
-rwxr-xr-xTools/patchcheck/patchcheck.py2
-rwxr-xr-xTools/ssl/make_ssl_data.py1
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(