Kaydet (Commit) 3356766a authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Accept Unicode strings as SMTP TO addresses. Fixes #521270.

2.2.1 candidate.
üst 5cef5713
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment