Skip to content

Commit

Permalink
cape/file.py: flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yelhamer committed Oct 11, 2023
1 parent 953b2e8 commit 559f2fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion capa/features/extractors/cape/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def get_processes(report: CapeReport) -> Iterator[ProcessHandle]:
seen_processes[addr] = [process]
else:
logger.warning(
f"pid and ppid reuse detected between process {process} and process{'es' if len(seen_processes[addr]) > 1 else ''}: {seen_processes[addr]}"
"pid and ppid reuse detected between process " + process + " and process" + "es"
if len(seen_processes[addr]) > 1
else "" + ": " + seen_processes[addr]
)
seen_processes[addr].append(process)

Expand Down

0 comments on commit 559f2fd

Please sign in to comment.