From bb3a456aa3e17f78277438955b0555cbb531fc2e Mon Sep 17 00:00:00 2001
From: Haibo Huang <hhb@google.com>
Date: Thu, 31 Jan 2019 16:35:08 -0800
Subject: [PATCH] [Updater] Workaround python zipfile permission issue (again)

The old workaround doesn't work in Python 3.6.

Test: upgrade kotlinc
Change-Id: Idb9a89938548c0adf475a40c5fec44811732bbb4
---
 archive_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/archive_utils.py b/archive_utils.py
index 91007a7..f0198c5 100644
--- a/archive_utils.py
+++ b/archive_utils.py
@@ -26,8 +26,8 @@ class ZipFileWithPermission(zipfile.ZipFile):
     See https://bugs.python.org/issue15795
     """
 
-    def extract(self, member, path=None, pwd=None):
-        ret_val = super().extract(member, path, pwd)
+    def _extract_member(self, member, targetpath, pwd):
+        ret_val = super()._extract_member(member, targetpath, pwd)
 
         if not isinstance(member, zipfile.ZipInfo):
             member = self.getinfo(member)
-- 
GitLab