mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 11:07:53 -08:00
add mode and encoding parameters to open()
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user