]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Change r'\1%s\2' to r'\g<1>%s\2'.
authorWayne Davison <wayne@opencoder.net>
Thu, 7 May 2020 00:23:17 +0000 (17:23 -0700)
committerWayne Davison <wayne@opencoder.net>
Thu, 7 May 2020 00:23:34 +0000 (17:23 -0700)
packaging/nightly-rsync

index 3e8895b90ae153285271e456c6ca0d3f6efa95c4..eb7474324f2d17692a259c18c61e55d42586f048 100755 (executable)
@@ -80,7 +80,7 @@ def main():
         with open(fn, 'r', encoding='utf-8') as fh:
             txt = fh.read()
 
-        txt = re.sub(r'^(manpage\([^)]+\)\(\d+\)\()[^)]+(\).*)', r'\1%s\2' % today, txt, flags=re.M)
+        txt = re.sub(r'^(manpage\([^)]+\)\(\d+\)\()[^)]+(\).*)', r'\g<1>%s\2' % today, txt, flags=re.M)
 
         with open(yo_tmp, 'w', encoding='utf-8') as fh:
             fh.write(txt)