Fixes bug closing Executable file io-streams (#1890)

Input/output/error streams not directed to None or 'str' were not being closed
because `close()` method was being called on the argument value (a string type)
instead of the open file descriptor object.
This commit is contained in:
Matt Belhorn
2016-10-06 05:41:28 -04:00
committed by Todd Gamblin
parent 3de3664671
commit 6b98e86056

View File

@@ -185,11 +185,11 @@ def streamify(arg, mode):
finally:
if close_ostream:
output.close()
ostream.close()
if close_estream:
error.close()
estream.close()
if close_istream:
input.close()
istream.close()
def __eq__(self, other):
return self.exe == other.exe