tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 13:07:00 +0200
changeset 50895 a834ec41f17c
parent 48875 6000f5b25c9b
permissions -rw-r--r--
remotefilelog: use sysstr to check for attribute presence We do not need bytes here.

import sys

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