~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.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:
3094
3094
        """
3095
3095
        try:
3096
3096
            transport = a_bzrdir.get_repository_transport(None)
3097
 
            format_string = transport.get("format").read()
 
3097
            format_string = transport.get_bytes("format")
3098
3098
            return format_registry.get(format_string)
3099
3099
        except errors.NoSuchFile:
3100
3100
            raise errors.NoRepositoryPresent(a_bzrdir)