view tests/unwrap-message-id.py @ 50924:9bffc6c4e4c5

pycompat: deprecate using bytes Python2 has been dropped for a while, so lets comply to the signature of the global function. This open the way to drop the use of `pycompat.getattr` and company, and, especially, the associated `util.safehasattr`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 08 Dec 2022 15:57:42 +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="")