MCPcopy Create free account
hub / github.com/TeXworks/texworks / one_of_replace_extensions

Method one_of_replace_extensions

scripts/updateCopyrights.py:77–83  ·  view source on GitHub ↗

Returns True if the file extension is allowed to be updated, False otherwise.

(self)

Source from the content-addressed store, hash-verified

75
76
77 def one_of_replace_extensions(self):
78 """Returns True if the file extension is allowed to be updated, False otherwise."""
79 for ext in self.REPLACE_EXTENSIONS:
80 if self.filename.endswith(ext):
81 return True
82
83 return False
84
85 def is_excluded(self):
86 for d in self.EXCLUDE_FOLDERS:

Callers 1

is_updateableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected