Skip to content

Commit aaaa972

Browse files
committed
ruff
1 parent d37f07a commit aaaa972

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/profiling/sampling/jsonl_collector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ def process_frames(self, frames, _thread_id, weight=1):
5555
self._seen_frame_ids.clear()
5656

5757
for i, (filename, location, funcname, _opcode) in enumerate(frames):
58-
frame_id = self._get_or_create_frame_id(filename, location, funcname)
59-
is_leaf = (i == 0)
58+
frame_id = self._get_or_create_frame_id(
59+
filename, location, funcname
60+
)
61+
is_leaf = i == 0
6062
count_cumulative = frame_id not in self._seen_frame_ids
6163

6264
if count_cumulative:

0 commit comments

Comments
 (0)