view tests/unwrap-message-id.py @ 50429:71a2c061865d

strip: drop the assert about bundled revision This is working well, so no need for extract computation. See the previous changeset for the rationnal of still have these assert around for a short interval.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 10 Mar 2023 03:41:18 +0100
parents 6000f5b25c9b
children
line wrap: on
line source

import sys

for line in sys.stdin:
    if line.lower() in ("message-id: \n", "in-reply-to: \n"):
        line = line[:-2]
    print(line, end="")