tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Sep 2021 18:41:38 +0200
changeset 48003 5e7eea915019
parent 44405 a1908951ca42
child 48875 6000f5b25c9b
permissions -rw-r--r--
dirstate: drop the `dirstatemap.dropfile` method All use have been migrated. Differential Revision: https://phab.mercurial-scm.org/D11443

from __future__ import absolute_import, print_function

import sys

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