On 2/13/2013 12:18 AM, Fayaz Yusuf Khan wrote:
Marc Christiansen wrote:
Try using a compressobj with 24 <= wbits < 32. It should work, but I
didn't try.
Er, the problem is that compressobj doesn't accept a WBIT argument.
"Changed in version 3.3: Added the method, wbits, memlevel, strategy a
Marc Christiansen wrote:
> Try using a compressobj with 24 <= wbits < 32. It should work, but I
> didn't try.
>
Er, the problem is that compressobj doesn't accept a WBIT argument.
--
Fayaz Yusuf Khan
Cloud architect, Dexetra SS, India
fayaz.yusuf.khan_AT_gmail_DOT_com, fayaz_AT_dexetra_DOT_com
+
Terry Reedy wrote:
> On 2/12/2013 7:47 AM, Fayaz Yusuf Khan wrote:
>> dcomp = zlib.decompressobj(16+zlib.MAX_WBITS)
>
> Since zlib.MAX_WBITS is the largest value that should be passed (15),
> adding 16 makes no sense. Since it is also the default, there is also no
> point in providing it explic
On 2/12/2013 7:47 AM, Fayaz Yusuf Khan wrote:
I'm trying write unit-tests for some of my old code and have run into this
piece of code.
dcomp = zlib.decompressobj(16+zlib.MAX_WBITS)
Since zlib.MAX_WBITS is the largest value that should be passed (15),
adding 16 makes no sense. Since it is als
I'm trying write unit-tests for some of my old code and have run into this
piece of code.
dcomp = zlib.decompressobj(16+zlib.MAX_WBITS)
chunk = ''.join(f.chunks())
received_data = dcomp.decompress(chunk)
How do I generate the chunk here? From what I've been trying I'm getting
this exception:
>