[Python-checkins] python/dist/src/Modules bz2module.c,1.21,1.22
niemeyer at users.sourceforge.net
niemeyer at users.sourceforge.net
Fri Feb 13 19:02:47 EST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9824/Modules
Modified Files:
bz2module.c
Log Message:
- Fixed #853061: allow BZ2Compressor.compress() to receive an empty string
as parameter.
Index: bz2module.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/bz2module.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** bz2module.c 7 Feb 2004 13:53:45 -0000 1.21
--- bz2module.c 14 Feb 2004 00:02:45 -0000 1.22
***************
*** 1504,1507 ****
--- 1504,1510 ----
return NULL;
+ if (datasize == 0)
+ return PyString_FromString("");
+
ACQUIRE_LOCK(self);
if (!self->running) {
More information about the Python-checkins
mailing list