aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/symbol-check.py
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-04-07 09:41:43 +0800
committerfanquake <fanquake@gmail.com>2021-05-04 20:48:00 +0800
commita632cbcee5ae982f50aba625713b7686aef29168 (patch)
treedfaca08064efa5109c30df3d094262f85229d372 /contrib/devtools/symbol-check.py
parent0f5d77c8e4db691733edb455dd9e31dabe933b8d (diff)
downloadbitcoin-a632cbcee5ae982f50aba625713b7686aef29168.tar.xz
contrib: use f strings in symbol-check.py
Diffstat (limited to 'contrib/devtools/symbol-check.py')
-rwxr-xr-xcontrib/devtools/symbol-check.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/devtools/symbol-check.py b/contrib/devtools/symbol-check.py
index 436f179d61..19eb4eaf9f 100755
--- a/contrib/devtools/symbol-check.py
+++ b/contrib/devtools/symbol-check.py
@@ -275,7 +275,7 @@ if __name__ == '__main__':
try:
etype = identify_executable(filename)
if etype is None:
- print('{}: unknown format'.format(filename))
+ print(f'{filename}: unknown format')
retval = 1
continue
@@ -284,9 +284,9 @@ if __name__ == '__main__':
if not func(filename):
failed.append(name)
if failed:
- print('{}: failed {}'.format(filename, ' '.join(failed)))
+ print(f'{filename}: failed {" ".join(failed)}')
retval = 1
except IOError:
- print('{}: cannot open'.format(filename))
+ print(f'{filename}: cannot open')
retval = 1
sys.exit(retval)