mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
flake8 checks resolved
This commit is contained in:
@@ -43,7 +43,7 @@ def get_features(rule_path: str) -> list:
|
||||
list: A list of all feature statements contained within the rule file.
|
||||
"""
|
||||
feature_list = []
|
||||
with open(rule_path, "r", encoding="utf-8") as f:
|
||||
with Path(rule_path).open("r", encoding="utf-8") as f:
|
||||
try:
|
||||
new_rule = capa.rules.Rule.from_yaml(f.read())
|
||||
feature_list = get_child_features(new_rule.statement)
|
||||
|
||||
Reference in New Issue
Block a user