diff options
Diffstat (limited to 'BaseTools/Source/Python/UPT/Core/FileHook.py')
-rw-r--r-- | BaseTools/Source/Python/UPT/Core/FileHook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/UPT/Core/FileHook.py b/BaseTools/Source/Python/UPT/Core/FileHook.py index ceae12fb37..247dc4bd34 100644 --- a/BaseTools/Source/Python/UPT/Core/FileHook.py +++ b/BaseTools/Source/Python/UPT/Core/FileHook.py @@ -66,7 +66,7 @@ class RecoverMgr: arc = self._tryhook(path)
if arc and os.path.isfile(path):
self._createzip()
- self.zip.write(path, arc.encode('utf_8'))
+ self.zip.write(path, arc)
sta = os.stat(path)
oldmode = stat.S_IMODE(sta.st_mode)
self.rlist.append(_PathInfo(_CHMOD, path, oldmode))
|