view tests/unwrap-message-id.py @ 49483:b18e877ea304

rhg-status: extract a function for printing pattern file warnings This will be reused for the warnings produced by the sparse file parsing functions.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 26 Jul 2022 17:33:34 +0200
parents 6000f5b25c9b
children
line wrap: on
line source

import sys

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