X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FUPT%2FLibrary%2FStringUtils.py;h=2be382fa1797041fee13bf8e31323311237496a6;hp=bd2cbe6120372a87e29a7e8f6e248b243733cda6;hb=0d1f5b2b5dc3c1cf381be0a1ec8f960dc6029a93;hpb=2617a73c3628473bacea887d885bdd1e7808ccc6 diff --git a/BaseTools/Source/Python/UPT/Library/StringUtils.py b/BaseTools/Source/Python/UPT/Library/StringUtils.py index bd2cbe6120..2be382fa17 100644 --- a/BaseTools/Source/Python/UPT/Library/StringUtils.py +++ b/BaseTools/Source/Python/UPT/Library/StringUtils.py @@ -651,7 +651,7 @@ def ConvertToSqlString2(String): # @param Split: split character # def GetStringOfList(List, Split=' '): - if type(List) != type([]): + if not isinstance(List, type([])): return List Str = '' for Item in List: