[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Change by Liyu Gong : Removed file: https://bugs.python.org/file48164/a.zip ___ Python tracker <https://bugs.python.org/issue36088> ___ ___ Python-bugs-list mailin

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Liyu Gong added the comment: add a.tar -- Added file: https://bugs.python.org/file48166/a.tar ___ Python tracker <https://bugs.python.org/issue36088> ___ ___

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
Liyu Gong added the comment: Sorry, I made a mistake. I retested on the following content a.zip ==> abc/def/1.zip zf = zipfile.ZipFile('a.zip') memf = zf.open('abc/def/1.zip', 'r') zf2 = zipfile.ZipFile(memf) will raise an error. However, when a.zip is a tar file containing 'abc/de

[issue36088] zipfile cannot handle zip in zip

2019-02-22 Thread Liyu Gong
New submission from Liyu Gong : Suppose a.zip is z zip file containing 'abc/def/1.txt' zf = zipfile.ZipFile('a.zip') memf = zf.open('abc/def/1.txt', 'r') zf2 = zipfile.ZipFile(memf) will raise an error. However, when a.zip is a tar file containing 'abc/def/1.txt', the following codes tf