commitctx: extract the function that commit a new manifest
The logic is large enough and isolated enough to be extracted, this reduce the
size of the main function, making it simpler to follow.
from __future__ import absolute_import, print_functionimport sysfor line in sys.stdin: if line.lower() in ("message-id: \n", "in-reply-to: \n"): line = line[:-2] print(line, end="")