Mercurial > hg
view tests/unwrap-message-id.py @ 44264:d3f776c4760e
py3: catch AttributeError too with ImportError
Looks like py3 raises AttributeError instead of ImportError. This is caught on
windows.
Differential Revision: https://phab.mercurial-scm.org/D7965
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 22 Jan 2020 03:17:06 +0530 |
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="")