music-kraken-core/music_kraken/utils/config/utils.py

5 lines
180 B
Python
Raw Normal View History

2023-08-10 21:01:16 +00:00
def comment(uncommented_string: str) -> str:
_fragments = uncommented_string.split("\n")
_fragments = ["# " + frag for frag in _fragments]
return "\n".join(_fragments)