mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-22 22:04:15 -04:00
Fix regex issue due to python 3.8 bug.
This commit is contained in:
1 parent
60e71c1b8b
commit
364d302bca
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user