summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2005-01-08 14:12:27 (GMT)
committerJohannes Gijsbers <jlg@dds.nl>2005-01-08 14:12:27 (GMT)
commit9a98364ba3369f76583774d4414be8c719849fb6 (patch)
tree89a05960600732983a4922949271f41595a54735 /Lib/smtplib.py
parentc7fc10a41873df6dc40055e62385c1dd198e18b6 (diff)
downloadcpython-9a98364ba3369f76583774d4414be8c719849fb6.zip
cpython-9a98364ba3369f76583774d4414be8c719849fb6.tar.gz
cpython-9a98364ba3369f76583774d4414be8c719849fb6.tar.bz2
Replace rfc822.parseaddr with email.Utils.parseaddr. The implementation is
still the same, so there should be no backwards-compatibility problems.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 368aa8d..61c3577 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -43,7 +43,7 @@ Example:
import socket
import re
-import rfc822
+import email.Utils
import base64
import hmac
from email.base64MIME import encode as encode_base64
@@ -171,7 +171,7 @@ def quoteaddr(addr):
"""
m = (None, None)
try:
- m=rfc822.parseaddr(addr)[1]
+ m = email.Utils.parseaddr(addr)[1]
except AttributeError:
pass
if m == (None, None): # Indicates parse failure or AttributeError