From: Barry Warsaw <barry@python.org>
Date: Sun, 1 Sep 2002 21:04:43 +0000 (+0000)
Subject: _structure(): Use .get_content_type()
X-Git-Tag: v2.3c1~4242
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4ce1cf34c684029ae7fcde898c21a2017f316de;p=python

_structure(): Use .get_content_type()
---

diff --git a/Lib/email/Iterators.py b/Lib/email/Iterators.py
index d5f6eebade..9d9a5e7739 100644
--- a/Lib/email/Iterators.py
+++ b/Lib/email/Iterators.py
@@ -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)