Kaydet (Commit) a4ce1cf3 authored tarafından Barry Warsaw's avatar Barry Warsaw

_structure(): Use .get_content_type()

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