]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Workspace/MetaFileParser.py
BaseTools: Workspace/MetaFileParser - refactor dicts
authorCarsey, Jaben <jaben.carsey@intel.com>
Fri, 27 Apr 2018 14:04:14 +0000 (22:04 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 2 May 2018 06:53:42 +0000 (14:53 +0800)
commit50874612be60df3752327fb488799074826b759e
tree7ddbedbe745e18aa088a611d8e88b3b40d815153
parenta802b269061cf83c17b74dc166cf21efe25f938f
BaseTools: Workspace/MetaFileParser - refactor dicts

make defaultdict to avoid initialize inner items
to empty the dict, call clear instead of making a new object

v2 - to empty the dict, dont re-run constructor, just call .clear()
in post process API also.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/Workspace/MetaFileParser.py