projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cef571
)
Accept Unicode strings as SMTP TO addresses. Fixes #521270.
author
Martin v. Löwis
<martin@v.loewis.de>
Sun, 24 Feb 2002 15:07:24 +0000
(15:07 +0000)
committer
Martin v. Löwis
<martin@v.loewis.de>
Sun, 24 Feb 2002 15:07:24 +0000
(15:07 +0000)
2.2.1 candidate.
Lib/smtplib.py
patch
|
blob
|
history
diff --git
a/Lib/smtplib.py
b/Lib/smtplib.py
index f024bffc1f56224dad5bd5235a3ed0eb3bbeb555..079f128cc5885c1c34370ded3d65dbcb14305864 100755
(executable)
--- 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)