Merge pull request #3893 from cgohlke/patch-1

BUG : Don't close GzipFile before it is used