[Fix](format) compatible run_clang_format format string with python2/3.6/higher (#28469)

This commit is contained in:
airborne12
2023-12-15 15:03:23 +08:00
committed by GitHub
parent 97b033813a
commit 501a79a45c

View File

@ -40,7 +40,7 @@ except ImportError:
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
return 0
else:
raise ValueError(f"Invalid truth value '{val}'")
raise ValueError("Invalid truth value '{}'".format(val))
from functools import partial