tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 03 Jul 2024 12:32:57 +0200
branchstable
changeset 51656 21442f87f7fa
parent 48875 6000f5b25c9b
permissions -rw-r--r--
mmap: only use mmap to read revlog persistent nodemap if it is safe Cf `is_mmap_safe` docstring.

import sys

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