Problems with zipfile module...
Alex Martelli
aleaxit at yahoo.com
Wed Jan 10 05:28:27 EST 2001
"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.
Alex
More information about the Python-list
mailing list