other places like this just catch IOError
This commit is contained in:
parent
55fc9ce7e1
commit
54f963e5bf
|
@ -1438,7 +1438,7 @@ class TextIOWrapper(TextIOBase):
|
||||||
def close(self):
|
def close(self):
|
||||||
try:
|
try:
|
||||||
self.flush()
|
self.flush()
|
||||||
except:
|
except IOError:
|
||||||
pass # If flush() fails, just give up
|
pass # If flush() fails, just give up
|
||||||
self.buffer.close()
|
self.buffer.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue