mirror of https://github.com/python/cpython.git
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.
This commit is contained in:
parent
12c6e2d497
commit
cd97576184
|
@ -255,7 +255,8 @@ def _test():
|
|||
if msg is None:
|
||||
break
|
||||
msgs.append(msg)
|
||||
msg.fp = None
|
||||
if len(args) <= 1:
|
||||
msg.fp = None
|
||||
if len(args) > 1:
|
||||
num = string.atoi(args[1])
|
||||
print 'Message %d body:'%num
|
||||
|
|
Loading…
Reference in New Issue