[issue43066] Zipfile with leading slashes

2021-06-24 Thread Garrison Taylor
Garrison Taylor added the comment: That addition to the documentation sounds appropriate to me. Thanks! -- ___ Python tracker <https://bugs.python.org/issue43

[issue43066] Zipfile with leading slashes

2021-01-29 Thread Garrison Taylor
New submission from Garrison Taylor : Currently the zipfile library allows you to create invalid zip files. The following code is an example: from zipfile import ZipFile import tempfile temporary_file = tempfile.NamedTemporaryFile() my_zip = ZipFile(temporary_file.name, 'w') my_zip.writestr