summaryrefslogtreecommitdiff
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-04 09:42:55 +0000
committerGeorg Brandl <georg@python.org>2009-06-04 09:42:55 +0000
commit706824f19f734e5e567f32d989376547c0ae08da (patch)
tree0cd5ff7ccc373a848f409b572f1bd1ae727fd8fe /Lib/smtplib.py
parent3ed0deb9af03c3546ebe583c38ccfd0c5e364196 (diff)
downloadcpython-git-706824f19f734e5e567f32d989376547c0ae08da.tar.gz
More codestring -> codebytes.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index baed78107b..b88adfe96e 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -540,7 +540,7 @@ class SMTP:
"""
def encode_cram_md5(challenge, user, password):
- challenge = base64.decodestring(challenge)
+ challenge = base64.decodebytes(challenge)
response = user + " " + hmac.HMAC(password.encode('ascii'),
challenge).hexdigest()
return encode_base64(response.encode('ascii'), eol='')