Skip to content

Commit

Permalink
Correct linting
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Aug 11, 2024
1 parent d8dbafb commit b9b6c42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion util/trace/a2l.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def function_stack(self):

# Find all matches and organize them into a list of dictionaries
stack = [match.groupdict() for match in pattern.finditer(self.raw)]

# Format stack entries
def format_stack_entry(entry):
func, line, col = [entry.get(key, None) for key in ['func', 'line', 'col']]
Expand Down
3 changes: 2 additions & 1 deletion util/trace/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ def parse_line(line, fmt='snitch'):
if diff:
# Compare current and previous call stacks
if a2l_output:
funs, files, lines = zip(*[level.values() for level in a2l_output.function_stack()])
funs, files, lines = zip(
*[level.values() for level in a2l_output.function_stack()])
else:
funs = files = lines = []
next_call_stack = assemble_call_stack(funs, files, lines)
Expand Down
2 changes: 1 addition & 1 deletion util/trace/tracevis.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def parse_trace(filename, kwargs):
events += flush(lah, buf, **kwargs)

print(f' parsed {lines-fails} of {lines} lines', file=sys.stderr)

# Assign a per-trace unique TID or PID to all events
for event in events:
if kwargs['collapse_call_stack']:
Expand Down

0 comments on commit b9b6c42

Please sign in to comment.