]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Core/FileHook.py
Revert BaseTools: PYTHON3 migration
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Core / FileHook.py
index 247dc4bd348a994dc4e12155955f13f8f00ffaee..ceae12fb37c9793b1df34bbe32bb84b2b12745a4 100644 (file)
@@ -66,7 +66,7 @@ class RecoverMgr:
         arc = self._tryhook(path)\r
         if arc and os.path.isfile(path):\r
             self._createzip()\r
-            self.zip.write(path, arc)\r
+            self.zip.write(path, arc.encode('utf_8'))\r
             sta = os.stat(path)\r
             oldmode = stat.S_IMODE(sta.st_mode)\r
             self.rlist.append(_PathInfo(_CHMOD, path, oldmode))\r