tests/unwrap-message-id.py
author Thomas Klausner <wiz@gatalith.at>
Mon, 15 Nov 2021 12:03:28 +0100
branchstable
changeset 48324 141e38ef8d8f
parent 44432 a1908951ca42
child 48966 6000f5b25c9b
permissions -rw-r--r--
tests: dd status=noxfer is not portable (issue6523) Differential Revision: https://phab.mercurial-scm.org/D11754

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="")