From 5016858201049bb5a7d80405b26f05a8414beb39 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Tue, 27 Oct 2020 12:24:29 +0100 Subject: [PATCH] Drop `encoding=` in Python 3.9 --- pymisp/abstract.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pymisp/abstract.py b/pymisp/abstract.py index 5fd44ee..ff1f708 100644 --- a/pymisp/abstract.py +++ b/pymisp/abstract.py @@ -47,10 +47,7 @@ class MISPFileCache(object): if not path.exists(): return None with path.open('r', encoding='utf-8') as f: - if HAS_RAPIDJSON: - data = load(f) - else: - data = load(f, encoding='utf-8') + data = load(f) return data