tests/unwrap-message-id.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Feb 2022 13:20:33 -0700
changeset 48859 f928dec9add7
parent 44405 a1908951ca42
child 48875 6000f5b25c9b
permissions -rw-r--r--
tests: unconditionalize _unified_diff Now that we're Python 3 only we can make this logic simpler. Differential Revision: https://phab.mercurial-scm.org/D12237

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