Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(64)

Unified Diff: apiclient/model.py

Issue 6737065: Only use data when there is a dataWrapper.
Patch Set: Fix from review comments. Created 13 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/test_json_model.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apiclient/model.py
===================================================================
--- a/apiclient/model.py
+++ b/apiclient/model.py
@@ -261,7 +261,7 @@
def deserialize(self, content):
body = simplejson.loads(content)
- if isinstance(body, dict) and 'data' in body:
+ if self._data_wrapper and isinstance(body, dict) and 'data' in body:
body = body['data']
return body
« no previous file with comments | « no previous file | tests/test_json_model.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b