From d06cc042eb21bc16a4a5cc957a3615e5e3a9743a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 8 Jul 2021 00:06:10 -0400 Subject: f-strings --- mesonbuild/modules/python.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mesonbuild/modules/python.py') diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 2d5eaead2..1f948cf28 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -141,8 +141,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): elif pycc.startswith(('i686', 'i386')): return '32' else: - mlog.log('MinGW Python built with unknown CC {!r}, please file' - 'a bug'.format(pycc)) + mlog.log(f'MinGW Python built with unknown CC {pycc!r}, please file a bug') return None elif self.platform == 'win32': return '32' @@ -199,8 +198,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): return # Pyarch ends in '32' or '64' if arch != pyarch: - mlog.log('Need', mlog.bold(self.name), 'for {}-bit, but ' - 'found {}-bit'.format(arch, pyarch)) + mlog.log('Need', mlog.bold(self.name), f'for {arch}-bit, but found {pyarch}-bit') self.is_found = False return # This can fail if the library is not found -- cgit v1.2.3