tests/unwrap-message-id.py
author Martin von Zweigbergk <martinvonz@google.com>
Tue, 18 May 2021 21:58:12 -0700
changeset 47290 5e736d2e9703
parent 44405 a1908951ca42
child 48875 6000f5b25c9b
permissions -rw-r--r--
errors: move Abort earlier, so more exceptions can subclass it I'd like to make at least `InterventionRequired` subclass `Abort` and Python requires the superclass to be defined before the subtype. Differential Revision: https://phab.mercurial-scm.org/D10736

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