Render the standard two-line generated-file marker in the given comment style.
(comment_prefix, generator, command)
| 4 | |
| 5 | |
| 6 | def generated_note(comment_prefix, generator, command): |
| 7 | """Render the standard two-line generated-file marker in the given comment style.""" |
| 8 | text = _TEMPLATE.format(generator=generator, command=command) |
| 9 | prefix = f"{comment_prefix} " if comment_prefix else "" |
| 10 | return "\n".join(f"{prefix}{line}".rstrip() for line in text.split("\n")) |
no test coverage detected