GitHub user katsiapis opened a pull request: https://github.com/apache/incubator-beam/pull/1392
[BEAM-101] A few improvements to Apache Beam Python's FileIO. - Ensuring that AUTO compression works properly for FileSinks. - Introducing __enter__ and __exit__ in _CompressedFile to allow use of "with", and updating textio accordingly. You can merge this pull request into a Git repository by running: $ git pull https://github.com/katsiapis/incubator-beam fileio Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-beam/pull/1392.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1392 ---- commit 5748647aa0d409828f9769dbc472bdb50f92a343 Author: Gus Katsiapis <katsia...@katsiapis-linux.mtv.corp.google.com> Date: 2016-11-19T02:31:20Z A few improvements to Apache Beam Python's FileIO. - Ensuring that AUTO compression works properly for FileSinks. - Introducing __enter__ and __exit__ in _CompressedFile to allow use of "with", and updating textio accordingly. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---