From ab1bef8ad27ad531a1109cfc016ea627d94f9cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Sat, 23 Aug 2025 12:17:14 +0200 Subject: [PATCH] gh-136134: restore truncated comment post GH-136623 (#138088) This amends 766614f88af0433c2c14f5c4ed11c92d0fb04e61 where a comment has been incorrectly truncated. --- Lib/smtplib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/smtplib.py b/Lib/smtplib.py index b71fee8777e..808f0fd47e8 100644 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -734,6 +734,7 @@ class SMTP: preferred_auths = ['CRAM-MD5', 'PLAIN', 'LOGIN'] else: preferred_auths = ['PLAIN', 'LOGIN'] + # We try the supported authentications in our preferred order, if # the server supports them. authlist = [auth for auth in preferred_auths if auth in advertised_authlist]