summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-07-11 20:24:36 (GMT)
committerBarry Warsaw <barry@python.org>2002-07-11 20:24:36 (GMT)
commit4ef1c7d85be6832b21090c6e087b1567a256ef73 (patch)
tree359a1975c62d6b5b81a93b2faa5dbf69474eb42e /Lib
parent425a8ec05e2b14ee2738d4930b1776a01305d023 (diff)
downloadcpython-4ef1c7d85be6832b21090c6e087b1567a256ef73.zip
cpython-4ef1c7d85be6832b21090c6e087b1567a256ef73.tar.gz
cpython-4ef1c7d85be6832b21090c6e087b1567a256ef73.tar.bz2
_structure(): Don't get the whole Content-Type: header, just get the
type with get_type().
Diffstat (limited to 'Lib')
-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 5253710..0d0e0b2 100644
--- a/Lib/email/Iterators.py
+++ b/Lib/email/Iterators.py
@@ -15,7 +15,7 @@ except SyntaxError:
def _structure(msg, level=0):
"""A handy debugging aid"""
tab = ' ' * (level * 4)
- print tab + msg.get('content-type', msg.get_default_type())
+ print tab + msg.get_type(msg.get_default_type())
if msg.is_multipart():
for subpart in msg.get_payload():
_structure(subpart, level+1)