flake8: don't use f-strings for strings without formatting

pull/10404/head
Eli Schwartz 2 years ago committed by Jussi Pakkanen
parent 3f42c844de
commit 85f3fc2022
  1. 2
      mesonbuild/build.py
  2. 2
      mesonbuild/modules/python.py
  3. 2
      mesonbuild/wrap/wraptool.py

@ -2689,7 +2689,7 @@ class Jar(BuildTarget):
if not isinstance(t, Jar):
raise InvalidArguments(f'Link target {t} is not a jar target.')
if self.structured_sources:
raise InvalidArguments(f'structured sources are not supported in Java targets.')
raise InvalidArguments('structured sources are not supported in Java targets.')
self.filename = self.name + '.jar'
self.outputs = [self.filename]
self.java_args = kwargs.get('java_args', [])

@ -195,7 +195,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase):
if comp.id == "gcc":
if imp_lower == 'pypy' and verdot == '3.8':
# The naming changed between 3.8 and 3.9
libpath = Path(f'libpypy3-c.dll')
libpath = Path('libpypy3-c.dll')
elif imp_lower == 'pypy':
libpath = Path(f'libpypy{verdot}-c.dll')
else:

@ -136,7 +136,7 @@ def get_current_version(wrapfile: str) -> T.Tuple[str, str, str, str, T.Optional
try:
wrap_data = cp['wrap-file']
except KeyError:
raise WrapException(f'Not a wrap-file, cannot have come from the wrapdb')
raise WrapException('Not a wrap-file, cannot have come from the wrapdb')
try:
patch_url = wrap_data['patch_url']
except KeyError:

Loading…
Cancel
Save