aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@cs.fau.de>2019-08-12 14:14:55 +0200
committerFlorian Schmaus <flow@cs.fau.de>2019-08-12 14:15:11 +0200
commit1560abb8bac7381239ed21768137389a66ab8611 (patch)
tree2ce4f23559e8c2e4307a8e60894bd955d65db607
parent80ac29d59eb44012d8c43abaff2512b94c6868d1 (diff)
downloadallocbench-1560abb8bac7381239ed21768137389a66ab8611.tar.gz
allocbench-1560abb8bac7381239ed21768137389a66ab8611.zip
Use f-strings
-rwxr-xr-xbench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index d1332e8..ed5a43a 100755
--- a/bench.py
+++ b/bench.py
@@ -192,7 +192,7 @@ def main():
os.makedirs(bench_res_dir, exist_ok=True)
try:
- bench = eval("importlib.import_module('src.benchmarks.{0}').{0}".format(bench))
+ bench = eval(f"importlib.import_module('src.benchmarks.{bench}').{bench}")
if args.load:
bench.load(path=args.load)