summaryrefslogtreecommitdiff
path: root/libc/tools/generate_notice.py
diff options
context:
space:
mode:
Diffstat (limited to 'libc/tools/generate_notice.py')
-rwxr-xr-xlibc/tools/generate_notice.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/tools/generate_notice.py b/libc/tools/generate_notice.py
index e0e6b3215..e004d74e9 100755
--- a/libc/tools/generate_notice.py
+++ b/libc/tools/generate_notice.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Run with directory arguments from any directory, with no special setup
# required.
@@ -38,6 +38,9 @@ def is_interesting(path_str: str) -> bool:
return False
if path.name in {"notice", "readme", "pylintrc"}:
return False
+ # Backup files for some editors.
+ if path.match("*~"):
+ return False
return True