Does not set decompressobj.unused_data

Bug #859130 reported by Nikolaus Rath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PylibLZMA
New
Undecided
Unassigned

Bug Description

In the following example, the unused_data attribute of the decompressor object should be "some more", but it isn't:

$ cat test.py
import lzma

compr = lzma.LZMACompressor(options={ 'level': 7 })

fh = open('/dev/urandom', 'rb')
buf = compr.compress(fh.read(10*1024))
buf += compr.flush()
buf += 'some more'

decompr = lzma.LZMADecompressor()
decompr.decompress(buf)

print len(decompr.unused_data)

$ python test.py
0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.