tests/unwrap-message-id.py
author Manuel Jacob <me@manueljacob.de>
Tue, 31 May 2022 02:36:05 +0200
changeset 49306 425ca3428d03
parent 48966 6000f5b25c9b
permissions -rw-r--r--
tests: constant-fold a `pycompat.ispy3` in testlib/badserverext.py

import sys

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