Drop `encoding=` in Python 3.9

pull/646/head
Friedrich Lindenberg 2020-10-27 12:24:29 +01:00
parent ad483b67ca
commit 5016858201
1 changed files with 1 additions and 4 deletions

View File

@ -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