-# Copyright (C) 2002-2006 Python Software Foundation\r
-# Author: Barry Warsaw\r
-# Contact: email-sig@python.org\r
-\r
-"""Base class for MIME type messages that are not multipart."""\r
-\r
-__all__ = ['MIMENonMultipart']\r
-\r
-from email import errors\r
-from email.mime.base import MIMEBase\r
-\r
-\r
-\f\r
-class MIMENonMultipart(MIMEBase):\r
- """Base class for MIME multipart/* type messages."""\r
-\r
- def attach(self, payload):\r
- # The public API prohibits attaching multiple subparts to MIMEBase\r
- # derived subtypes since none of them are, by definition, of content\r
- # type multipart/*\r
- raise errors.MultipartConversionError(\r
- 'Cannot attach additional subparts to non-multipart/*')\r