view tests/unwrap-message-id.py @ 43366:ee3a55c8fd0f stable

py3: fix exception message check in test-linerange.py's testOutOfRange Differential Revision: https://phab.mercurial-scm.org/D7192
author Emmanuel Leblond <emmanuel.leblond@gmail.com>
date Fri, 01 Nov 2019 17:31:47 +0100
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="")