diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 1997-09-04 23:39:23 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 1997-09-04 23:39:23 +0000 |
commit | fac2c3efa66535d7af95a72c79b99cb288628ab2 (patch) | |
tree | c56a562a0fc581f493bf27c8b57dd7aa628b09cc /Python/pythonrun.c | |
parent | 67c5cec71133f2492c1daf7e6164a2ce81f8aa28 (diff) | |
download | cpython-fac2c3efa66535d7af95a72c79b99cb288628ab2.tar.gz |
Several changes:
1. Fix bug in (de)compression objects. The final string resize used
zst.total_out to determine the length of the string, but the
(de)compression object will output data a little bit at a time, which
means total_out is not the string size. Fix: save original value of
total_out at the start of the call.
2. Be sure to Py_DECREF the result value if you exit with an
exception.
3. Use PyInt_FromLong instead of Py_BuildValue
4. include more constants from the zlib header file
5. Use PyErr_Format instead of using a local buffer and sprintf.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions