From 7be281375ae74995a7878cad20f387bb1e341353 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Sat, 1 Oct 2016 12:48:12 -0400 Subject: [PATCH] flush was closing --- xonsh/proc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonsh/proc.py b/xonsh/proc.py index c3cb9c606..499d7221e 100644 --- a/xonsh/proc.py +++ b/xonsh/proc.py @@ -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