Serhiy Storchaka added the comment:
Thank you for your report and patch Benjamin. Seems your patch fixes the
problem in default case. But the compressor still fails with the raw format.
>>> import lzma
>>> FILTERS_RAW_4 = [{"id": lzma.FILTER_DELTA, "dist": 4},
... {"id": lzma.FILTER_X86, "start_offset": 0x40},
... {"id": lzma.FILTER_LZMA2, "preset": 4, "lc": 2}]
>>> c = lzma.LZMACompressor(lzma.FORMAT_RAW, filters=FILTERS_RAW_4)
>>> c.compress(b'')
b''
>>> c.compress(b'')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_lzma.LZMAError: Insufficient buffer space
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27517>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com