Skip to content

Commit 57299b6

Browse files
committed
Format code with black
1 parent 79609ea commit 57299b6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scalene/scalene_output.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,7 @@ def output_profiles(
704704
# two output paths are separate (see Scalene-Debugging.md
705705
# "three renderers"), so the json.py fix did not cover it.
706706
velocity = (
707-
leak[2] / stats.elapsed_time
708-
if stats.elapsed_time > 0
709-
else 0.0
707+
leak[2] / stats.elapsed_time if stats.elapsed_time > 0 else 0.0
710708
)
711709
output_str = f"Possible memory leak identified at line {str(leak[0])} (estimated likelihood: {(leak[1] * 100):3.0f}%, velocity: {velocity:3.0f} MB/s)"
712710
console.print(output_str)

0 commit comments

Comments
 (0)