diff options
author | Tristan Partin <tpartin@micron.com> | 2022-09-23 14:28:27 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-10-24 21:43:25 +0300 |
commit | e05a88835afad5c8eada06ab710c22e902730f7f (patch) | |
tree | 85783e68d20ac1e08596faaaaf6a69f6ca80db53 | |
parent | e87259f4a7ebe288edbbfd3b9900816c5d4eaea6 (diff) | |
download | meson-e05a88835afad5c8eada06ab710c22e902730f7f.zip meson-e05a88835afad5c8eada06ab710c22e902730f7f.tar.gz meson-e05a88835afad5c8eada06ab710c22e902730f7f.tar.bz2 |
Use f-strings in JavaCompiler
-rw-r--r-- | mesonbuild/compilers/java.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/java.py b/mesonbuild/compilers/java.py index b58cd0e..536780b 100644 --- a/mesonbuild/compilers/java.py +++ b/mesonbuild/compilers/java.py @@ -93,14 +93,14 @@ class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler): pc = subprocess.Popen(self.exelist + [src], cwd=work_dir) pc.wait() if pc.returncode != 0: - raise EnvironmentException('Java compiler %s can not compile programs.' % self.name_string()) + raise EnvironmentException(f'Java compiler {self.name_string()} can not compile programs.') runner = shutil.which(self.javarunner) if runner: cmdlist = [runner, obj] pe = subprocess.Popen(cmdlist, cwd=work_dir) pe.wait() if pe.returncode != 0: - raise EnvironmentException('Executables created by Java compiler %s are not runnable.' % self.name_string()) + raise EnvironmentException(f'Executables created by Java compiler {self.name_string()} are not runnable.') else: m = "Java Virtual Machine wasn't found, but it's needed by Meson. " \ "Please install a JRE.\nIf you have specific needs where this " \ |