summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/astyle/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/astyle/package.py')
-rw-r--r--var/spack/repos/builtin/packages/astyle/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/astyle/package.py b/var/spack/repos/builtin/packages/astyle/package.py
index 951661004b..ef4fe29378 100644
--- a/var/spack/repos/builtin/packages/astyle/package.py
+++ b/var/spack/repos/builtin/packages/astyle/package.py
@@ -30,11 +30,11 @@ class Astyle(MakefilePackage):
def edit(self, spec, prefix):
makefile = join_path(self.build_directory, "Makefile")
- filter_file(r"^CXX\s*=.*", "CXX=%s" % spack_cxx, makefile)
+ filter_file(r"^CXX\s*=.*", f"CXX={spack_cxx}", makefile)
# If the group is not a user account, the installation will fail,
# so remove the -o $ (USER) -g $ (USER) parameter.
filter_file(r"^INSTALL=.*", "INSTALL=install", makefile)
@property
def install_targets(self):
- return ["install", "prefix={0}".format(self.prefix)]
+ return ["install", f"prefix={self.prefix}"]