~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Curtis Hovey
  • Date: 2012-01-30 18:28:17 UTC
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: curtis.hovey@canonical.com-20120130182817-t72j09m11g8fspdq
Hush lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        """
55
55
        response = self._method_archive(
56
56
            'POST', archive_id, {'key': key}, file_obj.read())
57
 
        data = response.read()
 
57
        response.read()
58
58
        if response.status == httplib.BAD_REQUEST:
59
59
            raise Exception('wtf')
60
60
        elif response.status == httplib.CREATED:
108
108
            raise UnsupportedOrder
109
109
        data = response.read()
110
110
        return simplejson.loads(data)
111