add mode and encoding parameters to open()

This commit is contained in:
Yacine Elhamer
2023-06-20 10:13:06 +01:00
parent 8547277958
commit 4db80e75a4

View File

@@ -189,7 +189,7 @@ def get_cape_extractor(path):
from capa.features.extractors.cape.extractor import CapeExtractor
with open(path) as report_file:
with open(path, "r", encoding="utf-8") as report_file:
report = report_file.read()
report = json.loads(report)