flake8: fix unnecessary f-strings without any format placeholders

These can just be ordinary strings.
This commit is contained in:
Eli Schwartz 2022-08-28 10:49:58 -04:00 committed by Jussi Pakkanen
parent 520bb7abbc
commit ff7d86d05f
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -558,7 +558,7 @@ 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',
mlog.warning('Meson is not going to use netrc credentials for protocols other than https/ftp',
fatal=False)
try: