X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FGenFds%2FSection.py;h=6335c249a693e2eb98bdbc7ecd9c6cb90d695d94;hp=5e0b4bee7d1c509f8f81bedca7b9ee5f3786a1d6;hb=98120f5fe2199de29c0cce8e92c692b23adf0cf7;hpb=674e2014ce63040880208f2a0494fa1849f28f43 diff --git a/BaseTools/Source/Python/GenFds/Section.py b/BaseTools/Source/Python/GenFds/Section.py index 5e0b4bee7d..6335c249a6 100644 --- a/BaseTools/Source/Python/GenFds/Section.py +++ b/BaseTools/Source/Python/GenFds/Section.py @@ -111,10 +111,7 @@ class Section (SectionClassObject): # @retval tuple (File list, boolean) # def GetFileList(FfsInf, FileType, FileExtension, Dict = {}, IsMakefile=False): - if FileType in Section.SectFileType.keys() : - IsSect = True - else : - IsSect = False + IsSect = FileType in Section.SectFileType if FileExtension is not None: Suffix = FileExtension