Mercurial > cpython-lru_cache-weakref
diff Lib/email/Iterators.py @ 25509:2d80bf65cd09 legacy-trunk
_structure(): Swap fp and level arguments.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Tue, 01 Oct 2002 00:51:47 +0000 |
| parents | 19982c5eb493 |
| children | 635ef110658e |
line wrap: on
line diff
--- a/Lib/email/Iterators.py Tue Oct 01 00:44:13 2002 +0000 +++ b/Lib/email/Iterators.py Tue Oct 01 00:51:47 2002 +0000 @@ -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 @@ 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)
