Use long `re` flags

This commit is contained in:
Adam Turner
2024-01-19 02:16:48 +00:00
parent 183dd51f4d
commit 38ac67bd6c
6 changed files with 42 additions and 42 deletions

View File

@@ -146,7 +146,7 @@ class Changes:
f.write(body)
def filter_empty_sections(self, body):
return re.sub('^\n.+\n-{3,}\n+(?=\n.+\n[-=]{3,}\n)', '', body, flags=re.M)
return re.sub('^\n.+\n-{3,}\n+(?=\n.+\n[-=]{3,}\n)', '', body, flags=re.MULTILINE)
def parse_options(argv):