~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
414
414
        elif mode == 'wb':
415
415
            raise BzrError("Branch.controlfile(mode='wb') is not supported, use put_controlfiles")
416
416
        elif mode == 'r':
 
417
            # XXX: Do we really want errors='replace'?   Perhaps it should be
 
418
            # an error, or at least reported, if there's incorrectly-encoded
 
419
            # data inside a file.
 
420
            # <https://launchpad.net/products/bzr/+bug/3823>
417
421
            return codecs.getreader('utf-8')(self._transport.get(relpath), errors='replace')
418
422
        elif mode == 'w':
419
423
            raise BzrError("Branch.controlfile(mode='w') is not supported, use put_controlfiles")