From 1560abb8bac7381239ed21768137389a66ab8611 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 12 Aug 2019 14:14:55 +0200 Subject: Use f-strings --- bench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3