From 3356766abfbdec49e671e0e16778139fd9b0c490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 24 Feb 2002 15:07:24 +0000 Subject: Accept Unicode strings as SMTP TO addresses. Fixes #521270. 2.2.1 candidate. --- Lib/smtplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12