summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/AutoGen/StrGather.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/StrGather.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/StrGather.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/AutoGen/StrGather.py b/BaseTools/Source/Python/AutoGen/StrGather.py
index 60840041ba..ed33554cd7 100644
--- a/BaseTools/Source/Python/AutoGen/StrGather.py
+++ b/BaseTools/Source/Python/AutoGen/StrGather.py
@@ -19,7 +19,7 @@ import Common.EdkLogger as EdkLogger
from Common.BuildToolError import *
from UniClassObject import *
from StringIO import StringIO
-from struct import pack
+from struct import pack, unpack
from Common.LongFilePathSupport import OpenLongFilePath as open
##
@@ -131,7 +131,7 @@ def DecToHexList(Dec, Digit = 8):
def AscToHexList(Ascii):
List = []
for Item in Ascii:
- List.append('0x%2X' % ord(Item))
+ List.append('0x%02X' % ord(Item))
return List