mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
process: simplify string enumeration loop
This commit is contained in:
@@ -44,9 +44,8 @@ def extract_environ_strings(behavior: Dict, ph: ProcessHandle) -> Iterator[Tuple
|
||||
if not environ:
|
||||
return
|
||||
|
||||
for _, value in environ.items():
|
||||
if value:
|
||||
yield String(value), ph.address
|
||||
for value in (value for value in environ.values() if value):
|
||||
yield String(value), ph.address
|
||||
|
||||
|
||||
def extract_features(behavior: Dict, ph: ProcessHandle) -> Iterator[Tuple[Feature, Address]]:
|
||||
|
||||
Reference in New Issue
Block a user