MCPcopy Index your code
hub / github.com/keylase/nvidia-patch / template

Function template

tools/readme-autogen/utils.py:8–15  ·  view source on GitHub ↗
(filename, strip_newlines=False)

Source from the content-addressed store, hash-verified

6
7@lru_cache(maxsize=None)
8def template(filename, strip_newlines=False):
9 filename = os.path.join(TEMPLATE_PATH, filename)
10 with open(filename, encoding=ENCODING) as f:
11 text = f.read()
12 if strip_newlines:
13 text = text.rstrip('\r\n')
14 t = Template(text)
15 return t
16
17def version_key_fun(ver):
18 return tuple(map(int, ver.split('.')))

Callers 5

linux_readmeFunction · 0.90
windows_driver_rowsFunction · 0.90
windows_product_sectionsFunction · 0.90
windows_driver_tableFunction · 0.90
windows_readmeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected