INNER CODE UNIT · Python

latest_changelog

mtkennerly/ludusavi · tasks.py:265

def latest_changelog() -> str:
    changelog = ROOT / "CHANGELOG.md"
    content = changelog.read_bytes().decode("utf-8")

    lines = []
    header = False
    for line in content.splitlines():
        if line.startswith("#"):
            if header:
                break
            header = True
            continue

        lines.append(line)

    return "\n".join(lines).strip()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…