diff options
| author | R David Murray <rdmurray@bitdance.com> | 2016-09-07 20:48:35 (GMT) |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2016-09-07 20:48:35 (GMT) |
| commit | 56b1f1b4d5edef1ca6184225145cffc59d2b3b5d (patch) | |
| tree | 305f7b097d8798b86f376a10cc27f928cb27d7a2 /Lib/email/mime/multipart.py | |
| parent | 3788b85628eb9e8e802374303e14c04b6a817d97 (diff) | |
| download | cpython-56b1f1b4d5edef1ca6184225145cffc59d2b3b5d.zip cpython-56b1f1b4d5edef1ca6184225145cffc59d2b3b5d.tar.gz cpython-56b1f1b4d5edef1ca6184225145cffc59d2b3b5d.tar.bz2 | |
#27331: add policy keyword argument to all MIME subclasses.
Patch by Berker Peksag.
Diffstat (limited to 'Lib/email/mime/multipart.py')
| -rw-r--r-- | Lib/email/mime/multipart.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/mime/multipart.py b/Lib/email/mime/multipart.py index 9661865..2d3f288 100644 --- a/Lib/email/mime/multipart.py +++ b/Lib/email/mime/multipart.py @@ -14,6 +14,7 @@ class MIMEMultipart(MIMEBase): """Base class for MIME multipart/* type messages.""" def __init__(self, _subtype='mixed', boundary=None, _subparts=None, + *, policy=None, **_params): """Creates a multipart/* type message. @@ -33,7 +34,7 @@ class MIMEMultipart(MIMEBase): Additional parameters for the Content-Type header are taken from the keyword arguments (or passed into the _params argument). """ - MIMEBase.__init__(self, 'multipart', _subtype, **_params) + MIMEBase.__init__(self, 'multipart', _subtype, policy=policy, **_params) # Initialise _payload to an empty list as the Message superclass's # implementation of is_multipart assumes that _payload is a list for |
