tests/unwrap-message-id.py
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 01:12:26 -0400
changeset 50833 de3191c0cec9
parent 48875 6000f5b25c9b
permissions -rw-r--r--
config: use the writefile() utility to create the sample hgrc This function uses a context manager.

import sys

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