/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/shelf.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-18 19:18:40 UTC
  • mto: This revision was merged to the branch mainline in revision 6928.
  • Revision ID: jelmer@jelmer.uk-20180218191840-2wezg20u9ffbfmed
Fix more bees, use with rather than try/finally for some files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
293
293
 
294
294
    @staticmethod
295
295
    def metadata_record(serializer, revision_id, message=None):
296
 
        metadata = {'revision_id': revision_id}
 
296
        metadata = {b'revision_id': revision_id}
297
297
        if message is not None:
298
 
            metadata['message'] = message.encode('utf-8')
 
298
            metadata[b'message'] = message.encode('utf-8')
299
299
        return serializer.bytes_record(
300
300
            bencode.bencode(metadata), (('metadata',),))
301
301