mirror of https://github.com/python/cpython.git
_structure(): Don't get the whole Content-Type: header, just get the
type with get_type().
This commit is contained in:
parent
425a8ec05e
commit
4ef1c7d85b
|
@ -15,7 +15,7 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue