unzipping a zipx file

John Gordon gordon at panix.com
Fri Apr 19 14:56:12 EDT 2013


In <kks2mi$54d$1 at reader1.panix.com> John Gordon <gordon at panix.com> writes:

> In <mailman.834.1366394500.3114.python-list at python.org> "b_erickson1" <brian at dashley.net> writes:

> >             ozFile = open(filename,'w')
> >             ozFile.write(zFile.read(filename))
> >             ozFile.close()

> Perhaps you want to use zFile.extract() instead of zFile.read()?

No, that's not it.  Your code should work.

You said the output file 'looks encrypted'.  Is the source zip file
encrypted?

Is the source text file something other than plain ASCII?

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list