mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
_structure(): Swap fp and level arguments.
This commit is contained in:
parent
0ebc5c96c5
commit
1f84ff1d40
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue