diff options
author | Georg Brandl <georg@python.org> | 2007-01-22 19:40:21 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-01-22 19:40:21 +0000 |
commit | 5a096e1b100603f5537eca5124be17abacf17743 (patch) | |
tree | 10a2dbb602c07dff33dfbf19de1a7c91670175ef /Lib/smtplib.py | |
parent | dd7b0525e902ee12a612611ea082e12f5999c823 (diff) | |
download | cpython-git-5a096e1b100603f5537eca5124be17abacf17743.tar.gz |
Use new email module names (#1637162, #1637159, #1637157).
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-x | Lib/smtplib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index a7305ce92e..a5c82a8523 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -43,10 +43,10 @@ Example: import socket import re -import email.Utils +import email.utils import base64 import hmac -from email.base64MIME import encode as encode_base64 +from email.base64mime import encode as encode_base64 from sys import stderr __all__ = ["SMTPException","SMTPServerDisconnected","SMTPResponseException", @@ -172,7 +172,7 @@ def quoteaddr(addr): """ m = (None, None) try: - m = email.Utils.parseaddr(addr)[1] + m = email.utils.parseaddr(addr)[1] except AttributeError: pass if m == (None, None): # Indicates parse failure or AttributeError |