diff options
| author | mjohn4 <michael.johnson@intel.com> | 2018-11-02 05:02:10 +0300 |
|---|---|---|
| committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-03-15 10:38:59 +0300 |
| commit | b0189eac00a5a97ecf4697bfe22d49aa47e39162 (patch) | |
| tree | bad2bb1df7ad62eb9ac6d7c1399f3af12fa5f833 /BaseTools/Source/Python/Common/Misc.py | |
| parent | dbe05cb1c0386b6c6abc32b771499acc28a27520 (diff) | |
| download | edk2-b0189eac00a5a97ecf4697bfe22d49aa47e39162.tar.xz | |
BaseTools: Explicitly close files after readlines
Rework some file open().readlines to open, readlines, close.
This prevents excessive file handles being open at the same time,
which may be a problem with alternative python environments.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Johnson <michael.johnson@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/Misc.py')
0 files changed, 0 insertions, 0 deletions
