MCPcopy Create free account
hub / github.com/carbonengine/trinity / AppliesToFile

Method AppliesToFile

python/upgrade_scripts/carbon1.py:40–45  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

38 self.attribute = attribute
39
40 def AppliesToFile(self, filename):
41 if not filename.lower().endswith('.red'):
42 return False
43 with open(filename, 'r') as f:
44 contents = f.read()
45 return self.attribute in contents
46
47 def UpgradeFile(self, filename):
48 with open(filename, 'r') as f:

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected