From 4ce4f757d77adc773ff0abc9bd5960e5b1dd9a73 Mon Sep 17 00:00:00 2001 From: Yunhua Feng Date: Thu, 23 Aug 2018 18:27:46 +0800 Subject: BaseTools: remove the super() function argument Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/Workspace/BuildClassObject.py | 2 +- BaseTools/Source/Python/Workspace/MetaFileParser.py | 2 +- BaseTools/Source/Python/Workspace/WorkspaceCommon.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'BaseTools/Source/Python/Workspace') diff --git a/BaseTools/Source/Python/Workspace/BuildClassObject.py b/BaseTools/Source/Python/Workspace/BuildClassObject.py index 8969f84a2b..2e36fd233f 100644 --- a/BaseTools/Source/Python/Workspace/BuildClassObject.py +++ b/BaseTools/Source/Python/Workspace/BuildClassObject.py @@ -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] diff --git a/BaseTools/Source/Python/Workspace/MetaFileParser.py b/BaseTools/Source/Python/Workspace/MetaFileParser.py index a3ff733f7e..9f2a3bcb5a 100644 --- a/BaseTools/Source/Python/Workspace/MetaFileParser.py +++ b/BaseTools/Source/Python/Workspace/MetaFileParser.py @@ -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 diff --git a/BaseTools/Source/Python/Workspace/WorkspaceCommon.py b/BaseTools/Source/Python/Workspace/WorkspaceCommon.py index 4b9180334f..f421796915 100644 --- a/BaseTools/Source/Python/Workspace/WorkspaceCommon.py +++ b/BaseTools/Source/Python/Workspace/WorkspaceCommon.py @@ -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): -- cgit v1.2.3