tests/unwrap-message-id.py
author Manuel Jacob <me@manueljacob.de>
Sat, 30 May 2020 04:59:13 +0200
changeset 44936 86a7b7abf28e
parent 44432 a1908951ca42
child 48966 6000f5b25c9b
permissions -rw-r--r--
hgweb: avoid using `sslutil.modernssl` `sslutil.modernssl` is going to be removed. Since the point of using this attribute was to check the importability of the `sslutil`, a different attribute can be used. `sslutil.wrapserversocket` is used because it’s anyway used a few lines below.

from __future__ import absolute_import, print_function

import sys

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