From f29265fec2e06bfd40bb18b53e2a12bb7fa631ab Mon Sep 17 00:00:00 2001 From: Ben Clifford Date: Thu, 21 Sep 2023 10:34:32 +0000 Subject: [PATCH] Fix flake8 error from upcoming Python 3.12 In Python 3.12, f-strings vs flake8 has more whitespace checking, in line with whitespace checking in other Python expressions, as part of a broader rationalisation of f-string implementation: https://docs.python.org/3.12/whatsnew/3.12.html#whatsnew312-pep701 --- parsl/benchmark/perf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsl/benchmark/perf.py b/parsl/benchmark/perf.py index 9325c24004..6e99000342 100644 --- a/parsl/benchmark/perf.py +++ b/parsl/benchmark/perf.py @@ -48,7 +48,7 @@ def performance(*, resources: dict, target_t: float): submitted_t = time.time() print(f"All {n} tasks submitted ... waiting for completion") - print(f"Submission took {submitted_t - start_t:.3f} seconds = {n/(submitted_t - start_t):.3f} tasks/second") + print(f"Submission took {submitted_t - start_t:.3f} seconds = {n / (submitted_t - start_t):.3f} tasks/second") for f in concurrent.futures.as_completed(fs): assert f.result() == 7