summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-12-16 13:50:20 +0100
committerGitHub <noreply@github.com>2021-12-16 13:50:20 +0100
commitfb93979b94afa069b86c9f07bf55e29399fc6f1b (patch)
tree04d4675066cec329e20b81cb1332d08eb5ff7f2c /lib
parent6357de4e615c033f4598627d43f6b38fc51cdab0 (diff)
downloadspack-fb93979b94afa069b86c9f07bf55e29399fc6f1b.tar.gz
spack-fb93979b94afa069b86c9f07bf55e29399fc6f1b.tar.bz2
spack-fb93979b94afa069b86c9f07bf55e29399fc6f1b.tar.xz
spack-fb93979b94afa069b86c9f07bf55e29399fc6f1b.zip
Set backup=False by default in filter_file (#28036)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/llnl/util/filesystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py
index 4c4ea1d5b8..753129b78e 100644
--- a/lib/spack/llnl/util/filesystem.py
+++ b/lib/spack/llnl/util/filesystem.py
@@ -141,7 +141,7 @@ def filter_file(regex, repl, *filenames, **kwargs):
file.
"""
string = kwargs.get('string', False)
- backup = kwargs.get('backup', True)
+ backup = kwargs.get('backup', False)
ignore_absent = kwargs.get('ignore_absent', False)
stop_at = kwargs.get('stop_at', None)