diff options
author | R David Murray <rdmurray@bitdance.com> | 2016-09-08 21:57:06 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2016-09-08 21:57:06 (GMT) |
commit | 301edfa579036baf35c1aa4ab5ea50bcd51c0fe0 (patch) | |
tree | b5df0f6b6c5e58020fbda4c60bbcd4bdb1c8bf65 /Lib/email/generator.py | |
parent | 4c483ad52b6f7760a0a861badae6c803d6ce8590 (diff) | |
download | cpython-301edfa579036baf35c1aa4ab5ea50bcd51c0fe0.zip cpython-301edfa579036baf35c1aa4ab5ea50bcd51c0fe0.tar.gz cpython-301edfa579036baf35c1aa4ab5ea50bcd51c0fe0.tar.bz2 |
Add policy keyword to email.generator.DecodedGenerator.
Diffstat (limited to 'Lib/email/generator.py')
-rw-r--r-- | Lib/email/generator.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py index 7c3cdc9..ae42cdf 100644 --- a/Lib/email/generator.py +++ b/Lib/email/generator.py @@ -452,7 +452,8 @@ class DecodedGenerator(Generator): Like the Generator base class, except that non-text parts are substituted with a format string representing the part. """ - def __init__(self, outfp, mangle_from_=None, maxheaderlen=78, fmt=None): + def __init__(self, outfp, mangle_from_=None, maxheaderlen=None, fmt=None, *, + policy=None): """Like Generator.__init__() except that an additional optional argument is allowed. @@ -474,7 +475,8 @@ class DecodedGenerator(Generator): [Non-text (%(type)s) part of message omitted, filename %(filename)s] """ - Generator.__init__(self, outfp, mangle_from_, maxheaderlen) + Generator.__init__(self, outfp, mangle_from_, maxheaderlen, + policy=policy) if fmt is None: self._fmt = _FMT else: |