mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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):
|
||||
try:
|
||||
self.flush()
|
||||
except:
|
||||
except IOError:
|
||||
pass # If flush() fails, just give up
|
||||
self.buffer.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue