Skip to content
Snippets Groups Projects
Commit 9d22f79b authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dataformat] Read and decode from file before loading json

parent 27ccb4d6
Branches
Tags
2 merge requests!17Merge development branch 1.5.x,!10Py3 compatibility
...@@ -168,7 +168,7 @@ class DataFormat(object): ...@@ -168,7 +168,7 @@ class DataFormat(object):
return return
with open(json_path, 'rb') as f: with open(json_path, 'rb') as f:
self.data = simplejson.load(f) self.data = simplejson.loads(f.read().decode('utf-8'))
dataformat_cache[self._name] = self #registers itself into the cache dataformat_cache[self._name] = self #registers itself into the cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment