summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py')
-rw-r--r--BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py b/BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py
index 882da81930..942ba88d20 100644
--- a/BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py
+++ b/BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py
@@ -161,10 +161,11 @@ def PatchBinaryFile(FileName, ValueOffset, TypeName, ValueString, MaxSize=0):
#
# Patch {0x1, 0x2, ...} byte by byte
#
- ValueList = ValueString[1 : len(ValueString) - 1].split(', ')
+ ValueList = ValueString[1 : len(ValueString) - 1].split(',')
Index = 0
try:
for ByteString in ValueList:
+ ByteString = ByteString.strip()
if ByteString.upper().startswith('0X'):
ByteValue = int(ByteString, 16)
else: