Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43929

Re: unzipping a zipx file

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: unzipping a zipx file
Date Fri, 19 Apr 2013 18:56:12 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 22
Message-ID <kks40c$828$1@reader1.panix.com> (permalink)
References <mailman.834.1366394500.3114.python-list@python.org> <kks2mi$54d$1@reader1.panix.com>
NNTP-Posting-Host panix2.panix.com
X-Trace reader1.panix.com 1366397772 8264 166.84.1.2 (19 Apr 2013 18:56:12 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Fri, 19 Apr 2013 18:56:12 +0000 (UTC)
User-Agent nn/6.7.3
Xref csiph.com comp.lang.python:43929

Show key headers only | View raw


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

> In <mailman.834.1366394500.3114.python-list@python.org> "b_erickson1" <brian@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@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

unzipping a zipx file "b_erickson1" <brian@dashley.net> - 2013-04-19 17:59 +0000
  Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:33 +0000
    Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:56 +0000
  Re: unzipping a zipx file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-20 00:24 +0000
    Re: unzipping a zipx file Dave Angel <davea@davea.name> - 2013-04-19 21:50 -0400

csiph-web