summaryrefslogtreecommitdiffstats
path: root/Lib/email/generator.py
diff options
context:
space:
mode:
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)