Merge pull request #205 from mokaddem/hotfix_from_dict

fix: AbstractMISP.from_dict() do not accept positional argument
pull/215/head
Raphaël Vinot 2018-03-27 10:03:48 +02:00 committed by GitHub
commit 4945a88766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.