mirror of https://github.com/MISP/PyMISP
Merge pull request #205 from mokaddem/hotfix_from_dict
fix: AbstractMISP.from_dict() do not accept positional argumentpull/215/head
commit
4945a88766
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue