diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-02-24 15:07:24 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-02-24 15:07:24 (GMT) |
commit | 3356766abfbdec49e671e0e16778139fd9b0c490 (patch) | |
tree | 2857556b1e7a4e899d4a6349abff8db6e73d171e | |
parent | 5cef57131fc02de55133e4eafdee27fb76456bb8 (diff) | |
download | cpython-3356766abfbdec49e671e0e16778139fd9b0c490.zip cpython-3356766abfbdec49e671e0e16778139fd9b0c490.tar.gz cpython-3356766abfbdec49e671e0e16778139fd9b0c490.tar.bz2 |
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) |