X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FEot%2FParser.py;fp=BaseTools%2FSource%2FPython%2FEot%2FParser.py;h=0b720d5b2187c6962dc264a45fe8daec3f30c384;hp=ff88e957ad0df6f99eb2045e17bafa96272ae0b1;hb=0d1f5b2b5dc3c1cf381be0a1ec8f960dc6029a93;hpb=2617a73c3628473bacea887d885bdd1e7808ccc6 diff --git a/BaseTools/Source/Python/Eot/Parser.py b/BaseTools/Source/Python/Eot/Parser.py index ff88e957ad..0b720d5b21 100644 --- a/BaseTools/Source/Python/Eot/Parser.py +++ b/BaseTools/Source/Python/Eot/Parser.py @@ -730,7 +730,7 @@ def GetParameter(Parameter, Index = 1): # @return: The name of parameter # def GetParameterName(Parameter): - if type(Parameter) == type('') and Parameter.startswith('&'): + if isinstance(Parameter, type('')) and Parameter.startswith('&'): return Parameter[1:].replace('{', '').replace('}', '').replace('\r', '').replace('\n', '').strip() else: return Parameter.strip()