/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Martin
  • Date: 2009-09-20 22:12:36 UTC
  • mto: This revision was merged to the branch mainline in revision 5257.
  • Revision ID: gzlist@googlemail.com-20090920221236-84nyjpop0ttgfwzj
Ensure all files opened by bazaar proper are explicitly closed

Show diffs side-by-side

added added

removed removed

Lines of Context:
3086
3086
        """
3087
3087
        try:
3088
3088
            transport = a_bzrdir.get_repository_transport(None)
3089
 
            format_string = transport.get("format").read()
 
3089
            format_string = transport.get_bytes("format")
3090
3090
            return format_registry.get(format_string)
3091
3091
        except errors.NoSuchFile:
3092
3092
            raise errors.NoRepositoryPresent(a_bzrdir)