Skip to content
Snippets Groups Projects
Commit bb3a456a authored by Haibo Huang's avatar Haibo Huang
Browse files

[Updater] Workaround python zipfile permission issue (again)

The old workaround doesn't work in Python 3.6.

Test: upgrade kotlinc
Change-Id: Idb9a89938548c0adf475a40c5fec44811732bbb4
parent 11c4a759
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ class ZipFileWithPermission(zipfile.ZipFile): ...@@ -26,8 +26,8 @@ class ZipFileWithPermission(zipfile.ZipFile):
See https://bugs.python.org/issue15795 See https://bugs.python.org/issue15795
""" """
def extract(self, member, path=None, pwd=None): def _extract_member(self, member, targetpath, pwd):
ret_val = super().extract(member, path, pwd) ret_val = super()._extract_member(member, targetpath, pwd)
if not isinstance(member, zipfile.ZipInfo): if not isinstance(member, zipfile.ZipInfo):
member = self.getinfo(member) member = self.getinfo(member)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment