Kaydet (Commit) b03528ca authored tarafından Neal Norwitz's avatar Neal Norwitz

Backport 60334:

On some systems (e.g., Ubuntu on hppa) the flush()
doesn't (always) cause the exception, but the close() does.
üst ee50e3c7
......@@ -36,6 +36,9 @@ try:
try:
f.write("Y")
f.flush()
# On some systems (e.g., Ubuntu on hppa) the flush()
# doesn't cause the exception, but the close() does.
f.close()
except IOError:
if not limit_set:
raise
......
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