]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Scripts/SmiHandlerProfileSymbolGen.py
BaseTools: refactor and remove out of date use of .keys()
[mirror_edk2.git] / BaseTools / Scripts / SmiHandlerProfileSymbolGen.py
index f03278b64f8f74f85e1c169f9a1fcbc52c29a584..26c09241038678e2b1f95832421d808264c6bf3a 100644 (file)
@@ -204,7 +204,7 @@ def genGuidString(guidreffile):
         if len(guidLineList) == 2:\r
             guid = guidLineList[0]\r
             guidName = guidLineList[1]\r
-            if guid not in dictGuid.keys() :\r
+            if guid not in dictGuid :\r
                 dictGuid[guid] = guidName\r
 \r
 def createSym(symbolName):\r
@@ -256,7 +256,7 @@ def main():
         for smiEntry in SmiEntry:\r
             if smiEntry.hasAttribute("HandlerType"):\r
                 guidValue = smiEntry.getAttribute("HandlerType")\r
-                if guidValue in dictGuid.keys() :\r
+                if guidValue in dictGuid:\r
                     smiEntry.setAttribute("HandlerType", dictGuid[guidValue])\r
             SmiHandler = smiEntry.getElementsByTagName("SmiHandler")\r
             for smiHandler in SmiHandler:\r