view tests/unwrap-message-id.py @ 43894:774cee0e95c6

amend: use cmdutil.check_at_most_one_arg() Differential Revision: https://phab.mercurial-scm.org/D7635
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Dec 2019 15:10:44 -0800
parents 4128ffba4431
children a1908951ca42
line wrap: on
line source

from __future__ import absolute_import, print_function

import re
import sys

print(re.sub(r"(?<=Message-Id:) \n ", " ", sys.stdin.read()), end="")