diff --git a/PyConf/python/PyConf/components.py b/PyConf/python/PyConf/components.py index ed10b42b940f10eb758f5b689eec2168c2c04354..101d657ddc81e22b1ffbc04cb4e5825ca71b9324 100644 --- a/PyConf/python/PyConf/components.py +++ b/PyConf/python/PyConf/components.py @@ -58,9 +58,10 @@ _FLOW_GRAPH_OUTPUT_COLOUR = 'coral1' def __json_dump(obj): if hasattr(obj, "to_json"): - return obj.to_json(); + return obj.to_json() raise TypeError(repr(obj) + " is not json serializable") + def _hash_dict(d): """hash a dict with string keys""" return hash(json.dumps(d, default=__json_dump, sort_keys=True))