~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Curtis Hovey
  • Date: 2012-01-30 18:31:19 UTC
  • mfrom: (6.2.2 client-get-messages-0)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: curtis.hovey@canonical.com-20120130183119-ylmo65mur5ogktud
Merged lint fixes.

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