BaseTools: Workspace - refactor a dict

change a dict to a set since we never examine the contents, just the keys.

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>
This commit is contained in:
Carsey, Jaben
2018-04-28 06:32:31 +08:00
committed by Yonghong Zhu
parent 8ac64c5b12
commit 88252a90d1
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ class StructurePcd(PcdClassObject):
self.PcdDefineLineNo = 0
self.PkgPath = ""
self.DefaultValueFromDec = ""
self.ValueChain = dict()
self.ValueChain = set()
self.PcdFieldValueFromComm = collections.OrderedDict()
def __repr__(self):
return self.TypeName