Problems with zipfile module...

Christophe Prevost ommadawn at club-internet.fr
Wed Jan 10 10:41:41 EST 2001


"Fredrik Lundh" <fredrik at effbot.org> a écrit dans le message news:
3aW66.5508$AH6.782619 at newsc.telia.net...

> >    backup = zipfile.ZipFile(zip, "w", "ZIP_DEFLATED")
>
> ZIP_DEFLATED is a module constant, not a string value.
> try changing the above line to:
>
>     backup = zipfile.ZipFile(zip, "w", zipfile.ZIP_DEFLATED)

Yes! Thank you Fredrik!
It works now





More information about the Python-list mailing list