storage: Fixed dump()
@@ -146,9 +146,9 @@ class Storage(object):
import json
with tempfile.NamedTemporaryFile(mode='w', prefix="storage", delete=False) as fp:
fp.write("[")
- json.dump({k: json.loads(v) for k, v in self.localstore.items()}, fp)
+ json.dump({str(k): str(v) for k, v in self.localstore.items()}, fp)
fp.write(", ")
- json.dump({k: list(v['+']) for k, v in self.localstore_sets.items()}, fp)
+ json.dump({str(k): list(v['+']) for k, v in self.localstore_sets.items()}, fp)
fp.write("]")
name = fp.name
return name
