Skip to content
Snippets Groups Projects
Commit e9c9f924 authored by Ka-Lok Lo's avatar Ka-Lok Lo Committed by Gregory Ashton
Browse files

Reinitialize prior dict when reconstructed from json

parent 8abb56b4
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@ Paul Easter
Paul Lasky
Philip Relton
Rhys Green
Rico Lo
Roberto Cotesta
Rory Smith
S. H. Oh
......
......@@ -168,8 +168,7 @@ class PriorDict(dict):
for key in ["__module__", "__name__", "__prior_dict__"]:
if key in prior_dict:
del prior_dict[key]
obj = class_(dict())
obj.from_dictionary(prior_dict)
obj = class_(prior_dict)
return obj
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment