Kaydet (Commit) 0b2cb484 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

backport loewis' checkin of

    revision 1.48 of smtplib.py

Accept Unicode strings as SMTP TO addresses. Fixes #521270.
2.2.1 candidate.
üst 414a195a
......@@ -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