~jelmer/brz/bgt

« back to all changes in this revision

Viewing changes to breezy/email_message.py

  • Committer: Jelmer Vernooij
  • Date: 2017-07-23 22:06:41 UTC
  • mfrom: (6738 trunk)
  • mto: This revision was merged to the branch mainline in revision 6739.
  • Revision ID: jelmer@jelmer.uk-20170723220641-69eczax9bmv8d6kk
Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
from . import __version__ as _breezy_version
30
30
from .osutils import safe_unicode
 
31
from .sixish import (
 
32
    text_type,
 
33
    )
31
34
from .smtp_connection import SMTPConnection
32
35
 
33
36
 
60
63
        self._body = body
61
64
        self._parts = []
62
65
 
63
 
        if isinstance(to_address, basestring):
 
66
        if isinstance(to_address, (str, text_type)):
64
67
            to_address = [ to_address ]
65
68
 
66
69
        to_addresses = []