summaryrefslogtreecommitdiff
path: root/Lib/email/generator.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-09-08 22:27:39 -0400
committerR David Murray <rdmurray@bitdance.com>2016-09-08 22:27:39 -0400
commit0a902083d95dc60d9e10538088d7623d6f8222b1 (patch)
treecc7756c74a7a00361a363c51ab8c7ff0878e3ad9 /Lib/email/generator.py
parentf724e3a6318ecb7a515058665fd1a82fce04d5ef (diff)
parent8bdc5a92711b525e036a4d0ecb0f866da3494607 (diff)
downloadcpython-0a902083d95dc60d9e10538088d7623d6f8222b1.tar.gz
Merge: #27630: Be consistent in how _XXX/_encoded_XXX vars are initialized.
Diffstat (limited to 'Lib/email/generator.py')
-rw-r--r--Lib/email/generator.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py
index 6d283e9add..51109f9131 100644
--- a/Lib/email/generator.py
+++ b/Lib/email/generator.py
@@ -444,7 +444,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.
@@ -466,7 +467,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: