patchutils.py: Uppercase first character of patch description.

This commit is contained in:
Sebastian Lackner
2015-11-15 01:05:09 +01:00
parent b0a0836e95
commit 8b28977596
2 changed files with 23 additions and 21 deletions

View File

@@ -328,6 +328,8 @@ def read_patch(filename):
assert fp.read() == line
subject, revision = _parse_subject(subject)
if not subject.endswith("."): subject += "."
subject = re.sub('^([^:]*: *)([a-z])', lambda x: "%s%s" %
(x.group(1), x.group(2).upper()), subject, 1)
header['subject'], header['revision'] = subject, revision
elif line.startswith("Signed-off-by: "):