mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
ida/plugin/form.py: replace list comprehension in any() with a generator
This commit is contained in:
@@ -1193,14 +1193,12 @@ class CapaExplorerForm(idaapi.PluginForm):
|
||||
|
||||
is_match: bool = False
|
||||
if self.rulegen_current_function is not None and any(
|
||||
[
|
||||
s in rule.scopes
|
||||
for s in (
|
||||
capa.rules.Scope.FUNCTION,
|
||||
capa.rules.Scope.BASIC_BLOCK,
|
||||
capa.rules.Scope.INSTRUCTION,
|
||||
)
|
||||
]
|
||||
s in rule.scopes
|
||||
for s in (
|
||||
capa.rules.Scope.FUNCTION,
|
||||
capa.rules.Scope.BASIC_BLOCK,
|
||||
capa.rules.Scope.INSTRUCTION,
|
||||
)
|
||||
):
|
||||
try:
|
||||
_, func_matches, bb_matches, insn_matches = self.rulegen_feature_cache.find_code_capabilities(
|
||||
|
||||
Reference in New Issue
Block a user