From ff7d86d05f0022a74845fda721bc22dda08cbb15 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 28 Aug 2022 10:49:58 -0400 Subject: flake8: fix unnecessary f-strings without any format placeholders These can just be ordinary strings. --- mesonbuild/interpreter/interpreter.py | 2 +- mesonbuild/wrap/wrap.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index efa31b8..1dc80ad 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -2333,7 +2333,7 @@ class Interpreter(InterpreterBase, HoldableObject): def _warn_kwarg_install_mode_sticky(self, mode: FileMode) -> None: if mode.perms > 0 and mode.perms & stat.S_ISVTX: mlog.deprecation('install_mode with the sticky bit on a file does not do anything and will ' - f'be ignored since Meson 0.64.0', location=self.current_node) + 'be ignored since Meson 0.64.0', location=self.current_node) perms = stat.filemode(mode.perms - stat.S_ISVTX)[1:] return FileMode(perms, mode.owner, mode.group) else: diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 171f92a..e8a39a5 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -558,8 +558,8 @@ class Resolver: elif url.scheme == 'ftp': urlstring = urllib.parse.urlunparse(url._replace(netloc=f'{login}:{password}@{url.netloc}')) else: - mlog.warning(f'Meson is not going to use netrc credentials for protocols other than https/ftp', - fatal=False) + mlog.warning('Meson is not going to use netrc credentials for protocols other than https/ftp', + fatal=False) try: req = urllib.request.Request(urlstring, headers=headers) -- cgit v1.1