~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/service.py

  • Committer: Curtis Hovey
  • Date: 2012-03-17 21:19:55 UTC
  • Revision ID: curtis.hovey@canonical.com-20120317211955-4eghomev1zoq511s
Change argument order to reflect common usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        if self.method == 'GET':
39
39
            return self.do_GET()
40
40
 
41
 
    def send_response(self, code, response='', headers={}, reason=None):
 
41
    def send_response(self, code, response='', reason=None, headers={}):
42
42
        if reason is None:
43
43
            reason = httplib.responses[code]
44
44
        response_code = '%s %s' % (code, reason)