fix: AbstractMISP.from_dict() do not accept positional argument

pull/205/head
Sami Mokaddem 2018-03-15 12:04:23 +01:00
parent fdd9833cd0
commit 3faec3c00d
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class AbstractMISP(collections.MutableMapping):
def from_json(self, json_string):
"""Load a JSON string"""
self.from_dict(json.loads(json_string))
self.from_dict(**json.loads(json_string))
def to_dict(self):
"""Dump the lass to a dictionary.