diff options
-rwxr-xr-x | Lib/smtplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index f024bff..079f128 100755 --- 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) |