]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix regex issue due to python 3.8 bug.
authorWayne Davison <wayne@opencoder.net>
Fri, 29 May 2020 03:48:24 +0000 (20:48 -0700)
committerWayne Davison <wayne@opencoder.net>
Fri, 29 May 2020 03:48:24 +0000 (20:48 -0700)
packaging/branch-from-patch

index 493f557d41f95a6cfe684f4faa2264db8354a9f2..c4982d039a9f8bb1262d10f5e76675a14aac60b8 100755 (executable)
@@ -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