/breezy-debian/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-debian/trunk

« back to all changes in this revision

Viewing changes to upstream/pristinetar.py

  • Committer: Jelmer Vernooij
  • Date: 2018-10-10 21:43:37 UTC
  • Revision ID: jelmer@jelmer.uk-20181010214337-ffmg6a8np2ywc67h
Python3 compatibility fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
            if not force:
98
98
                raise PristineTarError("An existing pristine tar entry exists for %s" %
99
99
                        filename)
100
 
        tree.put_file_bytes_non_atomic(id_filename, tree_id.encode('ascii') + b'\n')
 
100
        tree.put_file_bytes_non_atomic(id_filename, tree_id + b'\n')
101
101
        tree.put_file_bytes_non_atomic(delta_filename, delta)
102
102
        tree.add([id_filename, delta_filename], [None, None], ['file', 'file'])
103
103
        tree.commit('Add pristine tar data for %s' % filename)