Mercurial > hg
annotate tests/unwrap-message-id.py @ 44145:0b475b0b0344
debugcommands: add Python implementation to debuginstall
This seems like a useful detail to print.
Differential Revision: https://phab.mercurial-scm.org/D7979
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 22 Nov 2019 20:27:09 -0800 |
parents | 4128ffba4431 |
children | a1908951ca42 |
rev | line source |
---|---|
43334
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
1 from __future__ import absolute_import, print_function |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
2 |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
3 import re |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
4 import sys |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
5 |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
6 print(re.sub(r"(?<=Message-Id:) \n ", " ", sys.stdin.read()), end="") |