mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
other places like this just catch IOError
This commit is contained in:
parent
55fc9ce7e1
commit
54f963e5bf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue