summaryrefslogtreecommitdiffstats
path: root/Lib/email/Iterators.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-09-01 21:04:43 (GMT)
committerBarry Warsaw <barry@python.org>2002-09-01 21:04:43 (GMT)
commita4ce1cf34c684029ae7fcde898c21a2017f316de (patch)
tree06e5c7015fb26bbab01cf85d1a9295b3839ff2bb /Lib/email/Iterators.py
parent674deb2eeaeb8358415457413502e3b5851a7010 (diff)
downloadcpython-a4ce1cf34c684029ae7fcde898c21a2017f316de.zip
cpython-a4ce1cf34c684029ae7fcde898c21a2017f316de.tar.gz
cpython-a4ce1cf34c684029ae7fcde898c21a2017f316de.tar.bz2
_structure(): Use .get_content_type()
Diffstat (limited to 'Lib/email/Iterators.py')
-rw-r--r--Lib/email/Iterators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/Iterators.py b/Lib/email/Iterators.py
index d5f6eeb..9d9a5e7 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)