/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 breezy/bzr/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-17 00:06:35 UTC
  • mto: (6855.3.2 bees)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180217000635-p82hqmv6yt9t3cbl
Format strings are bytes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
        try:
159
159
            transport = a_bzrdir.get_repository_transport(None)
160
160
            format_string = transport.get_bytes("format")
161
 
            # GZ 2017-06-17: Where should format strings get decoded...
162
 
            format_text = format_string.decode("ascii")
163
161
        except errors.NoSuchFile:
164
162
            raise errors.NoRepositoryPresent(a_bzrdir)
165
 
        return klass._find_format(format_registry, 'repository', format_text)
 
163
        return klass._find_format(format_registry, 'repository', format_string)
166
164
 
167
165
    def check_support_status(self, allow_unsupported, recommend_upgrade=True,
168
166
            basedir=None):