mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Accept Unicode strings as SMTP TO addresses. Fixes #521270.
2.2.1 candidate.
This commit is contained in:
parent
5cef57131f
commit
3356766abf
1 changed files with 1 additions and 1 deletions
|
|
@ -636,7 +636,7 @@ class SMTP:
|
||||||
self.rset()
|
self.rset()
|
||||||
raise SMTPSenderRefused(code, resp, from_addr)
|
raise SMTPSenderRefused(code, resp, from_addr)
|
||||||
senderrs={}
|
senderrs={}
|
||||||
if type(to_addrs) == types.StringType:
|
if isinstance(to_addrs, types.StringTypes):
|
||||||
to_addrs = [to_addrs]
|
to_addrs = [to_addrs]
|
||||||
for each in to_addrs:
|
for each in to_addrs:
|
||||||
(code,resp)=self.rcpt(each, rcpt_options)
|
(code,resp)=self.rcpt(each, rcpt_options)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue