Message374151
It looks like a copy of the zip_file object is getting created, probably by the Path constructor:
zip_path = Path(zip_file, "file-a")
When return is invoked, the copy still has a reference to the now closed bytes_io object which causes the ValueError exception when ZipFile.__del__() calls ZipFile.close(). This is definitely a bug. I'll take a crack at fixing it. |
|
Date |
User |
Action |
Args |
2020-07-23 22:18:29 | Jeffrey.Kintscher | set | recipients:
+ Jeffrey.Kintscher, jaraco, Nick Henderson |
2020-07-23 22:18:29 | Jeffrey.Kintscher | set | messageid: <1595542709.42.0.915548836189.issue41350@roundup.psfhosted.org> |
2020-07-23 22:18:29 | Jeffrey.Kintscher | link | issue41350 messages |
2020-07-23 22:18:29 | Jeffrey.Kintscher | create | |
|