summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common/DataType.py
diff options
context:
space:
mode:
authorCarsey, Jaben <jaben.carsey@intel.com>2018-04-27 22:04:14 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-02 14:53:42 +0800
commit50874612be60df3752327fb488799074826b759e (patch)
tree7ddbedbe745e18aa088a611d8e88b3b40d815153 /BaseTools/Source/Python/Common/DataType.py
parenta802b269061cf83c17b74dc166cf21efe25f938f (diff)
downloadedk2-50874612be60df3752327fb488799074826b759e.tar.gz
edk2-50874612be60df3752327fb488799074826b759e.tar.bz2
edk2-50874612be60df3752327fb488799074826b759e.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/Common/DataType.py')
0 files changed, 0 insertions, 0 deletions