aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:50:54 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:50:54 +0100
commit5d69940e710cf400b14c092cd21264261d5f4dfc (patch)
treea357646eb1b26dc5d0033aaa35ce0a7305024aa8
parentcd0ed87c8cf26914d0f51b8efe12c771e0ae991b (diff)
downloadallocbench-5d69940e710cf400b14c092cd21264261d5f4dfc.tar.gz
allocbench-5d69940e710cf400b14c092cd21264261d5f4dfc.zip
use str.join to construct perm substitution
-rw-r--r--src/benchmark.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 5566ae1..e8d52c6 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -457,7 +457,7 @@ class Benchmark:
substitutions.update(alloc)
if perm:
substitutions.update(perm._asdict())
- substitutions["perm"] = ("{}-"*(len(perm)-1) + "{}").format(*perm)
+ substitutions["perm"] = "-".join(*perm)
else:
substitutions["perm"] = ""