]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.6] bpo-34246: Use no mutable default args in smtplib (GH-8554) (#9112)
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 8 Sep 2018 01:20:27 +0000 (02:20 +0100)
committerGitHub <noreply@github.com>
Sat, 8 Sep 2018 01:20:27 +0000 (02:20 +0100)
commiteb6ab73f93c8b883a8d75a83560e2b4c59170d95
tree8f26cf42c7bef651024feb3676c001857a228d55
parent963bcc8b71e4ab8c9ee9a91ed1300b6e39219821
[3.6] bpo-34246: Use no mutable default args in smtplib (GH-8554) (#9112)

Some methods of the SMTP class use mutable default arguments. Specially
`send_message` is affected as it mutates one of the args by appending items
to it, which has side effects on further calls..
(cherry picked from commit d5fbe9b1a3d65ceeb9159c5ba999ee966a945f76)

Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
Doc/library/smtplib.rst
Lib/smtplib.py
Lib/test/test_smtplib.py
Misc/ACKS
Misc/NEWS.d/next/Library/2018-07-29-15-25-15.bpo-34246.xiKq-Q.rst [new file with mode: 0644]