diff options
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-x | Lib/smtplib.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index d840373..adbdcbc 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -44,7 +44,6 @@ Example: import socket import re import rfc822 -import types import base64 import hmac @@ -651,7 +650,7 @@ class SMTP: self.rset() raise SMTPSenderRefused(code, resp, from_addr) senderrs={} - if isinstance(to_addrs, types.StringTypes): + if isinstance(to_addrs, basestring): to_addrs = [to_addrs] for each in to_addrs: (code,resp)=self.rcpt(each, rcpt_options) |