Shift the pipe-using code into an else block, then close the pipe
in finally. Removes two ResourceWarnings.
1 file changed