(file_pattern, exclusions, comment_characters="//", prefix=None)
| 92 | |
| 93 | |
| 94 | def update_files(file_pattern, exclusions, comment_characters="//", prefix=None): |
| 95 | included = set(glob.glob(file_pattern, recursive=True)) |
| 96 | excluded = set() |
| 97 | for pattern in exclusions: |
| 98 | excluded.update(glob.glob(pattern, recursive=True)) |
| 99 | files = included - excluded |
| 100 | |
| 101 | copyright = Copyright(comment_characters, prefix) |
| 102 | copyright.update(files) |
| 103 | |
| 104 | |
| 105 | if __name__ == "__main__": |
no test coverage detected