]> granicus.if.org Git - python/commitdiff
_structure(): Don't get the whole Content-Type: header, just get the
authorBarry Warsaw <barry@python.org>
Thu, 11 Jul 2002 20:24:36 +0000 (20:24 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 11 Jul 2002 20:24:36 +0000 (20:24 +0000)
type with get_type().

Lib/email/Iterators.py

index 5253710deeeb5566faa88dd94e5548d8ec54d3b3..0d0e0b2c2d091655d812d57d6eaf1ee15247500c 100644 (file)
@@ -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)