]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/Expression.py
BaseTools: simplify if call
[mirror_edk2.git] / BaseTools / Source / Python / Common / Expression.py
index 99b01012a0cb1c18c826cb86a432f72dfedef2c8..53504c110d6dedcaa2a6d3587ce626b5ea13c1f2 100644 (file)
@@ -816,7 +816,7 @@ class ValueExpressionEx(ValueExpression):
         except BadExpression, Value:\r
             if self.PcdType in TAB_PCD_NUMERIC_TYPES:\r
                 PcdValue = PcdValue.strip()\r
-                if type(PcdValue) == type('') and PcdValue.startswith('{') and PcdValue.endswith('}'):\r
+                if PcdValue.startswith('{') and PcdValue.endswith('}'):\r
                     PcdValue = SplitPcdValueString(PcdValue[1:-1])\r
                 if type(PcdValue) == type([]):\r
                     TmpValue = 0\r