]> granicus.if.org Git - python/commitdiff
_structure(): Swap fp and level arguments.
authorBarry Warsaw <barry@python.org>
Tue, 1 Oct 2002 00:51:47 +0000 (00:51 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 1 Oct 2002 00:51:47 +0000 (00:51 +0000)
Lib/email/Iterators.py

index 9d9a5e7739e3d7940fb6efd9336baf6ec29f8dac..3ecd632ecf32253cc8aca9efe4ac436fab6ba09d 100644 (file)
@@ -14,7 +14,7 @@ except SyntaxError:
 
 
 \f
-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)