commit | 81fde8e0f11e18d41b770d076097870160143c1b | [log] [tgz] |
---|---|---|
author | Ali Afshar <afshar@google.com> | Tue Oct 23 11:14:28 2012 -0700 |
committer | Ali Afshar <afshar@google.com> | Tue Oct 23 11:14:28 2012 -0700 |
tree | dac7141333a145427bc34b88030c569c706ccb9f | |
parent | 1a0d5cdd20f640b821242a134277a1c156c0af2c [diff] [blame] |
Ensure that dataWrapper feature is checked before using the 'data' value of a reponse. Reviewed: https://codereview.appspot.com/6737065/ Fixes: http://code.google.com/p/google-api-python-client/issues/detail?id=208
diff --git a/apiclient/model.py b/apiclient/model.py index 0e31053..12fcab6 100644 --- 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