From: Wayne Davison Date: Thu, 7 May 2020 00:23:17 +0000 (-0700) Subject: Change r'\1%s\2' to r'\g<1>%s\2'. X-Git-Tag: v3.2.0pre1~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a9295778cc5c4d666103079c6e8ebfc1d0646ef;p=thirdparty%2Frsync.git Change r'\1%s\2' to r'\g<1>%s\2'. --- diff --git a/packaging/nightly-rsync b/packaging/nightly-rsync index 3e8895b9..eb747432 100755 --- a/packaging/nightly-rsync +++ b/packaging/nightly-rsync @@ -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)