/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/plugins/git/send.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-14 19:47:11 UTC
  • mfrom: (7027.4.12 python3-blackbox)
  • Revision ID: breezy.the.bot@gmail.com-20180714194711-h73vd0gzphiab6vf
Change run_bzr to use StringIOWithEncoding for stderr and stdout on python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-blackbox/+merge/349090

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
            return object_mode(kind, executable)
76
76
        def get_blob(present, tree, path):
77
77
            if present:
78
 
                return Blob.from_string(tree.get_file(path).read())
 
78
                with tree.get_file(path) as f:
 
79
                    return Blob.from_string(f.read())
79
80
            else:
80
81
                return None
81
82
        trees = (self.old_tree, self.new_tree)