RE: Copying a ZipExtFile

2009-10-29 Thread Moore, Mathew L
On October 28, 2009 8:33 PM, ryles wrote: snip with io.BytesIO() as memio: shutil.copyfileobj(f, memio) zip = zipfile.ZipFile(file=memio) # Can't use zip.extract(), because I want to ignore paths # within archive. src =

RE: Copying a ZipExtFile

2009-10-26 Thread Moore, Mathew L
En Fri, 23 Oct 2009 14:15:33 -0300, Moore, Mathew L moor...@battelle.org escribió: with io.BytesIO() as memio: shutil.copyfileobj(f, memio) zip = zipfile.ZipFile(file=memio) # Can't use zip.extract(), because I want to ignore paths # within

Copying a ZipExtFile

2009-10-23 Thread Moore, Mathew L
Hello all, A newbie here. I was wondering why the following fails on Python 2.6.2 (r262:71605) on win32. Am I doing something inappropriate? Interestingly, it works in 3.1, but would like to also get it working in 2.6. Thanks in advance, --Matt import io import shutil import tempfile