mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #16828: Fix error incorrectly raised by bz2.compress('').
Patch by Martin Packman.
This commit is contained in:
parent
d581fff6f0
commit
638fb9bbed
4 changed files with 20 additions and 1 deletions
|
|
@ -1979,7 +1979,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
action = BZ_RUN;
|
||||
action = input_left > 0 ? BZ_RUN : BZ_FINISH;
|
||||
|
||||
for (;;) {
|
||||
char *saved_next_out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue