diff options
author | Pablo Aguiar <scorphus@gmail.com> | 2018-09-07 22:04:48 (GMT) |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2018-09-07 22:04:48 (GMT) |
commit | d5fbe9b1a3d65ceeb9159c5ba999ee966a945f76 (patch) | |
tree | f2124d01569a59c8bc937f02a0954b9f2f807e1f /Misc | |
parent | 4e519377b1b84c9414a360961276993d24198825 (diff) | |
download | cpython-d5fbe9b1a3d65ceeb9159c5ba999ee966a945f76.zip cpython-d5fbe9b1a3d65ceeb9159c5ba999ee966a945f76.tar.gz cpython-d5fbe9b1a3d65ceeb9159c5ba999ee966a945f76.tar.bz2 |
bpo-34246: Use no mutable default args in smtplib (GH-8554)
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-07-29-15-25-15.bpo-34246.xiKq-Q.rst | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,7 @@ Eitan Adler Anton Afanasyev Ali Afshar Nitika Agarwal +Pablo S. Blum de Aguiar Jim Ahlstrom Farhan Ahmad Matthew Ahrens diff --git a/Misc/NEWS.d/next/Library/2018-07-29-15-25-15.bpo-34246.xiKq-Q.rst b/Misc/NEWS.d/next/Library/2018-07-29-15-25-15.bpo-34246.xiKq-Q.rst new file mode 100644 index 0000000..50c91ec --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-07-29-15-25-15.bpo-34246.xiKq-Q.rst @@ -0,0 +1,2 @@ +:meth:`smtplib.SMTP.send_message` no longer modifies the content of the +*mail_options* argument. Patch by Pablo S. Blum de Aguiar. |