tests/unwrap-message-id.py
author Gregory Szorc <gregory.szorc@gmail.com>
Tue, 08 Mar 2022 19:09:35 -0800
changeset 48958 b8eb29ab3906
parent 48875 6000f5b25c9b
permissions -rw-r--r--
hgdemandimport: delete check for Python 3.5 We dropped support for Python 3.5. So we no longer need to do this. Differential Revision: https://phab.mercurial-scm.org/D12362

import sys

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