summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace
diff options
context:
space:
mode:
authorCarsey, Jaben <jaben.carsey@intel.com>2018-04-28 06:32:30 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-04 13:03:04 +0800
commit8ac64c5b1271e260b6ae11d6bd98099f60cb0112 (patch)
treed53ce2f1e487cf5ff1a2fa77cf0b751163939649 /BaseTools/Source/Python/Workspace
parent817e36690ad3156b9413d48e3ff5c3509d34c03f (diff)
downloadedk2-8ac64c5b1271e260b6ae11d6bd98099f60cb0112.tar.gz
edk2-8ac64c5b1271e260b6ae11d6bd98099f60cb0112.tar.bz2
edk2-8ac64c5b1271e260b6ae11d6bd98099f60cb0112.zip
BaseTools: remove Compound statements
split them into 2 seperate lines. 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')
-rw-r--r--BaseTools/Source/Python/Workspace/BuildClassObject.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/BaseTools/Source/Python/Workspace/BuildClassObject.py b/BaseTools/Source/Python/Workspace/BuildClassObject.py
index 8b3e2ec299..6ca3cd9da2 100644
--- a/BaseTools/Source/Python/Workspace/BuildClassObject.py
+++ b/BaseTools/Source/Python/Workspace/BuildClassObject.py
@@ -114,11 +114,16 @@ class PcdClassObject(object):
class StructurePcd(PcdClassObject):
def __init__(self, StructuredPcdIncludeFile=None, Packages=None, Name=None, Guid=None, Type=None, DatumType=None, Value=None, Token=None, MaxDatumSize=None, SkuInfoList=None, IsOverrided=False, GuidValue=None, validateranges=None, validlists=None, expressions=None,default_store = TAB_DEFAULT_STORES_DEFAULT):
- if SkuInfoList is None: SkuInfoList={}
- if validateranges is None: validateranges=[]
- if validlists is None: validlists=[]
- if expressions is None : expressions=[]
- if Packages is None : Packages = []
+ if SkuInfoList is None:
+ SkuInfoList = {}
+ if validateranges is None:
+ validateranges = []
+ if validlists is None:
+ validlists = []
+ if expressions is None:
+ expressions = []
+ if Packages is None:
+ Packages = []
super(StructurePcd, self).__init__(Name, Guid, Type, DatumType, Value, Token, MaxDatumSize, SkuInfoList, IsOverrided, GuidValue, validateranges, validlists, expressions)
self.StructuredPcdIncludeFile = [] if StructuredPcdIncludeFile is None else StructuredPcdIncludeFile
self.PackageDecs = Packages