BaseTools: remove the super() function argument

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Yunhua Feng
2018-08-23 18:27:46 +08:00
committed by Yonghong Zhu
parent 5135cc4852
commit 4ce4f757d7
7 changed files with 14 additions and 14 deletions

View File

@ -166,7 +166,7 @@ class StructurePcd(PcdClassObject):
expressions = []
if Packages is None:
Packages = []
super(StructurePcd, self).__init__(Name, Guid, Type, DatumType, Value, Token, MaxDatumSize, SkuInfoList, IsOverrided, GuidValue, validateranges, validlists, expressions)
super().__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
self.DefaultStoreName = [default_store]

View File

@ -139,7 +139,7 @@ class MetaFileParser(object):
if FilePath in Class.MetaFiles:
return Class.MetaFiles[FilePath]
else:
ParserObject = super(MetaFileParser, Class).__new__(Class)
ParserObject = super().__new__(Class)
Class.MetaFiles[FilePath] = ParserObject
return ParserObject

View File

@ -22,7 +22,7 @@ from Common.BuildToolError import BUILD_ERROR
class OrderedListDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(OrderedListDict, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
self.default_factory = list
def __missing__(self, key):