tests/unwrap-message-id.py
author Antoine Cezar <antoine.cezar@octobus.net>
Mon, 17 Aug 2020 10:59:30 +0200
changeset 45452 3d9f1dfc52c2
parent 44432 a1908951ca42
child 48966 6000f5b25c9b
permissions -rw-r--r--
hg-core: fix some `clippy` warnings Differential Revision: https://phab.mercurial-scm.org/D8957

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