mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
__init__(): Be sure to set the default type to message/rfc822.
This commit is contained in:
parent
8fa06b55f6
commit
ed53bdb02d
1 changed files with 2 additions and 0 deletions
|
|
@ -28,3 +28,5 @@ def __init__(self, _msg, _subtype='rfc822'):
|
|||
# It's convenient to use this base class method. We need to do it
|
||||
# this way or we'll get an exception
|
||||
Message.Message.attach(self, _msg)
|
||||
# And be sure our default type is set correctly
|
||||
self.set_default_type('message/rfc822')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue