_structure(): Don't get the whole Content-Type: header, just get the

type with get_type().
This commit is contained in:
Barry Warsaw 2002-07-11 20:24:36 +00:00
parent 425a8ec05e
commit 4ef1c7d85b
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
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)