mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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()
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue