From: Barry Warsaw Date: Thu, 11 Jul 2002 20:24:36 +0000 (+0000) Subject: _structure(): Don't get the whole Content-Type: header, just get the X-Git-Tag: v2.3c1~5036 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ef1c7d85be6832b21090c6e087b1567a256ef73;p=thirdparty%2FPython%2Fcpython.git _structure(): Don't get the whole Content-Type: header, just get the type with get_type(). --- diff --git a/Lib/email/Iterators.py b/Lib/email/Iterators.py index 5253710deeeb..0d0e0b2c2d09 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)