From 4ef1c7d85be6832b21090c6e087b1567a256ef73 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 11 Jul 2002 20:24:36 +0000 Subject: _structure(): Don't get the whole Content-Type: header, just get the type with get_type(). --- Lib/email/Iterators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/email/Iterators.py b/Lib/email/Iterators.py index 5253710..0d0e0b2 100644 --- a/Lib/email/Iterators.py +++ b/Lib/email/Iterators.py @@ -15,7 +15,7 @@ except SyntaxError: def _structure(msg, level=0): """A handy debugging aid""" tab = ' ' * (level * 4) - print tab + msg.get('content-type', msg.get_default_type()) + print tab + msg.get_type(msg.get_default_type()) if msg.is_multipart(): for subpart in msg.get_payload(): _structure(subpart, level+1) -- cgit v0.12