~rye/ubuntuone-client/unique-check-is-unique

« back to all changes in this revision

Viewing changes to ubuntuone/api/restclient.py

  • Committer: Tarmac
  • Author(s): john.lenton at canonical
  • Date: 2010-09-13 18:51:04 UTC
  • mfrom: (689.1.4 fix-633241)
  • Revision ID: tarmac-20100913185104-uz8ob2lsti4056su
Do calls to libproxy in a separate process. (LP:633241)

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
                                   oauth_consumer, oauth_token)
62
62
 
63
63
        try:
64
 
            request = urllib2.Request(url, data=None, headers=oauth_request.to_header())
 
64
            headers = oauth_request.to_header()
 
65
            request = urllib2.Request(url, data=None, headers=headers)
65
66
            response = urllib2.urlopen(request)
66
67
            data = response.read()
67
68
            return simplejson.loads(data)