Fix regex issue due to python 3.8 bug.

This commit is contained in:
Wayne Davison committed 2020-05-28 20:48:24 -07:00
1 parent 60e71c1b8b
commit 364d302bca
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ def main():
or re.match(r'^diff --git ', line)
or re.match(r'^--- (old|a)/', line)):
break
lines.append(re.sub(r'\s*\Z', "\n", line))
lines.append(re.sub(r'\s*\Z', "\n", line, 1))
info_txt = ''.join(lines).strip() + "\n"
lines = None