diff options
author | Barry Warsaw <barry@python.org> | 2002-10-01 00:51:47 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-10-01 00:51:47 (GMT) |
commit | 1f84ff1d403675790bf4712dab48e48730bc9f5a (patch) | |
tree | 50af537f8fbcad7ad54dba2c8d1ac37f5a67c9ea /Lib/email | |
parent | 0ebc5c96c5b79ee4f3fe77f79d15b0b905343f5c (diff) | |
download | cpython-1f84ff1d403675790bf4712dab48e48730bc9f5a.zip cpython-1f84ff1d403675790bf4712dab48e48730bc9f5a.tar.gz cpython-1f84ff1d403675790bf4712dab48e48730bc9f5a.tar.bz2 |
_structure(): Swap fp and level arguments.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/Iterators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/Iterators.py b/Lib/email/Iterators.py index 9d9a5e7..3ecd632 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) |