diff options
author | Michael W. Hudson <mwh@python.net> | 2002-02-25 10:52:43 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-02-25 10:52:43 (GMT) |
commit | 0b2cb48403150e3bb6828b7af0ddc364a7fa7918 (patch) | |
tree | 6382ec88976a8914128b404ee59f8edf566110de | |
parent | 414a195aa376f5e1d422fe825519c752c6eb6bb7 (diff) | |
download | cpython-0b2cb48403150e3bb6828b7af0ddc364a7fa7918.zip cpython-0b2cb48403150e3bb6828b7af0ddc364a7fa7918.tar.gz cpython-0b2cb48403150e3bb6828b7af0ddc364a7fa7918.tar.bz2 |
backport loewis' checkin of
revision 1.48 of smtplib.py
Accept Unicode strings as SMTP TO addresses. Fixes #521270.
2.2.1 candidate.
-rwxr-xr-x | Lib/smtplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index f024bff..079f128 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -636,7 +636,7 @@ class SMTP: self.rset() raise SMTPSenderRefused(code, resp, from_addr) senderrs={} - if type(to_addrs) == types.StringType: + if isinstance(to_addrs, types.StringTypes): to_addrs = [to_addrs] for each in to_addrs: (code,resp)=self.rcpt(each, rcpt_options) |