I updated the code in my (bug-1300876-explicit-close-of-stdout) branch. I agree with our observation: for this particular issue it's best to close after the for loop.
I updated the code in my (bug-1300876-explicit- close-of- stdout) branch. I agree with our observation: for this particular issue it's best to close after the for loop.