view tests/unwrap-message-id.py @ 50073:8d02dfac072e

dirstate: make `restorebackup` more robust when it is a noop If there are no data_file, we might not be able to determine its filename. Which can be safely ignored. (all this code is on the way out anyway)
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 16 Feb 2023 05:03:28 +0100
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="")