~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

(jam) Switch from Transport.get() to .get_bytes(),
        close open file handles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1472
1472
 
1473
1473
    def _get_config_file(self):
1474
1474
        try:
1475
 
            return self._transport.get(self._filename)
 
1475
            return StringIO(self._transport.get_bytes(self._filename))
1476
1476
        except errors.NoSuchFile:
1477
1477
            return StringIO()
1478
1478