##// END OF EJS Templates
tests: handle In-Reply-To headers for line wrapping...
tests: handle In-Reply-To headers for line wrapping Python 3 tends to insert a newline for both Message-ID and In-Reply-To headers, so unwrap both. Just check the wrapped line format explicitly without regular expression. Differential Revision: https://phab.mercurial-scm.org/D8171

File last commit:

r44885:a1908951 default
r44885:a1908951 default
Show More
unwrap-message-id.py
8 lines | 202 B | text/x-python | PythonLexer
/ tests / unwrap-message-id.py
from __future__ import absolute_import, print_function
import sys
for line in sys.stdin:
if line.lower() in ("message-id: \n", "in-reply-to: \n"):
line = line[:-2]
print(line, end="")