diff options
| author | Florian Schmaus <flow@cs.fau.de> | 2019-08-12 14:14:55 +0200 |
|---|---|---|
| committer | Florian Schmaus <flow@cs.fau.de> | 2019-08-12 14:15:11 +0200 |
| commit | 1560abb8bac7381239ed21768137389a66ab8611 (patch) | |
| tree | 2ce4f23559e8c2e4307a8e60894bd955d65db607 | |
| parent | 80ac29d59eb44012d8c43abaff2512b94c6868d1 (diff) | |
| download | allocbench-1560abb8bac7381239ed21768137389a66ab8611.tar.gz allocbench-1560abb8bac7381239ed21768137389a66ab8611.zip | |
Use f-strings
| -rwxr-xr-x | bench.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
