Skip to content
Prev Previous commit
Next Next commit
Remove unused imports, variables, and functions
  • Loading branch information
AA-Turner committed Oct 10, 2023
commit 556978b8de51aa9a81afcab09a0717f482260ff8
19 changes: 0 additions & 19 deletions Tools/patchcheck/patchcheck.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -146,23 +144,6 @@ def changed_files(base_branch=None):
return list(map(os.path.normpath, filenames))


def report_modified_files(file_paths):
count = len(file_paths)
if count == 0:
return n_files_str(count)
else:
lines = [f"{n_files_str(count)}:"]
for path in file_paths:
lines.append(f" {path}")
return "\n".join(lines)


#: Python files that have tabs by design:
_PYTHON_FILES_WITH_TABS = frozenset({
'Tools/c-analyzer/cpython/_parser.py',
})


@status("Docs modified", modal=True)
def docs_modified(file_paths):
"""Report if any file in the Doc directory has been changed."""
Expand Down