From: Barry Warsaw Date: Tue, 1 Oct 2002 00:51:47 +0000 (+0000) Subject: _structure(): Swap fp and level arguments. X-Git-Tag: v2.3c1~3926 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f84ff1d403675790bf4712dab48e48730bc9f5a;p=python _structure(): Swap fp and level arguments. --- diff --git a/Lib/email/Iterators.py b/Lib/email/Iterators.py index 9d9a5e7739..3ecd632ecf 100644 --- a/Lib/email/Iterators.py +++ b/Lib/email/Iterators.py @@ -14,7 +14,7 @@ except SyntaxError: -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)