]> granicus.if.org Git - python/commitdiff
_structure(): Use .get_content_type()
authorBarry Warsaw <barry@python.org>
Sun, 1 Sep 2002 21:04:43 +0000 (21:04 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 1 Sep 2002 21:04:43 +0000 (21:04 +0000)
Lib/email/Iterators.py

index d5f6eebadedf86c259741634ea9d7bd4127d7b1a..9d9a5e7739e3d7940fb6efd9336baf6ec29f8dac 100644 (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)