view tests/unwrap-message-id.py @ 52010:37f693975cbc stable

demande-import-test: use `wsgiref` instead of `telnetlib` for testing The `telnetlib` module has been dropped in 3.13. The `wsgiref` module fit the same purpose of being obscure and not imported yet.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 15 Oct 2024 04:33:30 +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="")