tests/unwrap-message-id.py
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 22 Mar 2021 13:14:11 -0700
changeset 46816 ea8bfd33c22a
parent 44405 a1908951ca42
child 48875 6000f5b25c9b
permissions -rw-r--r--
tests: replace some `python` by `"$PYTHON"` to not only use Python 2 I deleted my `python` binary as a test and a few tests started failing. Differential Revision: https://phab.mercurial-scm.org/D10250

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