_structure(): Use .get_content_type()

This commit is contained in:
Barry Warsaw 2002-09-01 21:04:43 +00:00
parent 674deb2eea
commit a4ce1cf34c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def _structure(msg, level=0, fp=None):
if fp is None:
fp = sys.stdout
tab = ' ' * (level * 4)
print >> fp, tab + msg.get_type(msg.get_default_type())
print >> fp, tab + msg.get_content_type()
if msg.is_multipart():
for subpart in msg.get_payload():
_structure(subpart, level+1, fp)