Merge pull request #646 from pudo/python3.9

Drop `encoding=` in Python 3.9
pull/647/head
Raphaël Vinot 2020-10-27 13:03:36 +01:00 committed by GitHub
commit 80764c8275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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