mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
flush was closing
This commit is contained in:
parent
8b5c91bfd8
commit
7be281375a
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ def safe_flush(handle):
|
|||
"""Attempts to safely flush a file handle, returns success bool."""
|
||||
status = True
|
||||
try:
|
||||
handle.close()
|
||||
handle.flush()
|
||||
except OSError:
|
||||
status = False
|
||||
return status
|
||||
|
|
Loading…
Add table
Reference in a new issue