_structure(): Swap fp and level arguments.

This commit is contained in:
Barry Warsaw 2002-10-01 00:51:47 +00:00
parent 0ebc5c96c5
commit 1f84ff1d40

View file

@ -14,7 +14,7 @@
def _structure(msg, level=0, fp=None):
def _structure(msg, fp=None, level=0):
"""A handy debugging aid"""
if fp is None:
fp = sys.stdout
@ -22,4 +22,4 @@ def _structure(msg, level=0, fp=None):
print >> fp, tab + msg.get_content_type()
if msg.is_multipart():
for subpart in msg.get_payload():
_structure(subpart, level+1, fp)
_structure(subpart, fp, level+1)