mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use long `re
` flags
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user