tests/unwrap-message-id.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 30 Jan 2023 18:41:59 +0100
branchstable
changeset 49649 8d390a13474d
parent 48966 6000f5b25c9b
permissions -rw-r--r--
setup: make the version computation process more resistant The tag fetching might return and empty stringĀ¹, from there everything derails quickly. As setup tools becomes more picky about version format we make the whole seems a bit more robust. The resulting version will be obviously weird, but at least it will actually install itself. [1] This is a problem we will address in the next changesets.

import sys

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