home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / email / mime / nonmultipart.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  935 b   |  19 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''Base class for MIME type messages that are not multipart.'''
  5. __all__ = [
  6.     'MIMENonMultipart']
  7. from email import errors
  8. from email.mime.base import MIMEBase
  9.  
  10. class MIMENonMultipart(MIMEBase):
  11.     '''Base class for MIME multipart/* type messages.'''
  12.     __pychecker__ = 'unusednames=payload'
  13.     
  14.     def attach(self, payload):
  15.         raise errors.MultipartConversionError('Cannot attach additional subparts to non-multipart/*')
  16.  
  17.     del __pychecker__
  18.  
  19.