[Python-checkins] CVS: python/dist/src/Lib/email MIMEBase.py,1.1,1.2

Barry Warsaw bwarsaw@users.sourceforge.net
2001年9月25日 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'

AltStyle によって変換されたページ (->オリジナル) /