aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-06-12 11:49:37 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2022-06-13 13:34:39 +0300
commit85f3fc2022265d69105468468787825f93580d29 (patch)
treea2fa0f86c0dc1ae8c04a45bdac2a51ace4cf8bc5
parent3f42c844de6d556391ecf092a960881428b724b7 (diff)
downloadmeson-85f3fc2022265d69105468468787825f93580d29.zip
meson-85f3fc2022265d69105468468787825f93580d29.tar.gz
meson-85f3fc2022265d69105468468787825f93580d29.tar.bz2
flake8: don't use f-strings for strings without formatting
-rw-r--r--mesonbuild/build.py2
-rw-r--r--mesonbuild/modules/python.py2
-rw-r--r--mesonbuild/wrap/wraptool.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 9513d18..ceff296 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.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', [])
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 1be9acf..31be450 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -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:
diff --git a/mesonbuild/wrap/wraptool.py b/mesonbuild/wrap/wraptool.py
index 3d2ae6c..ec2ac3e 100644
--- a/mesonbuild/wrap/wraptool.py
+++ b/mesonbuild/wrap/wraptool.py
@@ -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: