diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-04-28 06:32:31 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-05-04 13:03:05 +0800 |
commit | 88252a90d1ca7846731cd2e4e8e860454f7d97a3 (patch) | |
tree | 69e2da612429c8a6510abf63922cecc4bd2af0ef /BaseTools/Source/Python/Workspace/BuildClassObject.py | |
parent | 8ac64c5b1271e260b6ae11d6bd98099f60cb0112 (diff) | |
download | edk2-88252a90d1ca7846731cd2e4e8e860454f7d97a3.tar.gz edk2-88252a90d1ca7846731cd2e4e8e860454f7d97a3.tar.bz2 edk2-88252a90d1ca7846731cd2e4e8e860454f7d97a3.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/BuildClassObject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/BuildClassObject.py b/BaseTools/Source/Python/Workspace/BuildClassObject.py index 6ca3cd9da2..258905e80f 100644 --- a/BaseTools/Source/Python/Workspace/BuildClassObject.py +++ b/BaseTools/Source/Python/Workspace/BuildClassObject.py @@ -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
|