/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/tests/treeshape.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from ..trace import warning
34
34
from ..osutils import pathjoin
35
35
 
36
 
 
37
36
def build_tree_contents(template):
38
37
    """Reconstitute some files from a text description.
39
38
 
54
53
        elif name[-1] == '@':
55
54
            os.symlink(tt[1], tt[0][:-1])
56
55
        else:
57
 
            with open(name, 'w' + ('b' if isinstance(tt[1], bytes) else '')) as f:
 
56
            with open(name, 'wb') as f:
58
57
                f.write(tt[1])
59
58
 
60
59