]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Explicitly close files after readlines
authormjohn4 <michael.johnson@intel.com>
Fri, 2 Nov 2018 02:02:10 +0000 (10:02 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Fri, 15 Mar 2019 07:38:59 +0000 (15:38 +0800)
commitb0189eac00a5a97ecf4697bfe22d49aa47e39162
treebad2bb1df7ad62eb9ac6d7c1399f3af12fa5f833
parentdbe05cb1c0386b6c6abc32b771499acc28a27520
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>
BaseTools/Source/Python/AutoGen/InfSectionParser.py
BaseTools/Source/Python/Workspace/MetaFileParser.py