From 85f3fc2022265d69105468468787825f93580d29 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 12 Jun 2022 11:49:37 -0400 Subject: [PATCH] flake8: don't use f-strings for strings without formatting --- mesonbuild/build.py | 2 +- mesonbuild/modules/python.py | 2 +- mesonbuild/wrap/wraptool.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 9513d18ea..ceff2964b 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 1be9acff1..31be45019 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 3d2ae6cf5..ec2ac3edc 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: