Mercurial > hg
view tests/unwrap-message-id.py @ 44247:c443b9ba6f63 stable
py3: __repr__ needs to return str, not bytes
Differential Revision: https://phab.mercurial-scm.org/D8089
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Thu, 02 Jan 2020 11:04:18 -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="")