Commit 4ef1c7d8 authored by Barry Warsaw's avatar Barry Warsaw

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

type with get_type().
parent 425a8ec0
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment