[Python-checkins] python/dist/src/Lib/email Iterators.py,1.8,1.9

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Thu, 11 Jul 2002 13:24:38 -0700


Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv8212

Modified Files:
	Iterators.py 
Log Message:
_structure(): Don't get the whole Content-Type: header, just get the
type with get_type().


Index: Iterators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Iterators.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Iterators.py	9 Jul 2002 02:39:07 -0000	1.8
--- Iterators.py	11 Jul 2002 20:24:36 -0000	1.9
***************
*** 16,20 ****
      """A handy debugging aid"""
      tab = ' ' * (level * 4)
!     print tab + msg.get('content-type', msg.get_default_type())
      if msg.is_multipart():
          for subpart in msg.get_payload():
--- 16,20 ----
      """A handy debugging aid"""
      tab = ' ' * (level * 4)
!     print tab + msg.get_type(msg.get_default_type())
      if msg.is_multipart():
          for subpart in msg.get_payload():