From da522efc937c4747dbc1a43f7cc5c691bde685aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 13 Oct 2021 15:40:47 +0200 Subject: [PATCH] depfixer: f-strings --- mesonbuild/scripts/depfixer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index df5056c5a..bdcdfca5c 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: