mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Patch #572031: AUTH method LOGIN for smtplib
(most of the patch hides in rev. 1.59). Backported to 2.2.
This commit is contained in:
@@ -574,7 +574,7 @@ class SMTP:
|
||||
"%s %s" % (AUTH_LOGIN, encode_base64(user, eol="")))
|
||||
if code != 334:
|
||||
raise SMTPAuthenticationError(code, resp)
|
||||
(code, resp) = self.docmd(encode_base64(user, eol=""))
|
||||
(code, resp) = self.docmd(encode_base64(password, eol=""))
|
||||
elif authmethod is None:
|
||||
raise SMTPException("No suitable authentication method found.")
|
||||
if code not in [235, 503]:
|
||||
|
||||
Reference in New Issue
Block a user