/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/email/emailer.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
        # We must use StringIO.StringIO because we want a Unicode string that
82
82
        # we can pass to send_email and have that do the proper encoding.
83
 
        from ...sixish import StringIO
 
83
        from io import StringIO
84
84
        outf = StringIO()
85
85
 
86
86
        _body = self.config.get('post_commit_body')
137
137
 
138
138
        # We can use a StringIO because show_diff_trees should only write
139
139
        # 8-bit strings. It is an error to write a Unicode string here.
140
 
        from ...sixish import StringIO
 
140
        from io import StringIO
141
141
        diff_content = StringIO()
142
142
        diff_options = self.config.get('post_commit_diffoptions')
143
143
        show_diff_trees(tree_old, tree_new, diff_content, None, diff_options)