+++ /dev/null
-# Copyright (C) 2001-2006 Python Software Foundation\r
-# Author: Barry Warsaw\r
-# Contact: email-sig@python.org\r
-\r
-"""Base class for MIME specializations."""\r
-\r
-__all__ = ['MIMEBase']\r
-\r
-from email import message\r
-\r
-\r
-\f\r
-class MIMEBase(message.Message):\r
- """Base class for MIME specializations."""\r
-\r
- def __init__(self, _maintype, _subtype, **_params):\r
- """This constructor adds a Content-Type: and a MIME-Version: header.\r
-\r
- The Content-Type: header is taken from the _maintype and _subtype\r
- arguments. Additional parameters for this header are taken from the\r
- keyword arguments.\r
- """\r
- message.Message.__init__(self)\r
- ctype = '%s/%s' % (_maintype, _subtype)\r
- self.add_header('Content-Type', ctype, **_params)\r
- self['MIME-Version'] = '1.0'\r