tests/unwrap-message-id.py
author Simon Sapin <simon.sapin@octobus.net>
Thu, 28 Jan 2021 13:25:37 +0100
branchstable
changeset 46352 3df00f905458
parent 44432 a1908951ca42
child 48966 6000f5b25c9b
permissions -rw-r--r--
persistent-nodemap: add test case reproducing a Rust panic Thanks to Mitchell Plamann for reporting this bug. The next commit fixes it. Differential Revision: https://phab.mercurial-scm.org/D9900

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