mirror of
https://github.com/python/cpython.git
synced 2025-01-21 16:05:02 +08:00
_structure(): Swap fp and level arguments.
This commit is contained in:
parent
0ebc5c96c5
commit
1f84ff1d40
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user