]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Library/ParserValidate.py
BaseTools: Fix old python2 idioms
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / ParserValidate.py
index 3f8ca9d609aec524cf9f2d999678230bc0ae2b90..dc93cedd917e604b607b3868b960fe88a4b09931 100644 (file)
@@ -341,7 +341,7 @@ def IsValidCFormatGuid(Guid):
                 #\r
                 # Index may out of bound\r
                 #\r
-                if type(List[Index]) != type(1) or \\r
+                if not isinstance(List[Index], type(1)) or \\r
                    len(Value) > List[Index] or len(Value) < 3:\r
                     return False\r
                 \r