diff options
author | fanquake <fanquake@gmail.com> | 2021-04-07 09:41:43 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-05-04 20:48:00 +0800 |
commit | a632cbcee5ae982f50aba625713b7686aef29168 (patch) | |
tree | dfaca08064efa5109c30df3d094262f85229d372 | |
parent | 0f5d77c8e4db691733edb455dd9e31dabe933b8d (diff) |
contrib: use f strings in symbol-check.py
-rwxr-xr-x | contrib/devtools/symbol-check.py | 6 |
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) |