Commit cd975761 authored by Guido van Rossum's avatar Guido van Rossum

Only set msg.fp to None when there are no extra arguments; if there

are, we must keep the file around so we can print the body.
parent 12c6e2d4
...@@ -255,7 +255,8 @@ def _test(): ...@@ -255,7 +255,8 @@ def _test():
if msg is None: if msg is None:
break break
msgs.append(msg) msgs.append(msg)
msg.fp = None if len(args) <= 1:
msg.fp = None
if len(args) > 1: if len(args) > 1:
num = string.atoi(args[1]) num = string.atoi(args[1])
print 'Message %d body:'%num print 'Message %d body:'%num
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment