From 7b33262d26922f8c0e836c42aaac067dc32c538c Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Wed, 4 May 2022 11:57:02 +0200 Subject: [PATCH] Tools: Don't use f-string in idf_tools.py ESP-IDF v4.4 supports Python 3.6 or newer. F-strings are available there but idf_tools.py can fail if run with older Pythons because the Python version check is done later. Closes https://github.com/espressif/esp-idf/issues/8890 --- tools/idf_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_tools.py b/tools/idf_tools.py index 86e96e9385..698b4a6d12 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -380,7 +380,7 @@ def rename_with_retry(path_from, path_to): # type: (str, str) -> None os.rename(path_from, path_to) return except OSError: - msg = f'Rename {path_from} to {path_to} failed' + msg = 'Rename {} to {} failed'.format(path_from, path_to) if retry == retry_count - 1: fatal(msg + '. Antivirus software might be causing this. Disabling it temporarily could solve the issue.') raise