~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_pycurl.py

  • Committer: Vincent Ladeuil
  • Date: 2011-05-27 07:39:41 UTC
  • mto: This revision was merged to the branch mainline in revision 5925.
  • Revision ID: v.ladeuil+lp@free.fr-20110527073941-9rt9xfex6vg02al5
Fix some more prompts to be unicode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
        The URL and code are automatically included as appropriate.
302
302
 
303
303
        :param info: Extra information to include in the message.
304
 
        :param body: File-like object from which the body of the page can be read.
 
304
 
 
305
        :param body: File-like object from which the body of the page can be
 
306
            read.
305
307
        """
306
308
        code = curl.getinfo(pycurl.HTTP_CODE)
307
309
        url = curl.getinfo(pycurl.EFFECTIVE_URL)
321
323
            else:
322
324
                msg = ': ' + info
323
325
            raise errors.InvalidHttpResponse(
324
 
                url, 'Unable to handle http code %d%s: %s' 
 
326
                url, 'Unable to handle http code %d%s: %s'
325
327
                % (code, msg, plaintext_body))
326
328
 
327
329
    def _debug_cb(self, kind, text):