INNER CODE UNIT · Python

main

spacecowboy/Feeder · ci/latest-changelog.py:6

def main(args):
    buffer = []
    should_append = False

    with open(args[0], "r") as f:
        for line in f:
            if line.startswith("## "):
                if buffer:
                    break
                should_append = True

            if should_append:
                buffer.append(line)

    for line in buffer:
        print(line, end="")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…