]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Section.py
BaseTools: refactor and remove out of date use of .keys()
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Section.py
index 5e0b4bee7d1c509f8f81bedca7b9ee5f3786a1d6..6335c249a693e2eb98bdbc7ecd9c6cb90d695d94 100644 (file)
@@ -111,10 +111,7 @@ class Section (SectionClassObject):
     #   @retval tuple       (File list, boolean)\r
     #\r
     def GetFileList(FfsInf, FileType, FileExtension, Dict = {}, IsMakefile=False):\r
-        if FileType in Section.SectFileType.keys() :\r
-            IsSect = True\r
-        else :\r
-            IsSect = False\r
+        IsSect = FileType in Section.SectFileType\r
 \r
         if FileExtension is not None:\r
             Suffix = FileExtension\r