[Fix](format) compatible run_clang_format format string with python2/3.6/higher (#28469)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user