From 559f2fd162fee9a0e287ca47bfbc2971cbb76a3a Mon Sep 17 00:00:00 2001 From: Yacine Elhamer Date: Wed, 11 Oct 2023 11:56:49 +0200 Subject: [PATCH] cape/file.py: flake8 fixes --- capa/features/extractors/cape/file.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/capa/features/extractors/cape/file.py b/capa/features/extractors/cape/file.py index e2d40cbac..4f78ffa91 100644 --- a/capa/features/extractors/cape/file.py +++ b/capa/features/extractors/cape/file.py @@ -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)