From: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Date: Sat, 23 Aug 2025 10:17:14 +0000 (+0200) Subject: gh-136134: restore truncated comment post GH-136623 (#138088) X-Git-Tag: v3.15.0a1~605 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab1bef8ad27ad531a1109cfc016ea627d94f9cc1;p=thirdparty%2FPython%2Fcpython.git gh-136134: restore truncated comment post GH-136623 (#138088) This amends 766614f88af0433c2c14f5c4ed11c92d0fb04e61 where a comment has been incorrectly truncated. --- diff --git a/Lib/smtplib.py b/Lib/smtplib.py index b71fee8777e8..808f0fd47e8b 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]