MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / update_files

Function update_files

scripts/update_copyright.py:94–102  ·  view source on GitHub ↗
(file_pattern, exclusions, comment_characters="//", prefix=None)

Source from the content-addressed store, hash-verified

92
93
94def 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
105if __name__ == "__main__":

Callers 1

Calls 2

updateMethod · 0.95
CopyrightClass · 0.85

Tested by

no test coverage detected