cannot zip file with zipfile

Scott Hathaway slhath at home.com
Tue Aug 21 20:44:19 EDT 2001


Thanks for the info!

Scott

"Skip Montanaro" <skip at pobox.com> wrote in message
news:mailman.998427053.24395.python-list at python.org...
>
>     Scott> I cannot seem to create a valid zip file (one that WinZip can
>     Scott> open).  Here is my code:
>
>     Scott> a = ZipFile("c:\\test.zip","w",8)
>
> Try "wb" for the mode instead of the "w".
>
> --
> Skip Montanaro (skip at pobox.com)
> http://www.mojam.com/
> http://www.musi-cal.com/
>





More information about the Python-list mailing list