mirror of
https://github.com/mandiant/capa.git
synced 2026-01-06 17:53:59 -08:00
pep8
This commit is contained in:
@@ -165,11 +165,11 @@ def convert_match_to_result_document(rules, capabilities, result):
|
|||||||
# so, we need to lookup the other rule results
|
# so, we need to lookup the other rule results
|
||||||
# and then filter those down to the address used here.
|
# and then filter those down to the address used here.
|
||||||
# finally, splice that logic into this tree.
|
# finally, splice that logic into this tree.
|
||||||
if (doc['node']['type'] == 'feature' and
|
if (doc['node']['type'] == 'feature'
|
||||||
doc['node']['feature']['type'] == 'match' and
|
and doc['node']['feature']['type'] == 'match'
|
||||||
# only add subtree on success,
|
# only add subtree on success,
|
||||||
# because there won't be results for the other rule on failure.
|
# because there won't be results for the other rule on failure.
|
||||||
doc['success']):
|
and doc['success']):
|
||||||
|
|
||||||
rule_name = doc['node']['feature']['match']
|
rule_name = doc['node']['feature']['match']
|
||||||
rule = rules[rule_name]
|
rule = rules[rule_name]
|
||||||
|
|||||||
Reference in New Issue
Block a user