mirror of https://github.com/MISP/PyMISP
Drop `encoding=` in Python 3.9
parent
ad483b67ca
commit
5016858201
|
@ -47,10 +47,7 @@ class MISPFileCache(object):
|
||||||
if not path.exists():
|
if not path.exists():
|
||||||
return None
|
return None
|
||||||
with path.open('r', encoding='utf-8') as f:
|
with path.open('r', encoding='utf-8') as f:
|
||||||
if HAS_RAPIDJSON:
|
|
||||||
data = load(f)
|
data = load(f)
|
||||||
else:
|
|
||||||
data = load(f, encoding='utf-8')
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue