[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

Nadeem Vawda report at bugs.python.org
Sun Dec 1 18:58:30 CET 2013


Nadeem Vawda added the comment:

I'll have a patch for this in the next couple of days (and a similar one
for the lzma module, which has the same issue (even though it's not a
regression in that case)).

In the meanwhile, you can work around this by feeding the compressed data
to a BZ2Decompressor yourself - it stops at the end of the bz2 stream,
with any leftover data stored in its 'unused_data' attribute.

----------
assignee:  -> nadeem.vawda
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19839>
_______________________________________


More information about the Python-bugs-list mailing list