Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Fix bug when storing the simple reduced state.
Browse files Browse the repository at this point in the history
This feature was earlier added, but this was clearly a bug.
  • Loading branch information
strichter committed Jan 13, 2014
1 parent 0d5a3bf commit 58e9242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongopersist/serialize.py
Expand Up @@ -155,7 +155,7 @@ def get_non_persistent_state(self, obj, seen):
if isinstance(reduced, str):
# When the reduced state is just a string it represents a name in
# a module. The module will be extrated from __module__.
return {'_py_constant': obj.__module__+'.'+reduced[0]}
return {'_py_constant': obj.__module__+'.'+reduced}
if len(reduced) == 2:
factory, args = reduced
obj_state = {}
Expand Down

0 comments on commit 58e9242

Please sign in to comment.