Skip to content

Commit

Permalink
Fix flake8 error from upcoming Python 3.12
Browse files Browse the repository at this point in the history
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
  • Loading branch information
benclifford committed Sep 21, 2023
1 parent a3203a4 commit f29265f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsl/benchmark/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f29265f

Please sign in to comment.