From b08bdbcf4783ec3cab4081c9769db36ebef85da6 Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Fri, 17 Jul 2026 10:59:34 +0200 Subject: Fixed fstring issue with newline for older python versions --- hpmr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hpmr.py b/hpmr.py index 25a48f9..6adc1a7 100755 --- a/hpmr.py +++ b/hpmr.py @@ -43,11 +43,12 @@ with open(sys.argv[0], "rb") as file: contents = file.read() filehash = hashlib.md5(contents).hexdigest() +inputs=str(cli_args)[10:-1].replace(',' , '\n'+17*' ').replace('=',' = ') print("="*52) print(f"Run date CET: {time.ctime()}") print(f"Input file MD5: {filehash}") -print(f"Input arguments: {str(cli_args)[10:-1].replace(',' , '\n'+17*' ').replace('=',' = ')}") +print(f"Input arguments: {inputs}") print("="*52) ############ MATERIALS ############ -- cgit v1.2.3