summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Eot/Parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/Eot/Parser.py')
-rw-r--r--BaseTools/Source/Python/Eot/Parser.py2
1 files changed, 1 insertions, 1 deletions
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()