Message336363
| Author | liyugong |
|---|---|
| Recipients | liyugong, serhiy.storchaka |
| Date | 2019-02-23.05:26:52 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1550899612.33.0.413550954211.issue36088@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
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/def/1.zip', the following codes
a.tar ===> abc/def/1.zip
tf = tarfile.open('a.tar')
memf = tf.extractfile('abc/def/1.zip')
zf2 = zipfile.ZipFile(memf)
works well.
Since only one file can be uploaded, I will try to upload the tar file on the next post. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-02-23 05:26:52 | liyugong | set | recipients: + liyugong, serhiy.storchaka |
| 2019-02-23 05:26:52 | liyugong | set | messageid: <1550899612.33.0.413550954211.issue36088@roundup.psfhosted.org> |
| 2019-02-23 05:26:52 | liyugong | link | issue36088 messages |
| 2019-02-23 05:26:52 | liyugong | create | |