From 501a79a45cdfb08dd8c0101405a7352fad39cf40 Mon Sep 17 00:00:00 2001 From: airborne12 Date: Fri, 15 Dec 2023 15:03:23 +0800 Subject: [PATCH] [Fix](format) compatible run_clang_format format string with python2/3.6/higher (#28469) --- build-support/run_clang_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/run_clang_format.py b/build-support/run_clang_format.py index 266c7d5384..b72a161589 100755 --- a/build-support/run_clang_format.py +++ b/build-support/run_clang_format.py @@ -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