0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

contrib: use f strings in symbol-check.py

This commit is contained in:
fanquake 2021-04-07 09:41:43 +08:00
parent 0f5d77c8e4
commit a632cbcee5
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -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)