Fix re usage

This commit is contained in:
Victor Zverovich 2020-11-08 06:20:53 -08:00
parent 6ee5e507c7
commit 7787792e8d

View File

@ -89,8 +89,8 @@ def build_docs(version='dev', **kwargs):
fmt::basic_format_arg::handle fmt::basic_format_arg::handle
'''.format(include_dir, doxyxml_dir).encode('UTF-8')) '''.format(include_dir, doxyxml_dir).encode('UTF-8'))
out = re.sub( out = re.sub(
out, ".*warning: Member .* of class fmt::detail::.* is not documented.\n", ".*warning: Member .* of class fmt::detail::.* is not documented.\n",
"") "", out)
print(out) print(out)
if p.returncode != 0: if p.returncode != 0:
raise CalledProcessError(p.returncode, cmd) raise CalledProcessError(p.returncode, cmd)