]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Library/StringUtils.py
BaseTools: Fix old python2 idioms
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / StringUtils.py
index bd2cbe6120372a87e29a7e8f6e248b243733cda6..2be382fa1797041fee13bf8e31323311237496a6 100644 (file)
@@ -651,7 +651,7 @@ def ConvertToSqlString2(String):
 # @param Split: split character\r
 #\r
 def GetStringOfList(List, Split=' '):\r
-    if type(List) != type([]):\r
+    if not isinstance(List, type([])):\r
         return List\r
     Str = ''\r
     for Item in List:\r