Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Fix post deserialization to be recursive (fixes #263) #265

Merged
merged 2 commits into from
Nov 12, 2014

Conversation

leplatrem
Copy link
Contributor

No description provided.

if isinstance(data, six.string_types):
return six.text_type(data)
if isinstance(data, collections.Mapping):
return dict(map(post_serialize, six.iteritems(data)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taken from tests/support.py :)

@almet
Copy link
Member

almet commented Nov 12, 2014

nice :)

almet added a commit that referenced this pull request Nov 12, 2014
Fix post deserialization to be recursive (fixes #263)
@almet almet merged commit c95d028 into master Nov 12, 2014
@almet almet deleted the 263_fix_post_deserialize branch November 12, 2014 09:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants