From 1b2e077260030290c512f3ac71a044ed1150899f Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Tue, 4 Sep 2018 10:39:47 +0800 Subject: BaseTools/UPT: Porting UPT Tool from Python2 to Python3 Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/UPT/Core/FileHook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/UPT/Core/FileHook.py') 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)) -- cgit v1.2.3