diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-04 17:51:42 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-05 17:55:04 +0300 |
commit | dd31891c1fd6d3b9c955e73bd80170242b6423e5 (patch) | |
tree | b6bfd47a74e3ac4f71904afe2ba1996453ce221b /mesonbuild/linkers/linkers.py | |
parent | 566efba216b865bff670901aed98d34f09f8d930 (diff) | |
download | meson-dd31891c1fd6d3b9c955e73bd80170242b6423e5.zip meson-dd31891c1fd6d3b9c955e73bd80170242b6423e5.tar.gz meson-dd31891c1fd6d3b9c955e73bd80170242b6423e5.tar.bz2 |
more f-strings too complex to be caught by pyupgrade
Diffstat (limited to 'mesonbuild/linkers/linkers.py')
-rw-r--r-- | mesonbuild/linkers/linkers.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 [] |