mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -05:00
contrib: use f strings in symbol-check.py
This commit is contained in:
parent
0f5d77c8e4
commit
a632cbcee5
1 changed files with 3 additions and 3 deletions
|
@ -275,7 +275,7 @@ if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
etype = identify_executable(filename)
|
etype = identify_executable(filename)
|
||||||
if etype is None:
|
if etype is None:
|
||||||
print('{}: unknown format'.format(filename))
|
print(f'{filename}: unknown format')
|
||||||
retval = 1
|
retval = 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -284,9 +284,9 @@ if __name__ == '__main__':
|
||||||
if not func(filename):
|
if not func(filename):
|
||||||
failed.append(name)
|
failed.append(name)
|
||||||
if failed:
|
if failed:
|
||||||
print('{}: failed {}'.format(filename, ' '.join(failed)))
|
print(f'{filename}: failed {" ".join(failed)}')
|
||||||
retval = 1
|
retval = 1
|
||||||
except IOError:
|
except IOError:
|
||||||
print('{}: cannot open'.format(filename))
|
print(f'{filename}: cannot open')
|
||||||
retval = 1
|
retval = 1
|
||||||
sys.exit(retval)
|
sys.exit(retval)
|
||||||
|
|
Loading…
Add table
Reference in a new issue