mirror of
https://github.com/apache/doris.git
synced 2026-11-04 07:31:17 +00:00
[Fix](format) compatible run_clang_format format string with python2/3.6/higher (#28469)
This commit is contained in:
1 parent
97b033813a
commit
501a79a45c
1 file changed
+1
-1
@@ -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