From dd31891c1fd6d3b9c955e73bd80170242b6423e5 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 4 Jul 2021 17:51:42 -0400 Subject: more f-strings too complex to be caught by pyupgrade --- mesonbuild/linkers/linkers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mesonbuild/linkers/linkers.py') diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index 4457330..868d184 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -406,8 +406,8 @@ class DynamicLinker(metaclass=abc.ABCMeta): return [] def has_multi_arguments(self, args: T.List[str], env: 'Environment') -> T.Tuple[bool, bool]: - m = 'Language {} does not support has_multi_link_arguments.' - raise mesonlib.EnvironmentException(m.format(self.id)) + m = f'Language {self.id} does not support has_multi_link_arguments.' + raise mesonlib.EnvironmentException(m) def get_debugfile_name(self, targetfile: str) -> str: '''Name of debug file written out (see below)''' @@ -432,8 +432,8 @@ class DynamicLinker(metaclass=abc.ABCMeta): # TODO: this really needs to take a boolean and return the args to # disable pie, otherwise it only acts to enable pie if pie *isn't* the # default. - m = 'Linker {} does not support position-independent executable' - raise mesonlib.EnvironmentException(m.format(self.id)) + m = f'Linker {self.id} does not support position-independent executable' + raise mesonlib.EnvironmentException(m) def get_lto_args(self) -> T.List[str]: return [] -- cgit v1.1