diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-03-09 19:50:54 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-03-09 19:50:54 +0100 |
| commit | 5d69940e710cf400b14c092cd21264261d5f4dfc (patch) | |
| tree | a357646eb1b26dc5d0033aaa35ce0a7305024aa8 | |
| parent | cd0ed87c8cf26914d0f51b8efe12c771e0ae991b (diff) | |
| download | allocbench-5d69940e710cf400b14c092cd21264261d5f4dfc.tar.gz allocbench-5d69940e710cf400b14c092cd21264261d5f4dfc.zip | |
use str.join to construct perm substitution
| -rw-r--r-- | src/benchmark.py | 2 |
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"] = "" |
