MCPcopy Index your code
hub / github.com/SFTtech/openage / get_header_lines

Function get_header_lines

openage/codegen/codegen.py:242–255  ·  view source on GitHub ↗

Yields the lines for the automatically-added file header.

()

Source from the content-addressed store, hash-verified

240
241
242def get_header_lines() -> Generator[str, None, None]:
243 """
244 Yields the lines for the automatically-added file header.
245 """
246
247 yield (
248 f"Copyright 2013-{datetime.now().year} the openage authors. "
249 "See copying.md for legal info."
250 )
251
252 yield ""
253 yield "Warning: this file was auto-generated; manual changes are futile."
254 yield "For details, see buildsystem/codegen.cmake and openage/codegen."
255 yield ""
256
257
258def postprocess_write(parts, data: str) -> str:

Callers 1

postprocess_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected