(text, tag="[prepend]")
| 634 | return dct |
| 635 | |
| 636 | def prepend(text, tag="[prepend]"): |
| 637 | lines = text.split("\n") |
| 638 | updated_lines = [tag + line for line in lines] |
| 639 | return "\n".join(updated_lines) |
| 640 | |
| 641 | def replace_if_empty(text, replacement="No relevant packages"): |
| 642 | if text is not None and len(text) == 0: |
no test coverage detected