]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24832)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 13 Mar 2021 00:15:23 +0000 (16:15 -0800)
committerGitHub <noreply@github.com>
Sat, 13 Mar 2021 00:15:23 +0000 (16:15 -0800)
commit32717b982d3347e30ae53eb434e2a32e0d03d51e
tree4fde388e9cb62297615d244283ef8b42d95cc2a9
parent4d7f11e05731f67fd2c07ec2972c6cb9861d52be
bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24832)

* Fix auth_login logic (bpo-27820)

* Also fix a longstanding bug in the SimSMTPChannel.found_terminator() method that causes inability to test
SMTP AUTH with initial_response_ok=False.
(cherry picked from commit 7591d9455eb37525c832da3d65e1a7b3e6dbf613)

Co-authored-by: Pandu E POLUAN <pepoluan@gmail.com>
Lib/smtplib.py
Lib/test/test_smtplib.py
Misc/NEWS.d/next/Library/2021-03-10-14-07-44.bpo-27820.Wwdy-r.rst [new file with mode: 0644]