]> granicus.if.org Git - python/commit
BZ2File.read(0) should return b"" rather than raising ValueError.
authorGuido van Rossum <guido@python.org>
Tue, 7 Aug 2007 23:29:20 +0000 (23:29 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 7 Aug 2007 23:29:20 +0000 (23:29 +0000)
commit75c26bc6a78169bf621885fa91b0d8f93241e682
treec7d2ca9081ef06f7cb0edbc687fc780e3a385300
parenta05577059d6ed67f69e9384252647e2232315f2f
BZ2File.read(0) should return b"" rather than raising ValueError.
This fixes test_tarfile.py.
I've added a unit test for the correct bz2 behavior.
Lib/test/test_bz2.py
Modules/bz2module.c