[Python-checkins] CVS: python/dist/src/Lib/email MIMEBase.py,1.1,1.2
Barry Warsaw
bwarsaw@users.sourceforge.net
Tue, 25 Sep 2001 22:36:38 -0700
Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv27710
Modified Files:
MIMEBase.py
Log Message:
__init__(): Arguments major renamed to maintype and minor renamed to
subtype for consistency with the rest of the package.
Index: MIMEBase.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/MIMEBase.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MIMEBase.py 2001/09/23 03:17:28 1.1
--- MIMEBase.py 2001/09/26 05:36:36 1.2
***************
*** 12,24 ****
"""Base class for MIME specializations."""
! def __init__(self, _major, _minor, **_params):
"""This constructor adds a Content-Type: and a MIME-Version: header.
! The Content-Type: header is taken from the _major and _minor
arguments. Additional parameters for this header are taken from the
keyword arguments.
"""
Message.Message.__init__(self)
! ctype = '%s/%s' % (_major, _minor)
self.add_header('Content-Type', ctype, **_params)
self['MIME-Version'] = '1.0'
--- 12,24 ----
"""Base class for MIME specializations."""
! def __init__(self, _maintype, _subtype, **_params):
"""This constructor adds a Content-Type: and a MIME-Version: header.
! The Content-Type: header is taken from the _maintype and _subtype
arguments. Additional parameters for this header are taken from the
keyword arguments.
"""
Message.Message.__init__(self)
! ctype = '%s/%s' % (_maintype, _subtype)
self.add_header('Content-Type', ctype, **_params)
self['MIME-Version'] = '1.0'