[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Nadeem Vawda
Nadeem Vawda added the comment: Fixed. Thanks for the bug report and the patches! -- assignee: -> nadeem.vawda keywords: +3.3regression -patch resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06a08144af1b by Nadeem Vawda in branch '2.7': Issue #16828: Fix error incorrectly raised by bz2.compress(''). http://hg.python.org/cpython/rev/06a08144af1b New changeset c4a4863b85b2 by Nadeem Vawda in branch '3.2': Issue #16828: Fix error incorrect

[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Matthias Klose
Matthias Klose added the comment: looks fine to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16828] bz2 error on compression of empty string

2013-01-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Martin
Martin added the comment: On 2.7 only the compress() function is affected, and the fix is much simpler. Just using BZ_FINISH when the input is less then 4GB is sufficient. -- Added file: http://bugs.python.org/file28513/bz2_compress_empty_string_27.patch ___

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Martin
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

[issue16828] bz2 error on compression of empty string

2012-12-31 Thread Martin
New submission from Martin: The fix from issue 14398 for >4GB inputs regressed the behaviour when compressing an empty string. Going by issue 853061 the expectation is this should work. The problem was noticed when using the updated Python 2.7 package in Ubuntu Raring caused test failures in