Fix several ResourceWarning: unclosed file (#15746)
authorMickaël Schoentgen <contact@tiger-222.fr>
Wed, 9 Jan 2019 23:25:58 +0000 (15:25 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 9 Jan 2019 23:36:53 +0000 (15:36 -0800)
commit71c6e243731f238333259407f477e582ac3d978b
tree9f3f3969024146ad283d529884fc49c0296b0170
parenta1180d8e868eca4724ad43af370c751fa39fbe65
Fix several ResourceWarning: unclosed file (#15746)

Summary:
Hello,

This is a patch to fix `ResourceWarning: unclosed file`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15746

Differential Revision: D13587286

Pulled By: soumith

fbshipit-source-id: 08ac34c5b51d9334867f65a2927bff11511553f3
.jenkins/pytorch/win-build.sh
aten/src/ATen/gen.py
caffe2/contrib/cuda-convnet2/make-data/make-data.py
caffe2/contrib/cuda-convnet2/python_util/util.py
caffe2/perfkernels/hp_emblookup_codegen.py
caffe2/python/caffe_translator.py
caffe2/python/caffe_translator_test.py
caffe2/python/utils.py
test/run_test.py