From e0001fbe0a265edef41efea66e7b997e188a6f5b Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Wed, 4 Dec 2019 13:42:00 +0100 Subject: [PATCH] lgtm: fix format string numbering --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 35bc450a9..939b65479 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1106,7 +1106,7 @@ You probably should put it in link_with instead.''') msg += "Use the 'pic' option to static_library to build with PIC." raise InvalidArguments(msg) if self.for_machine is not t.for_machine: - msg = 'Tried to mix libraries for machines {1} and {2} in target {!r}'.format(self.name, self.for_machine, t.for_machine) + msg = 'Tried to mix libraries for machines {1} and {2} in target {0!r}'.format(self.name, self.for_machine, t.for_machine) if self.environment.is_cross_build(): raise InvalidArguments(msg + ' This is not possible in a cross build.') else: