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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-25 21:22:37 UTC
  • mfrom: (7045.4.19 python3-t)
  • Revision ID: breezy.the.bot@gmail.com-20180725212237-16h5uliv36e2fv54
Fix another ~400 tests on Python 3.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
3644
3644
        def get_message(commit_obj):
3645
3645
            """Callback to get commit message"""
3646
3646
            if file:
3647
 
                with open(file) as f:
 
3647
                with open(file, 'rb') as f:
3648
3648
                    my_message = f.read().decode(osutils.get_user_encoding())
3649
3649
            elif message is not None:
3650
3650
                my_message = message