Mercurial > hg
annotate tests/unwrap-message-id.py @ 50970:f04568add4ee
debug_revlog_stats: migrate `opts` to native kwargs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 21 Aug 2023 17:47:52 -0400 |
parents | 6000f5b25c9b |
children |
rev | line source |
---|---|
43334
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
1 import sys |
4128ffba4431
tests: handle Message-Id email header possible wrapping
Denis Laxalde <denis@laxalde.org>
parents:
diff
changeset
|
2 |
44405
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
3 for line in sys.stdin: |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
4 if line.lower() in ("message-id: \n", "in-reply-to: \n"): |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
5 line = line[:-2] |
a1908951ca42
tests: handle In-Reply-To headers for line wrapping
Joerg Sonnenberger <joerg@bec.de>
parents:
43334
diff
changeset
|
6 print(line, end="") |