[issue43066] Zipfile with leading slashes
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
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