tests/unwrap-message-id.py
author Gregory Szorc <gregory.szorc@gmail.com>
Tue, 14 Jan 2020 17:39:12 -0800
changeset 44082 c3f741bb2f33
parent 43334 4128ffba4431
child 44405 a1908951ca42
permissions -rw-r--r--
sha1dc: declare all variables at begininng of block This is required to appease ancient C language standards, which msvc 2008 still requires for Python 2.7 on Windows. Differential Revision: https://phab.mercurial-scm.org/D7877

from __future__ import absolute_import, print_function

import re
import sys

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