summaryrefslogtreecommitdiffstats
path: root/Lib/email/generator.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-02-09 18:02:58 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-02-09 18:02:58 (GMT)
commitceaa8b1d7557cf1550c16f8ae11ee9b118ef9a93 (patch)
tree0d40360708d62f6941b0d2865c7eecdaf1d7a12b /Lib/email/generator.py
parentd489c7a0a3936cd4bbb746e6c3eac36bff38d74b (diff)
downloadcpython-ceaa8b1d7557cf1550c16f8ae11ee9b118ef9a93.zip
cpython-ceaa8b1d7557cf1550c16f8ae11ee9b118ef9a93.tar.gz
cpython-ceaa8b1d7557cf1550c16f8ae11ee9b118ef9a93.tar.bz2
#16564: Fix regression in use of encoders.encode_noop with binary data.
Diffstat (limited to 'Lib/email/generator.py')
-rw-r--r--Lib/email/generator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py
index c6bfb70..d6acde3 100644
--- a/Lib/email/generator.py
+++ b/Lib/email/generator.py
@@ -397,6 +397,9 @@ class BytesGenerator(Generator):
else:
super(BytesGenerator,self)._handle_text(msg)
+ # Default body handler
+ _writeBody = _handle_text
+
@classmethod
def _compile_re(cls, s, flags):
return re.compile(s.encode('ascii'), flags)