Problems with zipfile module...
Christophe Prevost
ommadawn at club-internet.fr
Wed Jan 10 10:42:07 EST 2001
"Alex Martelli" <aleaxit at yahoo.com> a écrit dans le message news:
93hdis0128r at news2.newsguy.com...
> "Christophe Prevost" <ommadawn at club-internet.fr> wrote in message
> news:93ha6j$ca6$1 at reader1.imaginet.fr...
> [snip]
> > backup = zipfile.ZipFile(zip, "w", "ZIP_DEFLATED")
>
> Change to:
> backup = zipfile.ZipFile(zip, "w", zipfile.ZIP_DEFLATED)
>
> i.e., the option is NOT to be passed as a string, but rather
> as a numeric 'constant' which is defined in module zipfile.
Thank you Alex!
More information about the Python-list
mailing list