Martin added the comment:

On trunk, both the compressor and the standalone function (which uses the 
compressor) are affected. The easiest fix is rearranging the logic in function 
shared between BZ2Compressor.compress and BZ2Compressor.flush so the exit on no 
remaining input for the former case happens before the library call.

----------
keywords: +patch
Added file: 
http://bugs.python.org/file28512/bz2_compress_empty_string_trunk.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16828>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to