Re: zlib and zip files

2006-04-14 Thread Jan Prochazka
Felipe Almeida Lessa napsal(a): >Em Sex, 2006-04-14 às 17:14 +0200, Jan Prochazka escreveu: > > >>Here is my module for parsing zip files: >> >> > >1) Have you checked the source of Python's zipfile module? > > Nice, i thought, that zipfile is written in C, it should be possible to solve

Re: zlib and zip files

2006-04-14 Thread Felipe Almeida Lessa
Em Sex, 2006-04-14 às 17:14 +0200, Jan Prochazka escreveu: > Here is my module for parsing zip files: 1) Have you checked the source of Python's zipfile module? > import struct, zlib > > class ZipHeaderEntry: > name = '' > offset = 0 > uncomlen = 0 > comlen = 0 2) You know that

Re: zlib and zip files

2006-04-14 Thread Jan Prochazka
Michael Ekstrand napsal(a): > Jan Prochazka wrote: > >> Hi, >> I need to decompress zip archive. I wrote a parser of zip file, i obtain >> the compressed data, but when i call zlib.decompress(data) on them, >> it throws this error: >> >> decbuf = decompressor.decompress(compressed_data) >> >> erro

Re: zlib and zip files

2006-04-14 Thread Michael Ekstrand
Jan Prochazka wrote: > Hi, > I need to decompress zip archive. I wrote a parser of zip file, i obtain > the compressed data, but when i call zlib.decompress(data) on them, > it throws this error: > > decbuf = decompressor.decompress(compressed_data) > > error: Error -3 while decompressing: unknow

zlib and zip files

2006-04-14 Thread Jan Prochazka
Hi, I need to decompress zip archive. I wrote a parser of zip file, i obtain the compressed data, but when i call zlib.decompress(data) on them, it throws this error: decbuf = decompressor.decompress(compressed_data) error: Error -3 while decompressing: unknown compression method I try to compre