diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-10-13 15:40:47 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-09 10:47:21 +0100 |
commit | da522efc937c4747dbc1a43f7cc5c691bde685aa (patch) | |
tree | 44462420e3236b1d82857514df1935763ef08434 /mesonbuild/scripts/depfixer.py | |
parent | f48d75dcaecec5a441ec745388c08c73201ed46c (diff) | |
download | meson-da522efc937c4747dbc1a43f7cc5c691bde685aa.zip meson-da522efc937c4747dbc1a43f7cc5c691bde685aa.tar.gz meson-da522efc937c4747dbc1a43f7cc5c691bde685aa.tar.bz2 |
depfixer: f-strings
Diffstat (limited to 'mesonbuild/scripts/depfixer.py')
-rw-r--r-- | mesonbuild/scripts/depfixer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index df5056c..bdcdfca 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -175,20 +175,20 @@ class Elf(DataSizes): # This script gets called to non-elf targets too # so just ignore them. if self.verbose: - print('File "%s" is not an ELF file.' % self.bfile) + print(f'File {self.bfile!r} is not an ELF file.') sys.exit(0) if data[4] == 1: ptrsize = 32 elif data[4] == 2: ptrsize = 64 else: - sys.exit('File "%s" has unknown ELF class.' % self.bfile) + sys.exit(f'File {self.bfile!r} has unknown ELF class.') if data[5] == 1: is_le = True elif data[5] == 2: is_le = False else: - sys.exit('File "%s" has unknown ELF endianness.' % self.bfile) + sys.exit(f'File {self.bfile!r} has unknown ELF endianness.') return ptrsize, is_le def parse_header(self) -> None: |