Remove accidentally left-over debug prints
This commit is contained in:
parent
1e4930aafe
commit
69f53cb0c1
@ -243,11 +243,9 @@ static PyObject *_PylibMC_Inflate(char *value, size_t size) {
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
rc = inflate((z_streamp)&strm, Z_FINISH);
|
rc = inflate((z_streamp)&strm, Z_FINISH);
|
||||||
printf("(loop) rc = %d\n", rc);
|
|
||||||
|
|
||||||
switch (rc) {
|
switch (rc) {
|
||||||
case Z_STREAM_END:
|
case Z_STREAM_END:
|
||||||
printf("Z_STREAM_END\n");
|
|
||||||
break;
|
break;
|
||||||
/* When a Z_BUF_ERROR occurs, we should be out of memory.
|
/* When a Z_BUF_ERROR occurs, we should be out of memory.
|
||||||
* This is also true for Z_OK, hence the fall-through. */
|
* This is also true for Z_OK, hence the fall-through. */
|
||||||
@ -259,7 +257,6 @@ static PyObject *_PylibMC_Inflate(char *value, size_t size) {
|
|||||||
}
|
}
|
||||||
/* Fall-through */
|
/* Fall-through */
|
||||||
case Z_OK:
|
case Z_OK:
|
||||||
printf("Z_OK\n");
|
|
||||||
if (_PyString_Resize(&out_obj, (Py_ssize_t)(rvalsz << 1)) < 0) {
|
if (_PyString_Resize(&out_obj, (Py_ssize_t)(rvalsz << 1)) < 0) {
|
||||||
inflateEnd(&strm);
|
inflateEnd(&strm);
|
||||||
goto error;
|
goto error;
|
||||||
@ -281,8 +278,6 @@ static PyObject *_PylibMC_Inflate(char *value, size_t size) {
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("size %d -> size %d\n", (int)size, (int)strm.total_out);
|
|
||||||
|
|
||||||
_PyString_Resize(&out_obj, strm.total_out);
|
_PyString_Resize(&out_obj, strm.total_out);
|
||||||
return out_obj;
|
return out_obj;
|
||||||
error:
|
error:
|
||||||
|
Reference in New Issue
Block a user